How to add authorization header in POSTMAN environment?

asp picture asp · Nov 11, 2016 · Viewed 78.2k times · Source

I'm testing bunch of API calls using POSTMAN. Instead of adding authorization header to each request, can I make it as a part of POSTMAN environment? So, I don't have to pass it with every request.

Answer

Basim Hennawi picture Basim Hennawi · Nov 13, 2016

Yes, you can do this through Postman by assigning your header as an environment variable, let's say authorization, as follow:

Authorization header

then set you environment variable with its value as follow:

Environment variable