Skip to content

Regenerate recovery codes

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

Invalidates existing codes and returns a fresh set. Requires a current TOTP code.

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

OK

Media typeapplication/json
object
Examplegenerated
{}