logo
AuthRevoke the current session family and clear cookies

Revoke the current session family and clear cookies

Idempotent. If no valid session exists, the route still returns 200 and clears cookies.

curl -X POST "https://mail.haltman.io/api/auth/sign-out" \
  -H "Content-Type: application/json" \
  -H "X-CSRF-Token: YOUR_API_KEY"
{
  "ok": true,
  "action": "sign_out",
  "signed_out": true
}
POST
/api/auth/sign-out
POST
API Key (cookie: __Host-access)
__Host-accessstring
Required

Access-session cookie used for user and admin authentication.

Access-session cookie used for user and admin authentication.
API Key (header: X-CSRF-Token)
X-CSRF-Tokenstring
Required

CSRF token derived from the current session family.

CSRF token derived from the current session family.
Request Preview
Response

Response will appear here after sending the request

Authentication

path
parameterstring
Required

API Key for authentication. Access-session cookie used for user and admin authentication.

header
X-CSRF-Tokenstring
Required

API Key for authentication. CSRF token derived from the current session family.

Responses

okboolean
Required
actionstring
Required
Allowed values:sign_out
signed_outboolean
Required