Docs
Live demo
POST/api/v2/auth/mfa/login/recovery

Consume a single-use recovery code for the pending login challenge and issue the browser session cookies.

Request body application/json · MFACodeRequest

Required1 of 1 fields
codestringrequired

Authenticator or recovery code.

min length 6 · 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). Identity lockout returns details.reason=mfa_locked and details.retry_at (UTC RFC3339). Retry-After is the delay in seconds.

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

↑ ↓ to moveEnter to openEsc to close