Skip to content

Change a password. Verifies the current password before applying the new one.

POST
/account/security/password/change
curl --request POST \
--url https://api.siteqwality.com/account/security/password/change \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "current_password": "example", "new_password": "example" }'
Media type application/json
object
current_password
required
string
new_password
required
string
Example generated
{
"current_password": "example",
"new_password": "example"
}

Password changed

Media type application/json
object
ok
required
boolean
Example generated
{
"ok": true
}

Invalid new password

Current password is incorrect

Endpoint requires a user session

Internal server error

Stytch API call failed