Logout
Invalidates the current access token — only the token used for this request; the user's other tokens keep working. User must be authenticated.
HTTP Request
POST /api/v1/auth/logout
Response
204 No Content
Indicates a successful logout.
Error Handling
A failed logout (e.g., invalid or missing credentials) returns:
401 Unauthorized
json
{
"message": "Unauthenticated."
}