Last updated

Configuring OAuth2 on Postman

The following guide shows how to configure Postman to authenticate against and use the API

Quick guidde

This guide will assist you in configuring Postman to utilize OAuth2 for token acquisition, enabling you to query an API.

1. Introduction

By following the outlined steps, you can authenticate and access API functionalities within Postman.

Introduction

2. Set up an environment in Postman

Configure the base Url to the API endpoint provided in the welcome email.

Set up an environment in Postman

3. Set the the Client Id

Set the client Id to the client Id provided in the welcome email

Set the the Client Id

4. Set the client secret

Set the client secret the to client secret in your welcome email.

Set the client secret

5. The the auth url

Set the auth url to the auth url in your welcome email

The the auth url

6. Click "Collections"

Access your collections

Click 'Collections'

7. Download the Postman collection

Download the postman collection from https://apidocs.resharmonics.com and open the collection in Postman. Click on the top level of the collection.

Download the Postman collection

8. Click the Authorization Tab

Click the authorization tab on the collection, set the grant type to Client Credentials and set the Access Token URL to the {{authUrl}} set up in the environment.

Click the Authorization Tab

9. Set the Client Id

Set the Client Secret to use the {{clientSecret}} set up in the environment.

Set the Client Id

10. Set the Client Secret

Set the Client Secret to use the {{clientSecret}} set up in the environment.

Set the Client Secret

11. Set the Scope

Set the scope to be "api/read api/write"

Set the Scope

12. Generate the Access Token

Click Generate a new access token to create a new access token, the token will last for 60 minutes.

Generate the Access Token

13. Click "Proceed"

Proceed with the token generation process

Click 'Proceed'

14. Click "Use Token"

Utilize the generated token

Click 'Use Token'

15. Refreshing the Token

The token will last for 60 minutes, you can refresh the token in Postman using the refresh button

Refreshing the Token

16. Test the API access

Select a call from the collection, a good starting point is the first search API.

Test the API access

17. Send first query

Uncheck the Query params or set the to appropriate parameters and click Send.

Send first query

This guide covered configuring Postman to use OAuth2 for token retrieval and subsequently querying an API by utilizing the obtained token