Skip to content
Torii docs

Reset password

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

Resets the user’s password using the code received via email.

Host
string
Media type application/json

Payload for resetting a password with the received code

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

OK

Media type application/json
object
Example generated
{}