# 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:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [May 4, 2020, 8:49pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/1 "2020-05-04T20:49:20Z")

</div>

Hello,  
I have to perform a web API call like in postman with body raw parameters: whitch block parameter I can use?  
I already tried all blocks in the picture but nothing.  
Many thanks  
Andrea

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/d/1d739b432d45b7276380607c430a8babdbe49e55.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/9/e9e78c2cf7528f3a6c0277654d9f503ebd8ac587.png)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 4, 2020, 8:57pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/2 "2020-05-04T20:57:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a98c0ddc8db957354cd1d26b87df8b1a28201de.jpeg)

Click this drop down menu. Choose body. Try that and report back

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [May 4, 2020, 9:16pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/3 "2020-05-04T21:16:18Z")

</div>

no already done and it doesn’t works. A part that it is not possible to use “create object” block with body but only the string …

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/9/09600735560213a02fd35659170604ae7d25bfae.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/c/8c07f4af8ed94392f26db6c7f14b13b344a035a8.png)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 4, 2020, 9:19pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/4 "2020-05-04T21:19:16Z")

</div>

Is there anything in these?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/45f3ae5fd3180f94b2de94d998d9b6009e3bcbfb.jpeg)

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [May 5, 2020, 6:03am UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/5 "2020-05-05T06:03:36Z")

</div>

in headers just the “Content-Type” … I also added that but nothing. Maybe it is the format or syntax of Body …

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

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [May 5, 2020, 6:50am UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/6 "2020-05-05T06:50:47Z")

</div>

the exactly code generated from my Postman is the follow:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/0/205e3a5890715e13b047ab803e251d5e9daed3ae.png)  
… and works fine (in Postman)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 5, 2020, 1:36pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/7 "2020-05-05T13:36:24Z")

</div>

can you copy that whole cURL code here?

also!  
set your headers in the design screen. setting headers by blocks doesnt work for some reason.

try that, then report back.

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [May 5, 2020, 2:07pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/10 "2020-05-05T14:07:47Z")

</div>

I replaced the headers block with the setting in the design screen but nothing … now I have not error back but it doesn’t works.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/5/9539ebb736299556053be2291672269f684c5ed9.png)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 5, 2020, 2:10pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/11 "2020-05-05T14:10:38Z")

</div>

meraviglioso! not getting an error is a good start

che succede ora?

Suppongo che l’italiano sia la tua lingua a causa del sito web

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [May 5, 2020, 2:12pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/12 "2020-05-05T14:12:26Z")

</div>

Si l’italiano è la mia lingua 😉  
Ho fatto diversi Rest fino ad oggi, spesso GET, ma questo mi fa impazzire!  
Le ho provate tutte!

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [May 5, 2020, 5:10pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/13 "2020-05-05T17:10:58Z")

</div>

perhaps you need to supply api-key in headers also?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 5, 2020, 5:29pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/14 "2020-05-05T17:29:11Z")

</div>

can you share the api documentation or URL? I am very interested in using api’s with thunkable currently. Id love to help further

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [May 5, 2020, 5:43pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/15 "2020-05-05T17:43:03Z")

</div>

there is not an api-key …

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [May 5, 2020, 6:13pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/16 "2020-05-05T18:13:10Z")

</div>

sometimes it would be interesting that a thunkable tech team answer our issues so as not to go too far around problems 😉

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 5, 2020, 6:16pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/17 "2020-05-05T18:16:37Z")

</div>

They usually do when the problem is related to a thunkable issue. IF only your API is not working, it is probably an issue with the API construction or the way you are calling it and not a thunkable issue.

I use multiple API’s with no issue. If you are experiencing this issue with other API’s, then it would make sense for Thunkable team members to provide their input. Sometimes, they will help out with non-thunkable issues, but this shouldn’t be expected or waited on.

Can you provide me the url to the postman page for your api?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [May 5, 2020, 9:09pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/20 "2020-05-05T21:09:40Z")

</div>

👐

Awesome. Glad to hear it!! I probably should have mentioned to remove the blocks after adding the header via design screen. 😐

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [May 5, 2020, 9:10pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/21 "2020-05-05T21:10:51Z")

</div>

Hello,  
it works finally … I don’t know why but I remove another time headers block and add the same in design screen and now it’s ok.  
Really Incredible!

PS. In any case this is an issue that in my point of view the tech team have to fix.  
Andrea

---

<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 15, 2021, 4:00pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/22 "2021-06-15T16:00:58Z")

</div>

Hello Guys,

Sorry for the question but I have an issue calling my API.  
In my post everything works fine

```auto
--data-raw '{
    "rows": [
        {
            "cells": [
                {
                    "column": "c-BDWqKKrZCW",
                    "value": "test"
                },
                {
                    "column": "c-ChgysoFILL",
                    "value": "2021-06-11T10:10Z"
                },
                {
                    "column": "c-KOFagvIJ6Y",
                    "value": "Ph"
                },
                {
                    "column": "c-sCOtJOOVKu",
                    "value": "6.78"
                }
            ]
        }
    ],
    "keyColumns": [
        "c-BDWqKKrZCW",
        "c-ChgysoFILL"
    ]
}

```

But if I just copy/paste the body in my body section of my API it is not ok. I have / each time I have a "  
any idea ?  
What is the format of the body ? is it a simple (string) ?  
I tried several different combinaison but It is not working ☹

---

<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:** [June 15, 2021, 4:48pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/23 "2021-06-15T16:48:32Z")

</div>

Your data looks good as long as I remove `--data-raw '`

What are you trying to do with it? What blocks have you used (share a screenshot)? What was the result?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/f/3fc7f5c095f68dcc3274efac71a5c2862d31e081.png)

---

<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:** [June 15, 2021, 5:27pm UTC](https://community.thunkable.com/t/web-api-body-raw-json/564791/24 "2021-06-15T17:27:00Z")

</div>

As indicated by @tatiang

The qualifier `--data-raw` is used in cURL and in AJAX codes and will not be translated correctly by the API component in Thunkabe.

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