postmanweb-api-testing

How to add authorization header in POSTMAN environment?


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.


Solution

  • 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