MonetaryAI / Docs
API ReferenceAccount security

Change password using current password

Requires matching confirmation and the current password. Atomically invalidates all refresh sessions, outstanding email challenges and access JWTs across every membership. Login again after success.

POST
/api/v1/me/security/password

Authorization

bearerAuth
headerAuthorizationBearer <token>

Obtained from POST /api/v1/auth/login, on the tenant's own subdomain. Presenting it on another tenant's subdomain is a 403.

Request Body

application/json
  1. body
confirmPassword*string
Formatpassword
Length12 <= length <= 72
currentPassword*string
Formatpassword
Length0 <= length <= 72
newPassword*string
Formatpassword
Length12 <= length <= 72

Response Body

Password changed; login again

curl -X POST 'https://api.monetaryai.uz/api/v1/me/security/password' \  -H 'Content-Type: application/json' \  -d '{  "confirmPassword": "pa$$word_qwe",  "currentPassword": "pa$$word",  "newPassword": "pa$$word_qwe"}'
Empty