Skip to main content

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

token
string
required
The password reset token from the email.
newPassword
string
required
The new password for the account. It must be at least 8 characters long.

Response

success
boolean
Indicates whether the password was successfully reset.
message
string
A confirmation message.
curl -X POST https://api.llmgenerator.com/api/v1/auth/reset-password \
  -H "Content-Type: application/json" \
  -d '{
        "token": "PASSWORD_RESET_TOKEN",
        "newPassword": "newSecurePassword123"
      }'
{
  "success": true,
  "message": "Password has been reset successfully."
}