# API calling / Custom Action problem

**URL:** <https://forum.adalo.com/t/api-calling-custom-action-problem/48466>\
**Category:** External Collections, Custom Actions & Collections\
**Created:** [July 13, 2024, 12:54am UTC](https://forum.adalo.com/t/api-calling-custom-action-problem/48466 "2024-07-13T00:54:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonator](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@simonator](https://forum.adalo.com/u/simonator)\
**Post date:** [July 13, 2024, 12:54am UTC](https://forum.adalo.com/t/api-calling-custom-action-problem/48466/1 "2024-07-13T00:54:14Z")

</div>

Hi everyone,

I tried to called a webhook and it did successfully come back with some response (if i click on the show full response button), but it somehow fail to capture it as an output (the part in the middle) which then result in the fact that i couldn’t actually get to use whats generated from the api for my further processing.

Million thanks in advance!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/9/e/9e4b525a2f2ff98f772c143d97109624352825f2.png)

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [July 13, 2024, 11:19am UTC](https://forum.adalo.com/t/api-calling-custom-action-problem/48466/2 "2024-07-13T11:19:41Z")

</div>

Hi @simonator,

Your “Webhook response” module isn’t configured correctly in Make.  
You might need to add  
`Content-type: application/json`  
as a header.

Also check the payload - I can’t quite understand why you have “json” as a start of the response (it shouldn’t be there).

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![simonator](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@simonator](https://forum.adalo.com/u/simonator)\
**Post date:** [July 13, 2024, 4:21pm UTC](https://forum.adalo.com/t/api-calling-custom-action-problem/48466/3 "2024-07-13T16:21:13Z")

</div>

Thanks Victor for your reply, however i tried again following your suggestion adding the content-type header in the api call but still seems to get a valid output in the test run. Any clue as to what other things might have gone wrong? Million thanks again in advance!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/7/5/75d5321701fb7a392ccf648f7b626a9f29f3215c.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/c/b/cbfb2f388d0deba819749f45cbdd9c0f9b003b40.png)

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [July 15, 2024, 7:00am UTC](https://forum.adalo.com/t/api-calling-custom-action-problem/48466/4 "2024-07-15T07:00:32Z")

</div>

Hi @simonator,

You need to set up your Webhook Response correctly. Here is the example which returns 2 resulting values: “result” and “comments”. When someome presses “Add Item” in Adalo custom action, they will be able to add them as a result and then use them in the subsequent Adalo actions.

 ![Screenshot 2024-07-15 at 09.55.51](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/3/8/383793115fe12e13ee6b071097063bba6cbe4135.jpeg)

Best,  
Victor

---

<div class="post-metadata">

**Author:** ![simonator](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@simonator](https://forum.adalo.com/u/simonator)\
**Post date:** [July 15, 2024, 6:30pm UTC](https://forum.adalo.com/t/api-calling-custom-action-problem/48466/5 "2024-07-15T18:30:54Z")

</div>

Got it now, million thanks Victor!
