Generate recovery codes
Generate new recovery codes for two-factor authentication. It requires two-factor authentication verification.
PUT
/auth/recovery-codes
curl \
--request PUT 'http://api.example.com/auth/recovery-codes' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"totp":"string","email_otp":"string","fido_authentication_response":{},"recovery_code":"string"}'
Request examples
{
"totp": "string",
"email_otp": "string",
"fido_authentication_response": {},
"recovery_code": "string"
}