Allows an authenticated user to securely log out. This endpoint works by revoking the user's current access token, making it unusable for future authenticated requests. This action ensures that the session is terminated on the server-side, providing enhanced security.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Responses
🟢200Success
application/json
Body
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://test.your-api-server.com/logout' \
--header'Accept: application/json' \
--header'Authorization: Bearer <token>'