LoguDocs
Open Logu

Sign-in · revokeSession

Sign out a session

POST /api/auth/sessions/{id}/revoke

One of your sessions (this one too: that signs you out).

Who may call it
Anyone (no credentials)
Server
https://api.logu.dev

Parameters#

NameInTypeRequiredDescription
idpathstringrequiredThe passkey's or session's id. · e.g. Xq3bY7tLmN2pR8sV

Example#

curl -s -X POST "https://api.logu.dev/api/auth/sessions/Xq3bY7tLmN2pR8sV/revoke" \
  -H "Authorization: Bearer $LOGU_SESSION_TOKEN"

Responses#

204

Signed out.

Errors#

Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.

StatusCodeMeaning
401unauthorizedNo credentials, or the API key or session is invalid or revoked.
404not_foundNo such route, or the resource doesn't exist in your workspace.
500internal_errorSomething went wrong on Logu's side.