Send password reset email
POST
/auth/send-password-reset
const url = 'https://example.com/api/auth/send-password-reset';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","callback_origin":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/send-password-reset \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "callback_origin": "example" }'First-party recovery email via admin generateLink (recovery) + Mailgun.
Always returns an opaque success message (enumeration-safe). IP rate limited; no Origin required.
Request Body required
Section titled “Request Body required ” Media type application/json
object
email
required
string format: email
callback_origin
string
Responses
Section titled “ Responses ”Opaque acknowledgment (whether or not an account exists)
Media type application/json
object
ok
required
boolean
message
required
string
Invalid request
Media type application/json
object
error
required
Human-readable error message
string
code
Stable machine-readable error code for client branching
string
fieldErrors
First validation message per field path
object
key
additional properties
string
issues
Structured validation issues (Zod)
Array<object>
object
path
required
string
message
required
string
retryAfter
Seconds until rate limit resets (429 responses)
number
Rate limited
Media type application/json
object
error
required
Human-readable error message
string
code
Stable machine-readable error code for client branching
string
fieldErrors
First validation message per field path
object
key
additional properties
string
issues
Structured validation issues (Zod)
Array<object>
object
path
required
string
message
required
string
retryAfter
Seconds until rate limit resets (429 responses)
number
retryAfter
Seconds until the rate limit resets
number
Headers
Section titled “Headers ” Retry-After
string
Auth not configured
Email delivery failed