Skip to main content
DELETE
Remove 2FA Method

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
target_id
integer

ID of the 2FA method to remove

Example:

7

tfa_method_id
integer

ID of the 2FA method used to authenticate this removal request

Example:

7

code
string

Verification code from the authenticating 2FA method

Example:

"654321"

secret
string

tfa_secret token from the prior step (required for SMS/email)

Example:

"abc123secret"

tfa_method
enum<string>

Method type used to authenticate the removal request

Available options:
sms,
totp,
email
Example:

"totp"

backup_code
string

One-time-use backup code that can authorize the removal instead of a normal code

Example:

"ABCD-EFGH-1234"

delete_legacy
boolean

Set to true to disable legacy SMS 2FA (requires email verification); for accounts that predate the current 2FA system

Example:

false

Response

Returns {msg: "2FA method removed", remaining_methods} or {msg: "2FA Successfully Disabled"} if all methods are removed.

msg
string

"2FA Successfully Disabled" if all methods removed, or "2FA method removed"

remaining_methods
integer

Number of active 2FA methods remaining after deletion (present when 2FA is not fully disabled)