/{app_slug}/v1/me/change-passwordAuthChange the password of the signed-in EndUser
Verifies `current_password`, sets the new hash, and revokes every OTHER active session for the account (the calling session is preserved). 401 if the current password is wrong or the account has no password credential — admin-provisioned accounts without an initial password should use the reset flow instead. The new password is held to exactly the same policy as signup: the app's length + character-class rules, the common-password deny-list, and the breach corpus.
Path parameters
app_slug*stringSlug of the app.
Request body
current_password*stringThe current password — required even when changing.
Example: "correct horse battery staple"
new_password*stringThe new password. Must be at least 8 chars; the app may enforce a stricter policy.
Example: "a new long passphrase 42"
Response · 204
Password updated.
Example
Request
POST https://api.auth.productcraft.co/{app_slug}/v1/me/change-password
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"current_password": "correct horse battery staple",
"new_password": "a new long passphrase 42"
}