Skip to main content
POST
/
:projectId
/
api
/
v7
/
auth
/
change-password
Change Password
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/auth/change-password \
  --header 'Content-Type: application/json' \
  --data '
{
  "password": "<string>",
  "newPassword": "<string>"
}
'
{
  "success": true,
  "message": "<string>"
}
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.
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.

Body Parameters

password
string
required
The user’s current password.
newPassword
string
required
The new password. Must be different from the current password.

Response

success
boolean
true on success.
message
string
Confirmation message: "Password updated successfully."

Error Responses

{
  "error": "User not found.",
  "code": "auth/no-user-found"
}
{
  "error": "User is not authenticated with email and password.",
  "code": "auth/not-password-authenticated"
}
{
  "error": "Incorrect password.",
  "code": "auth/wrong-password"
}

See Also