1. Get the OAuth token endpoint value
- Select the POST method for your request in Postman. In Find and Use an API:
- Go to My subscriptions from the navigation menu.
- Select Manage subscriptions.
- Find the API subscription you want to use.
- Go to the API subscriptions details page.
- Scroll to the Native OAuth Application-flow section.
- Copy the OAuth token endpoint value. This will be a URL given by the token Business-to-Consumer (B-2-C) provider.
Then in Postman:
- Paste that URL into the request field.
2. Get the OAuth Client ID
- Go to My subscriptions from the navigation menu.
- Select Manage subscriptions.
- Find the API subscription you want to use.
- Go to the API subscriptions details page.
- Scroll to the Native OAuth Application-flow section.
- Copy the OAuth Client ID value.
Then in Postman:
- Open the Body tab of your token request.
- Paste the OAuth Client ID into the Value field for the client_id key.
- Set the Value field for the grant_type key to client_credentials.
3. Get the Primary key
- Go to My subscriptions from the navigation menu.
- Select Manage subscriptions.
- Find the API subscription you want to use.
- Go to the API subscriptions details page.
- Scroll to the Native OAuth Application-flow section.
- Copy the primary key value.
Then in Postman:
- Open the Body tab of your token request.
- Paste the primary key into the Value field for the client_secret key.
4. Get the OAuth Scope value
- Go to My subscriptions from the navigation menu.
- Select Manage subscriptions.
- Find the API subscription you want to use.
- Go to the API subscriptions details page.
- Scroll to the Native OAuth Application-flow section.
- Copy the OAuth Scope value.
Then in Postman:
- Open the Body tab of your token request.
- Paste the scope value into the Value field for the scope key.
- Select Send to submit the request to the token provider.
5. Add the Access token value
In Postman:
- Open the Response Body tab for your request.
- Find the access_token field.
- Copy the value of the access token.
- Select the Authorisation tab.
- In the Type dropdown, choose Bearer Token.
- Paste the access token into the Token field.
- Select Send, to submit the request with the token added.