# API POST doesn't work it response Error: Failed to Fetch

**URL:** <https://community.thunkable.com/t/api-post-doesnt-work-it-response-error-failed-to-fetch/603674>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [June 9, 2020, 4:01am UTC](https://community.thunkable.com/t/api-post-doesnt-work-it-response-error-failed-to-fetch/603674 "2020-06-09T04:01:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sleon003x2rq](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sleon003x2rq](https://community.thunkable.com/u/sleon003x2rq)\
**Post date:** [June 9, 2020, 6:41pm UTC](https://community.thunkable.com/t/api-post-doesnt-work-it-response-error-failed-to-fetch/603674/5 "2020-06-09T18:41:26Z")

</div>

Hi ubaldo,  
do you know what authentication method is expected?  
also what do the headers look like in insomnia ?

i did some tests with api’s requiring different types of auth methods… in the post below you can see how I passed my parameters. maybe that will give you some ideas

> [@Compose a POST request using web component](http://community.thunkable.com/t/compose-a-post-request-using-web-component/42897/12):
>
> How to pass Auth HTTP POST Request @jared you gave me an idea so i did some tests in 3 different apis i found online and this is what worked for me (my blocks should be self explanatory). Notes: don’t mind the naming conventions I was prototyping and too lazy to keep changing names. Authorization for most apis i came accross was always Basic and you will need to convert your user:passwd to base64 encoding. some apis use apikey:(password is blank) refer to api docs example lets say…

---

_[View the full topic](https://community.thunkable.com/t/api-post-doesnt-work-it-response-error-failed-to-fetch/603674)._
