Migration for Redirection-based Applications
Purpose
To authenticate and generate access by refreshing the existing auth tokens for OAuth.
You can use this API if your application either has multiple users and obtains their username and password to generate an Authtoken or makes users input their Authtokens.
Note:
We will be deprecating support for Zoho Authtoken from December 15, 2020. If you are still using Authtoken for authentication, we recommend you migrate to OAuth 2.0 immediately. In order to migrate to OAuth 2.0, you will need Client ID and Client secret values. Refer to the OAuth 2.0 page for further details.
What do you have to do?
The application owner must share the client ID, auth token scopes, and the required OAuth scopes over an email to Zoho Mail Support. Zoho Mail will validate the details provided by you and will configure the same in Zoho Accounts. After successful validation, Zoho Mail will inform the application owner/spokesperson about the client upgrade via email.
How does it work?
- Once our support team successfully validate your details, you can access the below API with the Client ID, Client Secret, and Authtoken.
- Zoho Accounts will check if the parameters provided had been verified.
- After passing the check, Zoho Accounts will provide OAuth access and refresh the existing tokens.
Note:
- You can make a maximum migration request of up to 60 per minute and 100 per hour.
- After you generate the OAuth token, the already existing Authtokens will be deleted within an hour.
- You can pass invalid Authtoken for a maximum of 20 times. If you exceed the limit, our system will block the client and will throw the "access_denied" error message.
Request URL
https://accounts.zoho.com/oauth/v2/token/external/authtooauth
Request Parameters
| Parameter | Data Type | Description |
| client_id* | String | The ID that was assigned to your app when you registered it. |
| client_secret* | String | The unique hash generated from the connected application. |
| grant_type* | String | The grant_type value is "authtooauth" |
| authtoken* | String | The authtoken of your account. |
Troubleshoot
| Error text | Reason |
| invalid_grant | The grant_type is not specified as authtooauth. |
| access_denied |
|
| invalid_client |
|
| invalid_authtoken |
|