> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quader864.ir/llms.txt
> Use this file to discover all available pages before exploring further.

# Reset password

> Reset password using the token from email

## Request body

<ParamField body="email" type="string" required>
  User's email address
</ParamField>

<ParamField body="token" type="string" required>
  Password reset token from email link
</ParamField>

<ParamField body="newPassword" type="string" required>
  New password (minimum 8 characters)
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the password was reset successfully
</ResponseField>

<ResponseField name="message" type="string">
  Success or error message
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api-verifier-2.onrender.com/password-recovery/reset \
    -H "Content-Type: application/json" \
    -d '{
      "email": "user@example.com",
      "token": "abc123def456...",
      "newPassword": "newsecurepassword123"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "message": "Password updated. You can now log in with your new password."
  }
  ```

  ```json 400 theme={null}
  {
    "error": "Reset link expired"
  }
  ```

  ```json 400 theme={null}
  {
    "error": "Invalid token"
  }
  ```
</ResponseExample>
