logo
AuthGet a CSRF token for the current session family

Get a CSRF token for the current session family

curl -X GET "https://mail.haltman.io/api/auth/csrf" \
  -H "Content-Type: application/json"
{
  "ok": true,
  "csrf_token": "example_string"
}
GET
/api/auth/csrf
GET
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 (cookie: __Host-refresh)
__Host-refreshstring
Required

Refresh-session cookie used to rotate sessions and derive CSRF tokens.

Refresh-session cookie used to rotate sessions and derive CSRF tokens.
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.

path
parameterstring
Required

API Key for authentication. Refresh-session cookie used to rotate sessions and derive CSRF tokens.

Responses

okboolean
Required
csrf_tokenstring
Required