Automate Postman script

Hello,
We are trying to generate the access token using postman Auth Type = OAuth 2.0 and to use the token for SAS application. For Grant Type I am using Grant Type = Authorization Code. Then I click on Get Access New Token and it asks for authentication. After successful authentication it creates the Access_Token.

questions :

  1. We can see the Access Token created as json file in Console tab > POST > Response Body. Please find the screenshot. Is it possible to directly save the json file locally ? or where the Json file is getting saved ?

  2. Is it possible to automate the whole process (to trigger with shell script) and run the postman script to generate the access token ?




Hey @arnab-das1-d908282e :waving_hand:

Welcome to the Postman Community! :postman:

You might find more information around this on a previous topic: