Skip to content

Logout and revoke tokens

POST
/api/auth/logout

Revokes the refresh token and clears authentication cookies.

Authorizations

ApiToken

Long-lived API token created via POST /api/api-tokens (returned once in plaintext).

Type
API Key (header: X-API-TOKEN)
or
JWT

JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer .

Type
HTTP (bearer)

Request Body

application/json
JSON
{
  
"refreshToken": "string"
}

Responses

Logged out successfully

application/json
JSON
{
  
"message": "Logged out successfully"
}

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI