Token Management
Learn how to generate the access token by using a Refresh Token. This applies in cases where the token has either expired or has become invalid.
Step 1:Generating Access Token from Refresh Token
This can be achieved by making a POST request shown below:
Different variables associated with this POST request are described below:
Variables
Status
Description
token_type*
Required
user
grant_type*
Required
Grant type should be access token
refresh_token*
Required
Add the refresh token here received in Step 3
client_id*
Required
Add the client id received in Step 2
client_secret*
Required
Add the client secret received in Step 2
The response to this request will be of similar format as that of Step 3 shown below:
Please note that the refresh_token generated with this response will be a new refresh_token. So going forward, the client must replace the old refresh_token with the new one.
Visual representation to understand Token Management Step 1:
Visual representation to understand Token Management Step 1:
STEP 2: Access Token Validation
At any point, if the user wants to validate if the access_token is valid or not, the user can call the endpoint defined below:
Here the user will pass the bearer token (user) in the header. The response of the request will be following for success and failure case
Last updated