Start TOTP enrollment
POST
/_torii/mfa/totp/enroll
const url = 'https://your-app.toriiauth.eu/_torii/mfa/totp/enroll';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-app.toriiauth.eu/_torii/mfa/totp/enrollGenerates a secret and otpauth URI. Pro+ only. Call confirm with a code to activate.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
Examplegenerated
{}