Why am I getting INVALID_OAUTHTOKEN error on API access?
There are several reasons why you might face this error.
- If the token generated in one DC (e.g. accounts.zoho.com) is used in another DC (e.g. accounts.zoho.eu), the invalid_oauthtoken error will be thrown
- If you're using a deleted access token, invalid_oauthtoken error will be thrown. Since the validity for an access token is one hour, we have threshold (15 tokens) for number of active access tokens to be generated using a refresh token. Once the limit is exceeded, we will automatically delete the first created access token. As a best practice you can save the access token and reuse them.
- If you have recently deleted all the API tokens associated with your Zoho account when you changed your account password or deleted a connected app from your Zoho account, the invalid_oauthtoken will be thrown.