Docs
Live demo

Confirm authenticator app enrollment during sign-in

POST/api/v2/auth/mfa/login/totp/enrollments/{id}/confirm

Activate the pending authenticator with a current code, issue the session cookies and return the recovery codes once.

Parameters

Path1 required of 1
idstringpathrequired

Pending enrollment identifier returned by the start call.

Request body application/json · MFAConfirmTOTPRequest

Required2 of 2 fields
codestringrequired
min length 6 · max length 16
namestringrequired

Label shown in the method list.

min length 1 · max length 64

Responses

200

Session issued

MFALoginCompleteResponse · 5 fields
redirectstringrequired

Sanitized post-login path.

methodstringrequired

Factor that completed sign-in. Empty when the enrollment offer was skipped.

totpwebauthnrecovery_code
recovery_codes_remaininginteger · int64

Unused recovery codes left. Present only when a recovery code was used.

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 once when sign-in enrollment created the first factor.

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.

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

↑ ↓ to moveEnter to openEsc to close