Skip to main content
Turns off two-factor authentication. Pacifica deletes every factor and every recovery key on the account. After that, withdrawals and factor changes do not need a proof.

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”proof”objectrequiredProof. A recovery key works. Not part of the signed payload. See Proofs
”expiry_window”integeroptionalSignature expiry in milliseconds30000
Sign this request with the account’s own key. Agent wallets cannot sign it. The account must be a main account. This call also ends every enrollment in progress. To turn 2FA on again, enroll a new factor. Your first new factor comes with a new set of recovery keys.

Signing

The data object is empty. Do not sign proof. For the request above, the message to sign is:

Response

  • Status 200: Two-factor authentication turned off
  • Status 400: Invalid request parameters or signature
  • Status 401: The proof is wrong, expired, or already used
  • Status 403: The account is a subaccount, or it does not exist
  • Status 422: The account has never started an enrollment (set up two-factor authentication before continuing)
  • Status 429: Too many proof attempts
  • Status 500: Internal server error
  • Status 503: The two-factor service is unavailable. Retry later

Code Example (Python)