Initiate MFA Setup
Initiates MFA setup for a user. Returns QR code URL and secret for TOTP, or sends a verification code for email.
POST
Error
Autorizaciones
Bearer authentication. Send Authorization: Bearer .
Parámetros de ruta
User ID
Cuerpo
application/json
MFA Setup Input
MFASetupInput payload
MFA type: "app" (TOTP) or "email"
Opciones disponibles:
app, email Ejemplo:
"app"
Respuesta
OK
MFASetupResponse payload
Whether MFA was already enabled
Configured MFA type
Ejemplo:
"app"
Recovery codes (store in a safe place)
Secret for manual TOTP configuration
Ejemplo:
"JBSWY3DPEHPK3PXP"
otpauth URL for QR code (TOTP only)
Ejemplo:
"otpauth://totp/..."

