# Generate recovery codes **PUT /auth/recovery-codes** Generate new recovery codes for two-factor authentication. It requires two-factor authentication verification. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Jwt authorization ## Parameters ### Body: application/json (object) - **totp** (string) TOTP verification code - **email_otp** (string) Email OTP verification code - **fido_authentication_response** (object) FIDO authentication response - **recovery_code** (string) Recovery code for two-factor authentication ## Responses ### 200 New recovery codes generated ### 400 No two-factor authentication enabled or verification failed [Powered by Bump.sh](https://bump.sh)