Skip to content
Torii docs

Confirm TOTP enrollment

POST
/_torii/mfa/totp/confirm
curl --request POST \
--url https://your-app.torii.so/_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 type application/json
object
code
required
string
Example generated
{
"code": "example"
}

OK

Media type application/json
object
Example generated
{}