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

Store the attested credential. Recovery codes are returned when this is the first factor.

Parameters

Path1 required of 1
idstringpathrequired

Pending enrollment identifier returned by the start call.

Request body application/json · MFAConfirmWebAuthnRequest

Required2 of 2 fields
credentialmap of string → anyrequired

PublicKeyCredential serialized with toJSON().

namestringrequired
min length 1 · max length 64

Responses

200

OK

MFAEnrollmentResultResponse · 2 fields
methodMFAMethodResponserequired

One enrolled second factor.

5 fields
idstring · uuidrequired
typestringrequired

Factor kind.

totpwebauthn
namestringrequired
created_atstring · date-timerequired
last_used_atstring · date-time
recovery_codesarray of string

Present only when this enrollment was the identity's first factor.

409

Conflict

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: 400 401 403 404 413 500 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close