Revoke the session (invalidate a refresh token)
POST
/logout
public
Revokes the submitted `refresh_token` AND the access tokens issued from it — an immediate "sign out" primitive so a leaked or shared token dies now instead of at its natural expiry. Idempotent: always the identical generic 200, whether the token was valid, unknown or already revoked (no enumeration). Afterwards /refresh rejects the token with 401 and the client must re-run /login. Throttled and unauthenticated.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
refresh_token |
string | yes | The refresh token returned by POST /login. |
Revoke a refresh token
{
"refresh_token": "eyJhbGciOi..."
}
Responses
| Status | Description |
|---|---|
200 |
Identical generic confirmation regardless of token state. |
400 |
Missing or malformed refresh_token. |
401 |
Invalid or expired refresh token. |
429 |
Too many attempts; retry later. |
502 |
Upstream authentication call failed; a generic error is returned and no internals are leaked. |
200 example
{
"message": "session revoked"
}