Skip to main content
POST
/
v1
/
auth
/
logout
`POST /v1/auth/logout` — revoke the caller's session JWT (by `jti`). Accepts even an already-expired token so a stale tab can still log out.
curl --request POST \
  --url https://api.pegana.xyz/v1/auth/logout \
  --header 'Authorization: Bearer <token>'

Authorizations

Authorization
string
header
required

Session JWT issued by POST /v1/auth/telegram (Telegram Login Widget) or POST /v1/auth/magic/consume. Send as Authorization: Bearer <jwt>.

Response

Session revoked