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.
Last updated
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.
Last updated
This can be achieved by making a POST request shown below:
Different variables associated with this POST request are described below:
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:
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
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