Skip to navigation

Disable 2FA

Disable two-factor authentication on the user’s account. Requires verification with a current TOTP code or a backup code.

Authentication: Required — Bearer token.

Request body:

  • code (required) — 6-digit TOTP code from the authenticator app, OR one of the backup codes

Response:

  • message — “Two-factor authentication disabled.”

Side effects:

  • Disables 2FA on the account
  • Clears the OTP secret and all backup codes
  • Future logins will no longer require a TOTP code

Errors:

  • 422 — Invalid code

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
codestringOptional

Response

OK