# Generate backup codes **POST /api/experience/verification/backup-code/generate** Create a new BackupCode verification record with new backup codes generated. This verification record will be used to bind the backup codes to the user's profile. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Parameters ## Responses ### 200: Backup codes have been successfully generated. #### Body Parameters: application/json (object) - **verificationId** (string) The unique verification ID of the newly created BackupCode verification record. This ID is required when adding the backup codes to the user profile via the Profile API. - **codes** (array[string]) The generated backup codes. ### 400: Bad Request ### 404: The current interaction is not identified yet. All MFA verification records must be associated with a identified user. [Powered by Bump.sh](https://bump.sh)