Unable to get a response using the Qbin API


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/

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,

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

Hey @luciano.revere

Welcome to the community! :rocket:

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>'

1 Like