`POST /v1/mfa/enroll`
POST/v1/mfa/enroll
Generates a random secret, stores it encrypted (status=pending), and
returns the otpauth:// URL + base32 secret for the QR code. The user
must then call /v1/mfa/verify with a valid TOTP code to confirm
enrollment.
Enroll it.
start TOTP enrollment.
Request
Responses
- 200
- 401
- 403
Enrollment started: the otpauth:// URL + base32 secret for the QR code
Not authenticated (bearer or session)
Admin-initiated enrollment requires the admin scope