logo
AdminChange the authenticated admin's own password

Change the authenticated admin's own password

curl -X PATCH "https://mail.haltman.io/api/admin/users/me/password" \
  -H "Content-Type: application/json" \
  -H "X-CSRF-Token: YOUR_API_KEY" \
  -d '{
  "current_password": "example_string",
  "new_password": "example_string"
}'
{
  "ok": true,
  "updated": true,
  "reauth_required": true,
  "sessions_revoked": 42
}
PATCH
/api/admin/users/me/password
PATCH
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.
Content-Typestring
Required

The media type of the request body

Options: application/json
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
updatedboolean
Required
reauth_requiredboolean
Required
sessions_revokedinteger
Required