/auth/resetpassword
/auth/forgotpassword.
code as a query parameteremail and new_password in the request bodyemail, current_password, and new_password in the request bodycurrent_password must match the user’s existing passwordPATCH
Password Requirements:
| Parameter | Type | Description |
|---|---|---|
| code | string | The verification code sent to the user’s email (required for forgot password flow) |
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | The email address of the user | |
| new_password | string | Yes | The new password to be set |
| confirm_password | string | No | Password confirmation (must match new_password if provided) |
| current_password | string | Conditional | Required for authenticated password change (Flow 2) |
Note: You must provide eithercode(query param) ORcurrent_password(body), but not both.
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
The verification code sent to the user's email (required for forgot password flow)
The email address of the user
The new password to be set (must meet password complexity requirements)
"NewSecurePassword123!"
Password confirmation (optional, must match new_password if provided)
"NewSecurePassword123!"
Current password (required for authenticated password change, not needed if using code)
"OldPassword123!"
Password reset successful