Reset Password
Completes the password recovery flow by setting a new password for the account. This endpoint is typically called after the user has successfully verified their identity via OTP.
Endpoint
Section titled “Endpoint”POST
/user/v1/resetpwdRequest Body
Section titled “Request Body”curl -X POST https://api.juspredict.com/user/v1/resetpwd \-H 'Authorization: Bearer YOUR_TOKEN' \-H 'Content-Type: application/json' \-d '{"new_password": "newSecurePassword456"}'{"new_password": "newSecurePassword456"}Constraints
Section titled “Constraints”| Field | Requirement |
|---|---|
new_password | Must be between 8 and 16 characters. |
Response Body
Section titled “Response Body”{"status": {"type": "SUCCESS","details": []}}{"status": {"type": "ERROR","details": [ { "code": "401", "message": "Unauthorized access token." }]}}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
status | Status | Operation status. |