Generate Bearer Token Using API Credentials

Generate Bearer Token Using API Credentials

Tech

 

Once you get API credentials for a specific product, you will need to generate bearer token for accessing the APIs.  Please find below the steps for the same.

 

Step #1 Download Postman Collection

 

 If you do not have the postman tool installed, refer to download instructions and install Postman.

 

Step #2 Get API product credentials for token generation

 

You can access API Key, Okta Client ID, Okta Client Secret, Scope, and Okta Url from Dashboard - My Apps

My Apps

 

Step #3 Generate Bearer Token

 

Now you are ready to generate token. To generate a bearer token to access all the APIs and/or endpoints in the collection, please follow the below steps.

Postman
  • Enter your Okta credentials in username (client ID) & password
  • Make sure to select Basic Auth on the Auth tab
  • On the Body tab - Grant type and Scope and select Send button
  • Enter Okta Scope. You can find it in Specification -  Prerequisites section. Example, MLS Data Service.
Postman
Postman
  • Copy the access_token value for testing APIs in the collection. Access token is referred as token going forward.

 

You are all set, you can now use Anywhere API product. 

 

Reference - https://www.postman.com

Was this helpful? dislike