Automating Security token in Postman


  1. Latest version of Postman
  2. A service that is used by your application for authorization.


  1. Create a collection in Postman
Pre-request Script
Postman Console
  1. We create the header for the request to the auth service.
  2. Then Extract the hostname from the request URL. Why?




I like building stuff.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gaurav Sharma

Gaurav Sharma

I like building stuff.

More from Medium

A software troubleshooting guide — Tips & Tricks

JetBrains Academy Impressions

Yeni SSL sertifikasını Jenkins ile çalışabilir hale getirme.

Salesforce — Twitter Integration — from scratch using Python, Heroku and Apex.