Reputation: 63
I have a rest API and I want to send a request to it using Postman. The request should be send with a bearer authentication token. How can I add this?
Upvotes: 6
Views: 20468
Reputation: 797
In the newer versions of Postman you can directly use "Authorization" tab and choose Type as "Bearer Token" and provide your token there. Postman automatically add "Bearer" as prefix to your token and user it in headers.
However if your server implementation requires a different prefix then "Bearer", you can specify it in the Header Prefix field.
Upvotes: 0
Reputation: 310
You have an "Authorization" tab on your request in Postman. You can choose "Bearer Token" and insert your token there.
Upvotes: 3
Reputation: 5301
You can add a header parameter with Authorization
as key and Bearer <insert_your_token_here>
as value.
Upvotes: 5