# API-connector can't find JSON-body?

**URL:** <https://forum.bubble.io/t/api-connector-cant-find-json-body/355249>\
**Category:** APIs\
**Created:** [January 13, 2025, 6:26pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249 "2025-01-13T18:26:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim10](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tim10](https://forum.bubble.io/u/tim10)\
**Post date:** [January 13, 2025, 6:26pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/1 "2025-01-13T18:26:56Z")

</div>

Hi everyone,

I’ve been struggling with the API-connector lately. Somehow when I set up the POST-call with a simple JSON-body, I keep getting an error that the API was unable to find the body. This is the error:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/f/df83007b6bba872d5d82389bf9bdc635324e3930.png)

This is how the API is set up:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/4/b4a4c1406774c9f2147df1dd9c224878a94dce2d.png)

It’s a simple call where I send a unique ID to match with an external db. I’ve tried just about everything in turning on these private and optional checkboxes, but to no effect. Also used request catcher, but everything seems fine in the way the call is set up.

I’ve had this problem before with another API-call. That time the problem was somehow solved by messing around with the JSON and the parameters (typing, retyping, adding and removing white spaces, etc). But that doesn’t seem to do the trick this time.

Anyone has any ideas?

---

<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 13, 2025, 6:44pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/2 "2025-01-13T18:44:21Z")

</div>

Can you share link to api doc?  
I think your issue is more a missing requested field…

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [January 13, 2025, 7:02pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/3 "2025-01-13T19:02:18Z")

</div>

Is that empty header actually empty or did you hide it for the screenshot?

---

<div class="post-metadata">

**Author:** ![tim10](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tim10](https://forum.bubble.io/u/tim10)\
**Post date:** [January 13, 2025, 7:37pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/4 "2025-01-13T19:37:04Z")

</div>

Hid it. It’s the authorization key 🙂

---

<div class="post-metadata">

**Author:** ![tim10](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tim10](https://forum.bubble.io/u/tim10)\
**Post date:** [January 13, 2025, 7:37pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/5 "2025-01-13T19:37:43Z")

</div>

Not much there I think, but maybe I’m overlooking something?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/e/6ebab00879b8feaaa505b4f2517e09f4e99ef4fd.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 13, 2025, 7:42pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/6 "2025-01-13T19:42:11Z")

</div>

Try content-type or Content-type. Some API are case sensitive.  
Also, be sure to not have shared parameters that could create conflit (remove any content-type header in shared parameters).

Finally, test your call sending it to [requestbin.com](http://requestbin.com) (or similar tools)

According to the screenshot, it’s fine, but please share the whole link to doc. Easier to find what could create issue.

---

<div class="post-metadata">

**Author:** ![tim10](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tim10](https://forum.bubble.io/u/tim10)\
**Post date:** [January 13, 2025, 8:00pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/7 "2025-01-13T20:00:30Z")

</div>

Thanks for trying to help!

Afraid it’s not the case sensitivity and also tried everything with the headers. This is what the API expects. I imported the curl directly but no luck either.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/b/6bed780df61a91abd0847de51293994609b7f2bb.png)

This is what I got from requestcatcher:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/0/807ee77a8f9992a2428e65f7f8758e4ab95280de.jpeg)

---

<div class="post-metadata">

**Author:** ![rico.trevisan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rico.trevisan/32/170176_2.png) [@rico.trevisan](https://forum.bubble.io/u/rico.trevisan)\
**Post date:** [January 13, 2025, 8:13pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/8 "2025-01-13T20:13:33Z")

</div>

What is this software? Are you self hosting this?

---

<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 13, 2025, 8:44pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/9 "2025-01-13T20:44:01Z")

</div>

In your screenshot, from swagger, it say unauthorized. What if you enter auth in swagger?

---

<div class="post-metadata">

**Author:** ![tim10](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@tim10](https://forum.bubble.io/u/tim10)\
**Post date:** [January 13, 2025, 8:49pm UTC](https://forum.bubble.io/t/api-connector-cant-find-json-body/355249/10 "2025-01-13T20:49:48Z")

</div>

Pfff… that fixed it.

When I had testmode in swagger authorized, I could also initialize in Bubble API-connector. Didn’t think of that… Good call!

Thanks for helping out!
