Manual
CLI
API
Log in Get started free

Turn off two-factor authentication

Turns two-factor authentication off. Needs your password and a code.

Turns two-factor authentication off. Needs your password and a code.

HTTP
DELETE /account/mfa

Access: Session token only. API keys get 403 with insufficient_scope.

Request body #

JSON.

FieldTypeRequiredDescription
passwordstringyesYour password.
codestringyesA code from the app, or a recovery code. It is used up.

Response 204 #

Two-factor authentication is off and the recovery codes are gone. There is no body.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
403wrong_passwordpassword is not your password.
409mfa_required_by_organizationThe organisation requires two-factor authentication.
422invalid_requestcode is invalid.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.