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#
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required | The 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.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 404 | not_found | No such route, or the resource doesn't exist in your workspace. |
| 500 | internal_error | Something went wrong on Logu's side. |