Logout
This API allows the user to log out of Indee account.
Endpoint
POST v1/admin/auth/logout
| Header |
Value |
| Authorization |
Bearer api_key. |
Request Body
{
"refresh_token": <str> #JWT
}
| Parameter |
Type |
Requirement |
Description |
refresh_token |
String |
Required |
The refresh token represents its namesake as defined in OAuth 2.0. |
Response Body
{
"status_code": "A0000",
"status_message": "success"
}
| Field |
Type |
Description |
status code |
String |
Status code provided by Indee. |
status_message |
String |
Message body of the status code. |
Error Codes
Indee provides a comprehensive list of Error Codes. To know more, see Common Error and Success Codes.
Common Error and Success Codes
The API response for authentication APIs follow the common status code format
as outlined in the API Status codes.
Success Codes
| Indee Status Code |
HTTP Status Code |
| A0000 |
200 |
Error Codes
| Indee Status Code |
HTTP Status Code |
| A2001 |
401 |
Error Response
The error responses for all Auth APIs will follow the model as outlined in Indee Error
codes.
{
"status_code": "A2002",
"status_message": "Access Denied"
}
The HTTP response codes will adhere to Indee Error codes.