POST /api/auth/logout
Ends the current user session by invalidating the authentication tokens.Authentication
Required. Include the access token in the Authorization header.Request Headers
Bearer token for authenticationExample:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...Request Body
No request body required.Response Fields
Success message confirming the session was closed
Example Request
Example Response
Error Responses
400 Bad Request
Logout operation failed:401 Unauthorized
Missing or invalid authentication token:500 Internal Server Error
After logout, the access token and refresh token will be invalidated and cannot be used for further requests.