Generate new backup codes
POST/api/v1/profile/mfa/backup_codes
Replaces your backup codes with a fresh set and answers with them.
The previous codes stop working, and the new ones are shown only here. Needs a current code from the authenticator, and two-factor already enabled.
Request
Responses
- 200
- 403
- 422
Success
Two-factor is not available on this installation
Wrong code, or two-factor is not enabled