Refresh Token

watch.auth.session.refresh

The refresh token endpoint is used to obtain a new access token by providing a refresh token. This endpoint handles token renewal and management.

Headers

Header Value
Authorization Bearer api_key

Endpoint

POST v2/watch/auth/token/refresh

Request Body

    {
        "refresh_token": "<your JWT token>"
    }
Parameter Type Description
refresh_token String The JWT refresh token that was provided during the login API call.

The Indee platform will authenticate the provided API key and refresh token validity and generate a new JWT Access Token.

Response Body

    {
        "status_code" : "W0000",
        "token": "<new JWT access token>"
    }
Field Type Description
status_code Integer The Indee API status code. See the full list of codes in the Status Codes section.
token String The new access token that can be used in subsequent API calls.

Status Codes

Indee status code HTTP Response Code Description
W0000 HTTP 200 Success
W2000 HTTP 401 Authorization header was either not passed or there was some issue parsing it
W2001 HTTP 401 API key is invalid or expired, or is not fully configured
W2009 HTTP 401 ClientID header was either not passed or is malformed
W2100 HTTP 403 Origin domain is not whitelisted for this API key
W2108 HTTP 403 Watch product is inactive
W2102 HTTP 451 Request blocked by geofencing for the resolved region
W5001 HTTP 429 Rate limited
W5000 HTTP 500 Unknown server error occurred