Zitadel Preview Docs

Revoke my session

Logs out by permanently deleting the session. The `__nextgen_session` cookie issued at creation (or superseded by a handoff exchange) is required. Idempotent: if the session is already gone this still returns 204. Any tokens derived from the session are invalidated, and the cookie itself is cleared in the response.

DELETE
/sessions/me

Logs out by permanently deleting the session.

The __nextgen_session cookie issued at creation (or superseded by a handoff exchange) is required. Idempotent: if the session is already gone this still returns 204. Any tokens derived from the session are invalidated, and the cookie itself is cleared in the response.

Authorization

nextgenSession
__nextgen_session<token>

The __nextgen_session cookie issued at session creation or superseding handoff exchange.

A missing or invalid cookie yields 401 with code auth.unauthorized and the message Missing or invalid session token.

In: cookie

Response Body

application/json

application/json

curl -X DELETE "https://example.com/sessions/me"
Empty
{  "message": "string",  "details": {},  "code": "auth.unauthorized"}

{  "code": "auth.unauthorized",  "message": "The request lacks valid authentication credentials."}