Skip to main content
POST
Error

Autorizaciones

Authorization
string
header
requerido

Bearer authentication. Send Authorization: Bearer .

Parámetros de ruta

id
string
requerido

User ID

Cuerpo

application/json

MFA Setup Input

MFASetupInput payload

mfaType
enum<string>
requerido

MFA type: "app" (TOTP) or "email"

Opciones disponibles:
app,
email
Ejemplo:

"app"

Respuesta

OK

MFASetupResponse payload

enabled
boolean

Whether MFA was already enabled

mfaType
string

Configured MFA type

Ejemplo:

"app"

recoveryCodes
string[]

Recovery codes (store in a safe place)

secret
string

Secret for manual TOTP configuration

Ejemplo:

"JBSWY3DPEHPK3PXP"

url
string

otpauth URL for QR code (TOTP only)

Ejemplo:

"otpauth://totp/..."