Skip to content

Reset password

POST
/_torii/auth/reset-password
curl --request POST \
--url https://your-app.toriiauth.eu/_torii/auth/reset-password \
--header 'Content-Type: application/json' \
--data '{ "email": "[email protected]", "code": "example", "newPassword": "example" }'

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

Host
string
Media typeapplication/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
Examplegenerated
{
"email": "[email protected]",
"code": "example",
"newPassword": "example"
}

OK

Media typeapplication/json
object
Examplegenerated
{}