POST
/mfa/generate-backup-codesRegenerate MFA backup codes
Regenerates backup codes for the authenticated user's MFA setup. Provide confirmPassword to confirm the action for password-based accounts; SSO-only users can omit it.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Password confirmation for regenerating MFA backup codes.
confirmPasswordstringoptional
Current account password to confirm the action. Required for password-based accounts. Optional for SSO-only users.
200Returns the newly generated backup codes in the successful response envelope, with the result in `data` and `status` and `success` fields.
dataobjectoptional
statusintegeroptional
successbooleanoptional
400Returned when request validation fails, such as when `confirmPassword` is missing for a password-based account or does not meet its length constraints.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
Error handling
A 400 is returned when confirmPassword fails validation. For password-based accounts, provide it and ensure it is between 8 and 70 characters; SSO-only users can omit it.