So, for calling my internal APIs I need an authorization token. This token is rotative and I can easily retrieve it on my computer (it’s store into a local file).
This means that every time the token rotates (~5 hours) I need to get the new token, open Postman’s variable editor and update my token variable.
What I’d like to know is if there’s any way to automate this process. I’m thinking maybe changing an internal file on my Postman installation where the variable is stored, so I could build a simple script that:
- Gets me updated token.
- Updates the variable on Postman.
I’ve tried creating a Post-Request script but it seems a bit of a overwork and a security vulnerability to have a local HTTP server serving my token.