# Help with Web API POST requests and Body

**URL:** <https://community.thunkable.com/t/help-with-web-api-post-requests-and-body/42865>\
**Category:** Questions about Thunkable X\
**Created:** [August 23, 2018, 6:17pm UTC](https://community.thunkable.com/t/help-with-web-api-post-requests-and-body/42865 "2018-08-23T18:17:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonyz80](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tonyz80/32/67985_2.png) [@tonyz80](https://community.thunkable.com/u/tonyz80)\
**Post date:** [August 23, 2018, 6:17pm UTC](https://community.thunkable.com/t/help-with-web-api-post-requests-and-body/42865/1 "2018-08-23T18:17:13Z")

</div>

What would be the web api BODY looks like (& how to compose it) if I want to send a POST to Google Apps Script (GAS)?  
I have the URL from GAS and it works when I test it.  
I have researched [https://developers.google.com/apps-script/guides/web](https://developers.google.com/apps-script/guides/web) to pass parameters and Headers in POST, but so far I am unable to compose the body of my POST request correctly. I tried many combinations and all I get is Undefined for my data.  
Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 24, 2018, 5:38am UTC](https://community.thunkable.com/t/help-with-web-api-post-requests-and-body/42865/2 "2018-08-24T05:38:01Z")

</div>

If you give me a link to your project with access to GAS, then I’ll work on finding a solution.

---

<div class="post-metadata">

**Author:** ![lflfm](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@lflfm](https://community.thunkable.com/u/lflfm)\
**Post date:** [January 23, 2019, 11:15am UTC](https://community.thunkable.com/t/help-with-web-api-post-requests-and-body/42865/3 "2019-01-23T11:15:01Z")

</div>

I have a similar problem… for one thing, we can’t set headers in block code so that’s that ☹  
But the worst is: my request body doesn’t get sent at all…!?!  
I changed my Heroku app to respond with the whole body of the request and what I get is empty; so the body is never reaching my app…

 ![20190123_115749_01_screenshot](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/5/65aa2cfd0f07dd4b292cdf60b0b2d146e1b5d82a.png)  
(my Heroku app works perfectly with anything else, I’m looking to turn it into a phone app with Thunkable but it’s proving a lot more difficult than this should be…)  
What am I possibly doing wrong here?

(I also tried to hardcode a body in the webapi object in design mode but that doesn’t get sent either)

thanks!

edit: since I couldn’t change the headers via blocks, I wasn’t even trying, but now I tested hardcoding some headers and they don’t seem to be sent either…

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:00pm UTC](https://community.thunkable.com/t/help-with-web-api-post-requests-and-body/42865/4 "2024-11-08T12:00:37Z")

</div>


