Skip to content

Disable 2FA on the caller's account

DELETE
/account/security/2fa

Requires the caller’s current password to prevent a stolen-session attacker from disabling 2FA. Cascades the recovery codes via FK.

Body for the disable + regenerate-recovery surfaces. Re-asks for the current password so a stolen-session attacker can’t kill 2FA + lock the owner out in one move.

object
current_password
required
string format: password

2FA disabled.

Malformed request

object
error
required

Human-readable error summary

string
Example
the request could not be completed

Authentication required, missing, or invalid

object
error
required

Human-readable error summary

string
Example
the request could not be completed
Example
{
"error": "authentication required: sign in and retry with a valid session or API token"
}