# Switch the factor on and return the recovery codes

The code must come from the authenticator that was just provisioned, which is what proves the secret was transcribed correctly rather than locking the account…

This endpoint is described in full, with every parameter and response, in the OpenAPI description: https://docs.trustivan.com/openapi.yaml

Page: https://docs.trustivan.com/api-reference/mfa/switch-the-factor-on-and-return-the-recovery-codes
