Skip to main content
POST
/
:projectId
/
auth
/
change-password
Change Password
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/auth/change-password \
  --header 'Content-Type: application/json' \
  --data '{
  "password": "<string>",
  "newPassword": "<string>"
}'
{
  "success": true,
  "message": "<string>"
}
Allows an authenticated user to change their password by verifying the current password and setting a new one.

Body Parameters

password
string
required
The user’s current password for verification
newPassword
string
required
The new password to set (will be securely hashed)

Response

success
boolean
Indicates whether the password was changed successfully
message
string
Confirmation message

Error Responses

{
  "error": "Email, password, and a new password are all required.",
  "code": "auth/missing-fields"
}
{
  "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"
}
{
  "error": "Internal server error.",
  "code": "auth/server-error",
  "details": "<Error message>"
}

Notes

  • Only users authenticated via email and password can change their password.
  • The current password must be correct.
  • New password is hashed and stored securely.
I