Skip to content

Confirm TOTP enrollment

POST
/_torii/mfa/totp/confirm
curl --request POST \
--url https://your-app.toriiauth.eu/_torii/mfa/totp/confirm \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'

Verifies the first code, activates the factor, and returns single-use recovery codes (shown once).

Media typeapplication/json
object
code
required
string
Examplegenerated
{
"code": "example"
}

OK

Media typeapplication/json
object
Examplegenerated
{}