# API Set up working in Postman, but not in Bubble - Content-Type "application/x-www-form-urlencoded"

**URL:** <https://forum.bubble.io/t/api-set-up-working-in-postman-but-not-in-bubble-content-type-application-x-www-form-urlencoded/15421>\
**Category:** APIs\
**Created:** [July 10, 2017, 5:51pm UTC](https://forum.bubble.io/t/api-set-up-working-in-postman-but-not-in-bubble-content-type-application-x-www-form-urlencoded/15421 "2017-07-10T17:51:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevor.speirs](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@trevor.speirs](https://forum.bubble.io/u/trevor.speirs)\
**Post date:** [July 10, 2017, 5:51pm UTC](https://forum.bubble.io/t/api-set-up-working-in-postman-but-not-in-bubble-content-type-application-x-www-form-urlencoded/15421/1 "2017-07-10T17:51:21Z")

</div>

Hi,  
I have an API call that I got working in postman but I am struggling to make it work in bubble.  
The error message references “401 - Unauthorized: Access is denied due to invalid credentials.” But I have confirmed from the API provider that this call successfully passed through their authentication process. They would have thought the issue might come from the first parameter (insertPartyID), but you can see it is the same as in Postman.

---

<div class="post-metadata">

**Author:** ![trevor.speirs](https://avatars.discourse-cdn.com/v4/letter/t/7ba0ec/32.png) [@trevor.speirs](https://forum.bubble.io/u/trevor.speirs)\
**Post date:** [July 12, 2017, 9:06pm UTC](https://forum.bubble.io/t/api-set-up-working-in-postman-but-not-in-bubble-content-type-application-x-www-form-urlencoded/15421/2 "2017-07-12T21:06:25Z")

</div>

I solved my own problem. It appears the API call needed to be ofContent-Type “application/x-www-form-urlencoded”. I could initialize the call, but it required me not using the ‘parameter’ area and scripting the call in the Body section (see image below). I also added a “Content-Type” key in the header.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/7/7d2c59a8b55aa9a6e023a3cf4090e4475ce106e8.png)

---

<div class="post-metadata">

**Author:** ![pachocastillosr](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pachocastillosr/32/154570_2.png) [@pachocastillosr](https://forum.bubble.io/u/pachocastillosr)\
**Post date:** [January 16, 2022, 2:19am UTC](https://forum.bubble.io/t/api-set-up-working-in-postman-but-not-in-bubble-content-type-application-x-www-form-urlencoded/15421/3 "2022-01-16T02:19:31Z")

</div>

Hi, I have the same error. My problem is that, apparently, I HAVE to use the params area, since in the API that I am connecting (Food Request Step 1 - Parser, docs here [Edamam - Eat better!](https://developer.edamam.com/food-database-api-docs)), everything goes as a query params, including the authorization key.

So if bubble do not allows initializing APIs using the params area, this API couldn’t be connected?

Anyone have any ideas on how to solve this?
