# Help with curl notation for Web API call

**URL:** <https://community.thunkable.com/t/help-with-curl-notation-for-web-api-call/980758>\
**Category:** Questions about Thunkable X\
**Tags:** webapi, curl\
**Created:** [November 17, 2020, 6:51pm UTC](https://community.thunkable.com/t/help-with-curl-notation-for-web-api-call/980758 "2020-11-17T18:51:24Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [November 17, 2020, 8:05pm UTC](https://community.thunkable.com/t/help-with-curl-notation-for-web-api-call/980758/5 "2020-11-17T20:05:23Z")

</div>

@tatiang,

A few thoughts:

I’ve found APIs put info in the darnedest places, so I always display error, status, and response when debugging:

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

It looks like you need 2 header properties:

> curl -v -X POST -H “ **Ocp-Apim-Subscription-Key:** lOEflwP0ouh9tv6zmKr” -H “ **Content-Type:** application/json”

Don’t be like me and try to put them in a list. It should be one object with 2 properties.  
I think the url should be in the body, not the header ( but I might be wrong).

When using the body, you cannot use Thunkable object blocks directly, you need to GENERATE JSON FROM OBJECT (because Thunkable)

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

I’ve struggled to get the parmeter block to work consistently. Here is an example of it working

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

Unfortunately, sometimes I resort to JOINing a long URL block ☹. Honestly, I usually start here, and once I get it to work, I move them to blocks, because Thunkable.

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

Happy Thunking!

---

_[View the full topic](https://community.thunkable.com/t/help-with-curl-notation-for-web-api-call/980758)._
