Polling Request

The client must set up a Polling request for an access token on the device until the user authorizes the client:

  • URI Endpoint: https://accounts.zoho.com/oauth/v3/device/code
  • 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 client at the Zoho Accounts developer console. The client secret must be kept confidential and should only be known to you and Zoho.
    • code -Value must be the device code received in the previous response.

The response is sent to the device as soon as the user authorizes the client. The device can now make secure API calls using the access token.

Sample HTTP Request


				https://accounts.localzoho.com/oauth/v3/device/token?
client_id=1004.UMU0Q8S6ALGI00130YOCEH63L8MEY1&
client_secret=122c324d3496d5d777ceeebc129470715fbb856b7&
scope=AaaServer.profile.READ&
grant_type=device_token&
code=1004.a6515b80185bb4353907ced5f74f0875.72245240fea3ce1f2a336106cac59b72			

Sample JSON Response


				{
    "access_token": "1004.a3fdad1f7115c8d00a491938a3650a2f.68485f81304",
    "expires_in_sec": 3600,
    "api_domain": "https://api.localzoho.com",
    "token_type": "Bearer",
    "expires_in": 3600000
}