Skip to main content

POST /auth/forgot-password

This endpoint sends a password reset email to the user. It is a public endpoint and does not require authentication.

Request Body

email
string
required
The email address of the user who has forgotten their password.

Response

success
boolean
Indicates whether the request was accepted. For security reasons, this will always be true even if the email does not exist in the system.
message
string
A confirmation message.
curl -X POST https://api.llmgenerator.com/api/v1/auth/forgot-password \
  -H "Content-Type: application/json" \
  -d '{
        "email": "[email protected]"
      }'
{
  "success": true,
  "message": "If an account with that email exists, a password reset link has been sent."
}