Skip to main content
POST
Enroll in multi-factor authentication (MFA) using TOTP (Time-based One-Time Password).

Headers

string
required
Bearer token (access token)

Response

string
TOTP secret key (for manual entry in authenticator apps)
string
QR code data URL (for scanning with authenticator apps)
array
One-time backup codes (save securely)

Next Steps

  1. Scan the QR code with an authenticator app (Google Authenticator, Authy, etc.)
  2. Verify MFA setup using MFA Verify
  3. Save backup codes in a secure location

Errors

object
Invalid or missing token
object
MFA already enrolled