OpenRCS API reference · v1 ← Back to console Swagger UI
Accounts

Set a new password with the emailed reset code

POST /password-reset/confirm public

Confirms the reset with the emailed code. After success, the next login is the normal POST /login — the optional `SMS_MFA` challenge fires only for enrolled accounts. Throttled and unauthenticated.

Request body

FieldTypeRequiredDescription
username string yes Account email address.
code string yes Password-reset code received by email.
password string yes New password. Policy: minimum 8 characters with at least one uppercase letter, one lowercase letter, one digit and one special character; maximum 256 characters.

Set the new password

{
  "username": "user@example.com",
  "code": "123456",
  "password": "NewSecret1!"
}

Responses

StatusDescription
200 Password updated.
400 Missing/invalid fields, a wrong or expired reset code (the handler answers 400 for both — it never returns 401), or the new password violates the policy (min 8 chars, upper + lower + digit + special, max 256).
429 Too many attempts; retry later.
502 Upstream authentication call failed; a generic error is returned and no internals are leaked.

200 example

{
  "message": "password updated"
}