Skip to main content
Skip table of contents

Refresh device or user token

Use this endpoint to refresh device token or user token acquired from the public API /login call. Endpoint is available at /token relative path.

Parameters:

  • client_id: unique client ID. Use "api" value for user token acquired from the public API
  • client_secret: API key
  • grant_type: refresh_token
  • refresh_token: the refresh token

Return value:
The Error object if error occurred, otherwise Token JSON object with 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 – A device access token.
  • refresh_token – The new refresh token.
JavaScript errors detected

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

If this problem persists, please contact our support.