# Unable to get a response using the Qbin API

**URL:** <https://community.postman.com/t/unable-to-get-a-response-using-the-qbin-api/13392>\
**Category:** Help Hub\
**Tags:** api\
**Created:** [June 14, 2020, 1:29am UTC](https://community.postman.com/t/unable-to-get-a-response-using-the-qbin-api/13392 "2020-06-14T01:29:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luciano.revere](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@luciano.revere](https://community.postman.com/u/luciano.revere)\
**Post date:** [June 14, 2020, 1:29am UTC](https://community.postman.com/t/unable-to-get-a-response-using-the-qbin-api/13392/1 "2020-06-14T01:29:30Z")

</div>

Hello,

I am new to Postman, and its a nice app with an awesome UI to test out APIs. However, I am not able to make Postman run the qbin api - its always returning a _400 bad request_ error. But when I’m using curl, or the website, its working which means that nothing’s wrong with the api.

Here is the link to the API - [http://qbin-io.viewdocs.io/qbin/api/](http://qbin-io.viewdocs.io/qbin/api/)

Could someone instruct me on how to make this API work? I am passing in fields in the body but its failing every time.

Thank you,  
Luciano.

P.S - A working screenshot would help me out even more.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [June 14, 2020, 10:19am UTC](https://community.postman.com/t/unable-to-get-a-response-using-the-qbin-api/13392/2 "2020-06-14T10:19:46Z")

</div>

Hey @luciano.revere

Welcome to the community! 🚀

What is the request you’re sending to get a 400 response code?

It looks like, from the docs, you send a POST request with a request body using the `x-www-form-urlencoded` content type. Also, I believe you need to specify a language in the Header using something like `S: javascript`.

It looks that that just returns a URL and that would be unique that returns the data you created it with.

Here’s a curl snippet that you can import in your app and hopefully see that being returned.

`curl -L -X POST 'https://qbin.io' -H 'S: html' -H 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'Q=<h1>Heading</h1>'`
