# Trouble getting a POST API call to work

**URL:** https://community.thunkable.com/t/trouble-getting-a-post-api-call-to-work/2593970
**Category:** Questions about Thunkable X
**Created:** [September 13, 2023, 7:40pm UTC](https://community.thunkable.com/t/trouble-getting-a-post-api-call-to-work/2593970 "2023-09-13T19:40:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)
#### Post date: [September 13, 2023, 7:40pm UTC](https://community.thunkable.com/t/trouble-getting-a-post-api-call-to-work/2593970/1 "2023-09-13T19:40:49Z")

</div>

Hi,

I have an API call that I am making to Mindee and have tested it in Postman, however when I transfer the information into Thunkable, I cannot get it to work.

Postman -

 ![2023-09-13 15 26 09](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/1/91e9bc7f2977c550082c59fcba46d62b4ca34646.png)

 ![2023-09-13 15 26 09 (3)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/6/367b7b9fdbda7bd9642bdc693ee46d309f765bde.png)

Thunkable -

I have tried this

 ![2023-09-13 15 26 09 (2)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/1/9117c138c799dd69f4b12ffaed799201dff35681.png)

as well as using the same blocks but with **form-data** instead of **data** and this

 ![2023-09-13 15 32 11 (2)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/a/9af6928eb9ec70b1095e77a9516de9f2dd6ae573.png)

but get this error

![2023-09-13 15 32 10 (3)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/972fd50eb2bbb2ad42fe0ce9a50959a40492451d.png)

Would appreciate any assistance.  
Thanks

---

<div class="post-metadata">

### Author: ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)
#### Post date: [September 14, 2023, 5:37am UTC](https://community.thunkable.com/t/trouble-getting-a-post-api-call-to-work/2593970/2 "2023-09-14T05:37:09Z")

</div>

Hi, I’d like to suggest a few things -

- As per Mindee API Docs, your authentication token needs to precede with "Token ". So if your token is `abc`, you’ll pass the string “Token abc” to the auth. header. So, join a string block with "Token " written in it.
- You don’t need separate header blocks for multiple headers - click the ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/5/d5ad512478f782c80e959849cf9f5ef2c98c2451.png) icon and add a block below the `Content-Type` header for `Authorization` header.
- Add a 0.001 sec. wait block before making the call, just to smoothen the process.

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

Let me know if this works. Cheers, Kartik

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [December 13, 2023, 5:37am UTC](https://community.thunkable.com/t/trouble-getting-a-post-api-call-to-work/2593970/3 "2023-12-13T05:37:32Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
