Skip to main content
POST /api/v1/logout Requires BearerAuth. Revokes the current session and invalidates the provided refresh token. After calling this endpoint, both the access token and refresh token are no longer accepted.

Request body

refresh_token
string
required
The refresh token to invalidate.

Response

logged_out
boolean
required
Always true on success.

Errors

StatusWhen
400Request body is missing or malformed
401The access token or refresh token is missing or invalid

Example

curl -X POST http://localhost:8080/api/v1/logout \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  }'
{
  "logged_out": true
}

Build docs developers (and LLMs) love