API ReferenceGenerated Reference
Revoke the current login session
Submit a valid refresh token from this session. The entire session family is revoked, including previously issued access tokens and newer refresh tokens from rotation. Idempotent; does not revoke API keys. A missing, expired or legacy token without sid returns 401.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.xenodia.xyz/v1/auth/logout" \ -H "Content-Type: application/json" \ -d '{ "refresh_token": "string" }'{
"ok": true
}{
"error": "bad_request",
"message": "string",
"type": "string",
"code": "string"
}{
"error": "bad_request",
"message": "string",
"type": "string",
"code": "string"
}{
"error": "bad_request",
"message": "string",
"type": "string",
"code": "string"
}{
"error": "string",
"message": "string",
"request_id": "string"
}