- Common Error Responses
- Authentication
- Filtering Data
- Getting Started
- Authentication
- Advanced Reports
- Audit
- Notifications
- Exceptions
- Hosts
- Organizations
- Whitelabel Settings
- Port Lists
- Reports
- Scanners
- Scans
- Schedules
- Targets
- User
- User 2FA
- User Preferences
- Get current userGET
- Update current userPUT
- Change current user passwordPUT
- Get current user active plans (Not implemented yet)GET
- Get organization membersGET
- Get current user productsGET
- Get current organizationGET
- Update current organizationPUT
- Get subscriptions historyGET
- Change users productPUT
- Checks if authorization token is validGET
- Get current user permissionsGET
- Check if the user can be deletedGET
- Delete my accountDELETE
- Generates a new access tokenPUT
- Revokes the current access tokenPUT
- (Admin) Transfers all the resources from the user to another userPUT
- Users
- Vulnerabilities
- Webhooks
Generate Recovery Codes
PUT
/v2/user/mfa/generate_recovery_codes
User/User 2FA
Last modified:2025-04-24 10:59:46
To generate recovery codes you should have at least one 2FA method enabled.
Request
None
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/v2/user/mfa/generate_recovery_codes'
Responses
🟢200OK
This response does not have a body.
🟠401Unauthorized
🟠422Parameter Error
Modified at 2025-04-24 10:59:46