Skip to main content

DELETE /v1/auth/sessions/:id

Revoke a single session.

::: tip Auth Required: cookie or Bearer. :::

Request

DELETE /v1/auth/sessions/:id

Path paramTypeNotes
idUUIDThe session row id from GET /v1/auth/sessions.

Response

204 No Content

Idempotent — revoking an already-revoked session is a no-op.

Error responses

StatusCodeWhen
401authentication_requiredNo valid auth credential.
404not_foundNo such session, OR the session belongs to a different user.

Notes

  • The session-cache entry is invalidated so the middleware sees the revocation on the next request.
  • Revoking the current session signs the caller out, but the cookies on the response are NOT cleared (this endpoint isn't /logout). To both revoke and clear cookies, hit POST /v1/auth/logout.