Skip to content

Forgot Password

POST
/api/auth/forgot-password
curl --request POST \
--url https://example.com/api/auth/forgot-password \
--header 'Content-Type: application/json' \
--data '{ "email": "example" }'

Request a password reset email.

Always returns 200 with {"sent": true} to avoid leaking whether the email address exists or has password credentials.

Media type application/json
ForgotPasswordBody
object
email
required
Email
string
Example generated
{
"email": "example"
}

Successful Response

Media type application/json
SentResponse

{"sent": True} confirmation. Used by forgot-password / set-password flows that always succeed from the client’s perspective.

object
sent
required
Sent
boolean
Example generated
{
"sent": true
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}