curl --request POST \
--url https://api.example.com/api/v1/auth/logout{
"status": 123,
"message": "<string>",
"meta": {}
}Revoke the current access token and end the user session
curl --request POST \
--url https://api.example.com/api/v1/auth/logout{
"status": 123,
"message": "<string>",
"meta": {}
}Authorization header.
Authorization: Bearer {your_access_token}
{
"status": 200,
"message": "Successfully logged out",
"meta": null
}
Show 401 Unauthorized - Missing or Invalid Token
{
"message": "Unauthenticated."
}
Authorization header is providedShow 500 Internal Server Error
{
"status": 500,
"message": "An unexpected error occurred"
}
curl -X POST https://api.sushigo.local/api/v1/auth/logout \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGc..."