Logout
POST
/web/v1/users/self/auth/logout JWTLogs the authenticated user out by terminating the current session and invalidating the associated tokens.
Required Headers
| Header | Example Value | Description |
|---|---|---|
| Content-Type | application/json | Request content type |
| Accept | application/json | Expected response type |
| X-Client-Hash | Client device fingerprint | |
| Accept-Language | en, zh, zh-Hant, ja, vi | Response language (default: en) |
| Authorization | Bearer | JWT access token |
Request Parameters
No request parameters required.
Success Response
Success 200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"terminatedSessions": 1
}
}Error Responses
Unauthorized 401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- Terminates the current session and invalidates the associated tokens.
- The
terminatedSessionsfield in the response indicates how many sessions were ended. - Rate limited to 10 requests per default window (
@RateLimit(limit=10)).