Access Token Request

The client makes an access token request by sending the authorization grant code to Zoho Accounts:

  • URI Endpoint:¬†https://accounts.zoho.com/oauth/v2/token
  • HTTP Request Type: POST
  • Mandatory Parameters:
    • client_id - Obtained from registering your client at the Zoho Accounts developer console.
    • grant_type - Value must be 'authorization_code'.
    • client_secret - Obtained from registering your application at the Zoho Accounts developer console.
    • Authorized Redirect URI - The URI endpoint that Zoho Accounts will redirect the web browser to. Make sure it is the same URI as the one specified in the authorization request.
    • Authorization Code -The authorization code you received as response for the authorization request.

Sample HTTP Request


				https://accounts.zoho.com/oauth/v2/token?
client_id=1000.GMB0YULZHJK411248S8I5GZ4CHUEX0&
grant_type=authorization_code&
client_secret=122c324d3496d5d777ceeebc129470715fbb856b7&
redirect_uri=https://www.zylker.com/oauthredirect&
code=1000.86a03ca5dbfccb7445b1889b8215efb0.cad9e1ae4989a1196fe05aa729fcb4e1			

Sample JSON Response

Zoho Accounts sends the access token and the optional refresh token.


				{
    "access_token":"1000.2deaf8d0c268e3c85daa2a013a843b10.703adef2bb337b 8ca36cfc5d7b83cf24",
    "refresh_token":"1000.18e983526f0ca8575ea9c53b0cd5bb58.1bd83a6f2e22c3a7e1309d96ae439cc1",
    "expires_in_sec":3600,
    "api_domain":"https://api.zoho.com",
    "token_type":"Bearer",
    "expires_in":360000
}