Confirm Enrollment — POST /api/v1/auth/mfa/enroll/confirm
Confirm Enrollment
Verify a code against the staged seed, then enable MFA.
Endpoint: POST /api/v1/auth/mfa/enroll/confirm
Authentication: No access token or API key is needed.
Parameters
Section titled “Parameters”This endpoint takes no parameters.
Request body
Section titled “Request body”| Content type | Body | Required |
|---|---|---|
application/json | MfaEnrollConfirmRequest | yes |
Responses
Section titled “Responses”| Status | Meaning | Body |
|---|---|---|
200 | Successful Response | MfaEnrollConfirmResponse (application/json) |
422 | Validation Error | HTTPValidationError (application/json) |
Errors this endpoint returns, read from its source code:
400, with the message “That code did not match. Check your authenticator and try again”409, with the message “MFA is already enabled for this account”
Statuses not listed here are explained in Errors and retries.
More details
Section titled “More details”- Group: Authentication
- Operation ID:
confirm_enrollment_api_v1_auth_mfa_enroll_confirm_post - Source code:
backend/app/routers/mfa.py, line 301 - Specification: OpenAPI JSON