Logout
Endpoint used for terminating the user's session and invalidating the current access token. After logout, the token can no longer be used for authentication.
Request
| Property | Value |
|---|---|
| Method | POST |
| URL | /api/auth/logout |
| Content-Type | application/json |
| Authentication | Bearer Token |
Request
curl -X POST "{BASE_URL}/api/auth/logout" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'
Response Body
| Parameter | Type | Description |
|---|---|---|
meta.executionTime | integer | Request processing time in milliseconds |
meta.generatedAt | integer | Response generation timestamp (Unix timestamp in ms) |
message | string | Main response status message |
Successful Response (200)
{
"meta": {
"executionTime": 0,
"generatedAt": 1763638702144
},
"message": "You have been logged out"
}
Error Response (4xx/5xx)
| Parameter | Type | Description |
|---|---|---|
message | string | Human-readable error message |
timestamp | integer | Error timestamp (Unix timestamp in ms) |
{
"message": "Could not authorize with given access token",
"timestamp": 1763638715202
}
Notes
- After logout, the access token is invalidated and cannot be reused.
Support Needed?
Create a free ticket and our support team will provide you necessary assistance.