# Api connection for application/x-www-form-urlencoded error

**URL:** <https://forum.bubble.io/t/api-connection-for-application-x-www-form-urlencoded-error/227749>\
**Category:** APIs\
**Created:** [October 10, 2022, 5:20pm UTC](https://forum.bubble.io/t/api-connection-for-application-x-www-form-urlencoded-error/227749 "2022-10-10T17:20:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@ravi](https://forum.bubble.io/u/ravi)\
**Post date:** [October 10, 2022, 5:20pm UTC](https://forum.bubble.io/t/api-connection-for-application-x-www-form-urlencoded-error/227749/1 "2022-10-10T17:20:13Z")

</div>

These are my postman request .Its working fine there.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/c/dc67f875e29159b1c41b79b92558eb9df9f5d10c.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/2/7250b9852c9b19d6f81169c0d7414536881850fe.png)  
This is my api request in bubble its showing error  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/d/bd4ce4f28df198b1113445ef1a860d94cb327d40.png)

Can someone please help me with this. Waiting for help

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

Here is my postman collection link [https://documenter.getpostman.com/view/18259091/2s83ziQQKU#e3b6b04a-f6c4-439b-85c8-cacfa18a2d10](https://documenter.getpostman.com/view/18259091/2s83ziQQKU#e3b6b04a-f6c4-439b-85c8-cacfa18a2d10)

---

<div class="post-metadata">

**Author:** ![ankur1](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ankur1](https://forum.bubble.io/u/ankur1)\
**Post date:** [October 10, 2022, 6:08pm UTC](https://forum.bubble.io/t/api-connection-for-application-x-www-form-urlencoded-error/227749/2 "2022-10-10T18:08:24Z")

</div>

@ravi

You are passing the wrong “Content-type” it should be “application/x-www-form-urlencoded”  
Remove the “&” before the “grant\_type.”

**Ankur@ Nocodetalks**  
Looking for a Bubble Coach? **[Check out here](https://nocodetalkss.gumroad.com/l/bubble_mentorship)**

---

<div class="post-metadata">

**Author:** ![ravi](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@ravi](https://forum.bubble.io/u/ravi)\
**Post date:** [October 11, 2022, 12:36pm UTC](https://forum.bubble.io/t/api-connection-for-application-x-www-form-urlencoded-error/227749/3 "2022-10-11T12:36:28Z")

</div>

> [@ankur1](#):
>
> application/x-www-form-urlencoded

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/b/dbff465f6ad3d00f8aebf223399da85d598d36d7.png)  
Changed still same error  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/3/b3ff466a0e98d5d7474f1115e6d47e2f80e2ef63.png)

Here is my postman collection link ([https://documenter.getpostman.com/view/18259091/2s83ziQQKU#e3b6b04a-f6c4-439b-85c8-cacfa18a2d10](https://documenter.getpostman.com/view/18259091/2s83ziQQKU#e3b6b04a-f6c4-439b-85c8-cacfa18a2d10))

It has all details , i want to replicate same thing in bubble.In postman i am getting resp but in bubble it is showing error

---

<div class="post-metadata">

**Author:** ![ankur1](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ankur1](https://forum.bubble.io/u/ankur1)\
**Post date:** [October 12, 2022, 4:48am UTC](https://forum.bubble.io/t/api-connection-for-application-x-www-form-urlencoded-error/227749/4 "2022-10-12T04:48:01Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/0/c/0c52ae55f91a7d58b6a355b3cf87eeddcc4a6625.png)
