Skip to main content
Skip table of contents

Obtain device token

Use this endpoint to acquire a device token. Endpoint is available at /token relative path.

Parameters:

  • client_id: unique client ID
  • client_secret: API key
  • grant_type: device_code
  • device_code: the device code acquired via registration call

Return value:
The Error object if error occurred, otherwise Token JSON object which has the following structure:

CODE
{
    "token_type": "Bearer",
    "expires_in": NNN,
    "access_token": "xxx",
    "refresh_token": "yyy"
}
  • token_type – Always “Bearer”.
  • expires_in – Access token expiration time in seconds.
  • access_token – An access token that you must provide in the call to the public API login function.
  • refresh_token – The token used to refresh the device token.
If authorization_pending error is returned, the client should keep polling the endpoint until the token is acquired or some other error is returned.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.