Docs
Live demo
POST/api/v2/auth/mfa/totp/enrollments
Signed-in sessionConsole session only

Issue a new TOTP secret with QR code. Once MFA is enrolled this requires a fresh step-up verification.

Responses

200

OK

MFATOTPEnrollmentResponse · 7 fields
enrollment_idstring · uuidrequired
secretstringrequired

Base32 secret for manual entry. Shown once.

uristringrequired

otpauth:// URI encoded in the QR code.

qr_code_data_urlstringrequired

PNG data URL of the QR code.

issuerstringrequired
accountstringrequired
expires_atstring · date-timerequired
429

Rate limited (request.rate_limited). Contended verification returns details.reason=mfa_verification_busy. Retry-After is the delay in seconds. Enrollment failures do not affect the identity lockout.

503

Service Unavailable

Common errors: 401 403 500 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close