Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Postman - 400 Bad Request

I am trying to hit API on Postman. The API is working on server but I am not receiving any data. Here are the visual images:

enter image description here

It is responding me with "No Data" and 400 Bad Request.

enter image description here

like image 805
UGandhi Avatar asked Oct 23 '25 00:10

UGandhi


2 Answers

There is only one thing you are missing.

  • Just put the body under raw instead of form-data

It will work.

I'm guessing it's this API: https://market.mashape.com/navii/daily-fuel-price-india#main-version

Postman

Add the Content-Type: application/json header instead of the one you have.

Postman_Header

And the body would be something like this:

enter image description here

like image 29
Danny Dainton Avatar answered Oct 25 '25 14:10

Danny Dainton