Generate and retrieve new backup codes for account recovery. Requires sudo mode verification. Old codes are invalidated.
curl --request POST \
--url https://api.fluxer.app/v1/users/@me/mfa/backup-codes \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"regenerate": true,
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"backup_codes": [
{
"code": "<string>",
"consumed": true
}
]
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
Whether to regenerate backup codes
8 - 256MFA method to use for verification
totp, sms, webauthn MFA verification code from authenticator app or SMS
WebAuthn authentication response
WebAuthn challenge string
Success
List of backup codes
Show child attributes
curl --request POST \
--url https://api.fluxer.app/v1/users/@me/mfa/backup-codes \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"regenerate": true,
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"backup_codes": [
{
"code": "<string>",
"consumed": true
}
]
}