To use OAuth2 based APIs, you must generate an Access Token using information available from the API Endpoint page and your favorite web service client, for example, Postman.
Obtaining an Access Token
Note: Your Endpoint must be saved before you can use the Access Token URL or credentials as shown below.
- Click the Click to Copy Access Token URL button.
- Paste the URL in your web service client.
- Copy the OAuth2 Client Credentials from the OAuth2 pane.
- Paste the OAuth2 credential values into a JSON payload to use in your access token request. Here is a sample JSON payload you can copy and populate with the values you copied from the previous step:
{ "client_id": "<client_id_copied_above>", "client_secret": "<client_secret_copied_above>", "grant_type": "client_credentials" }
- Put the JSON payload in the request body in your web service client.
- Make sure the
Content-type
of your request isapplication/json
. - Submit the request and retrieve the access token.
Refreshing your Access Token
When your access token expires, click the Regenerate Credentials button to generate new credentials you can use to obtain a new access token. See Obtaining an Access Token.
Note: Make sure you save your work before you begin the process to obtain an access token.
Comments
0 comments
Please sign in to leave a comment.