Authentication API
Enroll MFA
Enroll in multi-factor authentication
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
- Scan the QR code with an authenticator app (Google Authenticator, Authy, etc.)
- Verify MFA setup using MFA Verify
- Save backup codes in a secure location
Errors
object
Invalid or missing token
object
MFA already enrolled