Logout
The logout API ends a session on the Indee platform. This API call will expire both the access and refresh tokens.
The authorization header must carry the API key that was provided during application registration.
| Header |
Value |
| Authorization |
Bearer api_key |
Endpoint
POST v2/watch/auth/logout
Request Body
Send the refresh token issued at login in the JSON body.
{
"refresh_token": "<your refresh token>"
}
| Parameter |
Type |
Requirement |
Description |
refresh_token |
String |
Required |
The refresh token issued by the login API. Invalidating it ends the session. |
Response Body
{
"status_code": "W0000"
}
| Field |
Type |
Description |
status_code |
Integer |
The Indee API status code. See the full list of codes in the Status Codes section. |
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 |
| W2003 |
HTTP 401 |
Invalid or expired auth token |
| W5001 |
HTTP 429 |
Rate limited |
| W5000 |
HTTP 500 |
Unknown server error occurred |