AimableDocs
DocsAPI ReferenceRelease Notes
POST/v1/auth/logout

Logout

Delete the caller's `Session` row and clear the cookie. Previously this only deleted the cookie — leaving the server-side `Session` row intact. A stolen bearer (or a copy of the cookie value) could then be presented to `/v1/refresh` indefinitely, minting fresh 8h tokens long after the user clicked "log out". We now invalidate the session row so refresh + subsequent requests both fail closed.

Authentication
X-API-Key: ak.<key_id>.<secret>Authentication & errors →

Request

curl -X POST '/api/v1/auth/logout' \
  -H 'X-API-Key: ak.<key_id>.<secret>'

Response

200

No response body documented