0

I want to test my APIs on Postman with the token so, I just write a URL with a POST request. Then select Authorization option and Choose Bearer Token and paste my token. After that, I choose the raw and JSON option and pass the JSON object but data is not Submitted.enter image description here

Vijay Gehlot
  • 80
  • 1
  • 10
  • The warning triangle, next to the type dropdown, is telling you that the POST body language (JSON) and the `Content-Type` header do not match. Did you select a different body type before selecting `raw`? – Danny Dainton Feb 12 '20 at 08:03

3 Answers3

3

You may add Authorization token value to your header request

Example

enter image description here

Edit

Sending object through body request

In "Body" section click on "form-data" tab and add your key/value pairs.

Click on "Headers" add "Content-Type" as header and "application/x-www-form-urlencoded" as value.

enter image description here

Foued MOUSSI
  • 4,643
  • 3
  • 19
  • 39
  • I have already done that, Actually my Request Header `Authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c` so, just pass on header like that but it's not working – Vijay Gehlot Feb 12 '20 at 07:37
0

I think you need to pass APISecretKey in your headers.

Zabih Ullah
  • 575
  • 5
  • 14
0

Add Accept and Content-Type with the value of application/json on the Headers

skrrrrr
  • 29
  • 10