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

# Reset Password

> This endpoint allows a user to reset their password using a token.

## POST /auth/reset-password

This endpoint sets a new password for a user's account, using the token sent to their email address.

### Request Body

<ParamField body="token" type="string" required>
  The password reset token from the email.
</ParamField>

<ParamField body="newPassword" type="string" required>
  The new password for the account. It must be at least 8 characters long.
</ParamField>

### Response

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

<ResponseField name="message" type="string">
  A confirmation message.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.llmgenerator.com/api/v1/auth/reset-password \
    -H "Content-Type: application/json" \
    -d '{
          "token": "PASSWORD_RESET_TOKEN",
          "newPassword": "newSecurePassword123"
        }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "message": "Password has been reset successfully."
  }
  ```
</ResponseExample>
