Endpoint
Authentication
Required. Include the session token in theAuthorization header.
If no valid token is provided, this endpoint returns 401 Unauthorized.
Request Headers
Bearer token obtained from
/api/auth/login. Format: Bearer fn_sess_...Response
Always
true when logout succeedsError Responses
Status Codes
200 OK- Session invalidated successfully401 Unauthorized- No valid authentication token provided
Examples
Behavior Notes
- The session token is immediately invalidated and cannot be reused
- If the token was already invalid or expired, the endpoint still returns
200 OK - After logout, you must call
/api/auth/loginagain to get a new token - Logout does not affect other active sessions if you’re logged in from multiple clients