Skip to content
Torii docs

Forgot password

POST
/_torii/auth/forgot-password
curl --request POST \
--url https://your-app.torii.so/_torii/auth/forgot-password \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com" }'

Sends a password reset code to the user’s email. Always returns 200 to avoid leaking email existence.

Host
string
Media type application/json

Payload for requesting a password reset code

object
email
required
string format: email
>= 1 characters
Example generated
{
"email": "hello@example.com"
}

OK

Media type application/json
object
Example generated
{}