Skip to content
Sign in Create account

Request a password-reset link

POST /api/auth/forgot-password

Always returns the same body whether or not the email exists (anti-enumeration). Controllers throttle this endpoint.

This operation needs no authentication.

Request body

application/json object

  • email string (email) required

Generated sample

{
  "email": "user@example.com"
}

Responses

200 Reset link dispatched if the account exists

application/json object

  • message string
  • status string
    Example: "sent"

Generated sample

{
  "message": "string",
  "status": "sent"
}
422 Validation error

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Route rate limit exceeded.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string