# Error on API Call

**URL:** <https://forum.bubble.io/t/error-on-api-call/130771>\
**Category:** APIs\
**Created:** [January 15, 2021, 7:39pm UTC](https://forum.bubble.io/t/error-on-api-call/130771 "2021-01-15T19:39:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![diveej](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@diveej](https://forum.bubble.io/u/diveej)\
**Post date:** [January 15, 2021, 7:39pm UTC](https://forum.bubble.io/t/error-on-api-call/130771/1 "2021-01-15T19:39:45Z")

</div>

I am getting the following error when using the api connector to call an api. Works just fine in POSTMAN sending a blank {} object in the body. But no matter what i put in the body here, i get the following error.

There was an issue setting up your call.

Raw response for the API  
Status code 400  
{  
“error”: {  
“code”: null,  
“message”: “You submitted a length-0 POST body, but must submit a JSON object. (HINT: Try submitting an empty object instead, i.e. {}. If you’re using curl, you can pass -d ‘{}’ -H ‘Content-Type: application/json’)”,  
“param”: null,  
“type”: “invalid\_request\_error”  
}  
}

 ![API_Issue](https://us1.discourse-cdn.com/bubble/original/3X/9/7/97638404347f8506832b24027efbdcb098802eec.png)

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [January 15, 2021, 7:55pm UTC](https://forum.bubble.io/t/error-on-api-call/130771/2 "2021-01-15T19:55:50Z")

</div>

Add the content type in the header  
Content-Type: application/json’  
And why do you have both parameters AND json body?  
Can you provide url to API Doc?
