Regenerate MFA backup codes
POST/api/auth/mfa/backup-codes/regenerate
Replaces the existing backup codes with a fresh set of 10. The TOTP secret is left unchanged, so existing authenticator apps keep working. Requires the current password. The new codes are returned once.
Request
Responses
- 200
- 400
- 401
- 404
- 429
- 500
Backup codes regenerated
Validation error, or MFA is not enabled
Not authenticated or incorrect password
User not found
Too many password attempts, please try again later
Server error