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

# Change Password

> Change the authenticated user's password

Changes the password for the currently authenticated user. The user must provide their current password for verification. Requires a valid access token in the `Authorization` header.

<Note>
  This endpoint is only available to users who signed up with email and password.
  OAuth-only users who have no password will receive a `400` error.
</Note>

## Body Parameters

<ParamField body="password" type="string" required>
  The user's current password.
</ParamField>

<ParamField body="newPassword" type="string" required>
  The new password. Must be different from the current password.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  `true` on success.
</ResponseField>

<ResponseField name="message" type="string">
  Confirmation message: `"Password updated successfully."`
</ResponseField>

## Error Responses

<AccordionGroup>
  <Accordion title="User Not Found — 403">
    ```json theme={null}
    {
      "error": "User not found.",
      "code": "auth/no-user-found"
    }
    ```
  </Accordion>

  <Accordion title="Not Password Authenticated — 400">
    ```json theme={null}
    {
      "error": "User is not authenticated with email and password.",
      "code": "auth/not-password-authenticated"
    }
    ```
  </Accordion>

  <Accordion title="Wrong Password — 401">
    ```json theme={null}
    {
      "error": "Incorrect password.",
      "code": "auth/wrong-password"
    }
    ```
  </Accordion>
</AccordionGroup>

## See Also

* [`useAuth` hook](/hooks/auth/use-auth) — `changePassword`
* [Built-in Auth guide](/sdk/authentication/built-in)
