Refreshing Access Tokens
Since access tokens expire after a particular period, you need to use a refresh token to generate new access tokens. To generate, make a POST request with the following URL and the given parameters in the below table:
https://accounts.zoho.com/oauth/v2/token
Parameter | Description |
refresh_token | Refresh Token obtained in the previous step |
client_id | Client ID obtained from client registration |
client_secret | Client Secret obtained from client registration |
redirect_uri | Specify the same Callback URL that you passed for the client registration |
grant_type | Specify the value as "refresh_token" |
On success, you will receive the new access_token in the following structure:
{ "access_token": "{new_access_token}", "expires_in": 3600, "api_domain": "https://www.zohoapis.com", "token_type": "Bearer" }
To revoke a refresh token, make a POST request with the following URL and the given parameters in the below table.
https://accounts.zoho.com/oauth/v2/token/revoke
Parameter | Description |
token | Refresh Token that needs to be revoked |