# Web API - body raw - json

**URL:** <https://community.thunkable.com/t/web-api-body-raw-json/564791>\
**Category:** Questions about Thunkable X\
**Created:** [May 4, 2020, 8:49pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791 "2020-05-04T20:49:19Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![alex\_ezacae](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@alex\_ezacae](https://community.thunkable.com/u/alex_ezacae)\
**Post date:** [June 16, 2021, 7:13am UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/25 "2021-06-16T07:13:47Z")

</div>

Hello all,

thanks for your answer. it is working now.  
I think when I am updating my blocks, if I am doing the preview just after the algorythm are not updated yet so I think it is not working.  
Thanks again for your help  
Alex

---

<div class="post-metadata">

**Author:** ![rick.derks2wy](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rick.derks2wy](https://community.thunkable.com/u/rick.derks2wy)\
**Post date:** [November 21, 2021, 5:07pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/26 "2021-11-21T17:07:14Z")

</div>

I have sort of the same question.  
I am trying to connect Thunkable to Xano. In Xano everything works fine and I can call the API from Draftbit. However in Thunkable I am not able to form the body.

This is the body the API call needs:  
 ![body](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0a5a64f48f59d043209f776a91bded398e8b151e.png)

My blocks in Thunkable:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/7/0749ba7d2f73770c4a7c3154d77be88aa8756f6b.png)

The input and response I get

 ![response](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1b99f974988991aa24a25b2ec1c37a15622e596d.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 21, 2021, 5:33pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/27 "2021-11-21T17:33:03Z")

</div>

I think you might need to create **objects** within the API Body block rather than using just text. This topic has some examples:

> [@Web API Post function for Twilio](https://community.thunkable.com/t/web-api-post-function-for-twilio/1040399/2):
>
> First, is the project a legacy/production system or the beta drag and drop? I’ve been working on a WebAPI today in the legacy/production and it works, but it isn’t using the body block. This is a GUESS, but you might try changing the body block from a JSON string to an object. Previously, the body accepted text formatted as JSON. Try switching to to a JSON object and see if that changes anything. Again, just a guess on this one, but that is the kind of thing that changes regularly on Thunkabl…

Also here (search for _registration method_ within the page to see the image I’m suggesting):

> **[Power Up Your Thunkable App With A Backendless Backend and Database](https://backendless.com/how-to-integrate-thunkable-with-backendless/)**
>
> Integrating a Thunkable app with a no-code Backendless backend gives you visual database, user management, API services & serverless hosting.

It’s possible that it will work with only text blocks but you’d first need to get it working as a browser url (that is, you’re able to retrieve the json text response in a browser such as Chrome without even using Thunkable). If you have a working url that includes all of that info, share it and we can help you build the blocks to create it in Thunkable. Does Draftbit provide the full POST url, something like you might see with _curl_?

All that being said, there are some problem with your syntax. APIs generally use = instead of : and you would not include the brackets { } or quotes " ".

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 21, 2021, 5:58pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/28 "2021-11-21T17:58:13Z")

</div>

See my sample project using Xano in Thunkable  
[https://x.thunkable.com/projectPage/617031d98d7dfb0010f597c7](https://x.thunkable.com/projectPage/617031d98d7dfb0010f597c7)

---

<div class="post-metadata">

**Author:** ![rick.derks2wy](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rick.derks2wy](https://community.thunkable.com/u/rick.derks2wy)\
**Post date:** [November 21, 2021, 7:06pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/29 "2021-11-21T19:06:06Z")

</div>

Wow, thanks! That really helped a lot.  
I needed to add a header property “Content-Type: application/json”

---

<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, 11:29am UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/30 "2024-11-08T11:29:26Z")

</div>

Closed on November 8, 2024, 11:29am UTC



[Previous page](https://community.thunkable.com/t/web-api-body-raw-json/564791.md?page=1)
