Reset Password API
Welcome to the documentation for the Reset Password API. This API helps user's reset password if forgotten.
Base URL
{baseURL}/v1/users/reset-password | POST
Request Payload
Field | Type | Source | Required | Description |
---|---|---|---|---|
code | string | body | ✅ Yes | OTP sent to user's email |
new_password | string | body | ✅ Yes | User's new password |
confirm_password | string | body | ✅ Yes | Confirm new password |
Sample Request
curl -X POST {baseURL}/v1/users/reset-password \
-H 'Content-Type: application/json' \
-d '{
"code": "267102",
"new_password": "user123456",
"confirm_password": "user123456"
}'
Sample 200 Response
{
"message": "Password reset successfully",
"success": true
}