Docs
Live demo
POST/api/v2/auth/mfa/webauthn/enrollments
Signed-in sessionConsole session only

Return WebAuthn creation options for a new security key. Once MFA is enrolled this requires a fresh step-up verification.

Responses

200

OK

MFAWebAuthnEnrollmentResponse · 3 fields
enrollment_idstringrequired
optionsmap of string → anyrequired

WebAuthn creation options (PublicKeyCredentialCreationOptionsJSON under publicKey).

expires_atstring · date-timerequired
429

Rate limited (request.rate_limited). Contended verification returns details.reason=mfa_verification_busy. Retry-After is the delay in seconds. Enrollment failures do not affect the identity lockout.

503

Service Unavailable

Common errors: 401 403 500 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close