Postman - Set BarearToken and Use in All Authorized API Call

 

Postman - Set BarearToken and Use in All Authorized API Call


Environment Variable

Create environment group and create variable

baseurl

bareartoken



Now in Login post API call, write below lines in scripts tab

var response = JSON.parse(responseBody)
pm.environment.set("bareartoken", response.data.token)




Use Bareartoken automatically in all other authorized API call,