Skip to main content

POST /v1/users/me/password

Change the caller's password. Requires the current password as a second factor.

::: tip Auth Required: cookie or Bearer. :::

Request

POST /v1/users/me/password

HeaderRequiredNotes
Cookie: identsphere_at=... OR Authorization: Bearer ...yes
Content-Type: application/jsonyes

Body

{
"current_password": "old-secret",
"new_password": "shiny-new-secret-with-12-chars-min",
"sign_out_other_sessions": true
}
FieldTypeRequiredNotes
current_passwordstringyesThe user's current password.
new_passwordstringyes12–256 chars. Must differ from current.
sign_out_other_sessionsboolnoDefault false. Recommended true on any user-initiated password change.

Response

204 No Content

Error responses

StatusCodeWhen
400invalid_inputLength validation failed, or new password equals current.
401authentication_requiredCurrent password doesn't match.
404not_foundUser no longer exists.

Notes

  • An audit entry (users.password_changed) is recorded.
  • When sign_out_other_sessions is true, every active session for this user EXCEPT the current one is revoked.
  • last_password_change is bumped.