Getting access tokens for multiple APIs w/o changing token URL?

Welcome to the community, @wells.oliver !

You need to parameterize these values you’re using to do auth.

I’d recommend reading this blog post on how to automate Token Gen/Renewal.

To take that a step further, like in your use case, you will need to override the variables per folder. From within Postman, right click each folder and select Edit. Click on the Pre-request Scripts tab and add the following snippet - replacing the placeholder values with the specific url/password for the API.

pm.environment.set('Auth_Url', '<the auth url for this API>');
pm.environment.set('Basic_Auth', '<The login credentials for this API>');

This will automatically update the variables whenever requests in this folder runs. PLUS, if you add the script from the blog post, it will automatically generate and use an auth token :slight_smile: