POST/api/v2/auth/mfa/totp/enrollments/{id}/confirm
Signed-in sessionConsole session only
Activate the pending authenticator with a current code. 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 · MFAConfirmTOTPRequest
Required2 of 2 fields
codestringrequired
namestringrequired
Label shown in the method list.
Responses
200
OK
MFAEnrollmentResultResponse · 2 fields
One enrolled second factor.
5 fields
idstring · uuidrequired
typestringrequired
Factor kind.
totpwebauthnnamestringrequired
created_atstring · date-timerequired
last_used_atstring · date-time
recovery_codesarray of string
Present only when this enrollment was the identity's 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.
503
Service Unavailable
Common errors: 400 401 403 404 413 500 504. They mean the same for every operation, see Errors.