Refresh Access Token
Access tokens expire after an hour of generation. To generate a new access token, use the refresh token you generated earlier.
Note
You must use your domain-specific Zoho Accounts URL to refresh your access token.
- For US: https://accounts.zoho.com
- For AU: https://accounts.zoho.com.au
- For EU: https://accounts.zoho.eu
- For IN: https://accounts.zoho.in
- For CA: https://accounts.zohocloud.ca
- For SA: https://accounts.zoho.sa
Make a POST request with the following URL using query parameters:
{Accounts_URL}/oauth/v2/token?refresh_token={refresh_token}&client_id={client_id}&client_secret={client_secret}&grant_type=refresh_token
If the request is successful, you will receive the following output:
{
"access_token": "{new_access_token}",
"scope":"ZohoFSM.modules.all",
"api_domain": "https://www.zohoapis.com",
"token_type": "Bearer",
"expires_in": 3600,
}
Note
- A "User" in an organization can have a maximum of 20 refresh tokens. And each refresh token can have a maximum of 30 active access tokens (non expired).
- When a user creates a 31st access token, the system deletes the first created access token. Similarly, when the user creates the 21st refresh token, the system deletes the first created refresh token.