Skip to main content
Replaces your recovery keys with a new set of 10. Your old keys stop working, including unused ones.

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.

Signing

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

Response

  • Status 200: Recovery keys replaced
Pacifica shows recovery keys only once. Store them somewhere safe.
  • 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: 2FA is off (two-factor is not enabled)
  • Status 429: Too many proof attempts
  • Status 500: Internal server error
  • Status 503: The two-factor service is unavailable. Retry later

Code Example (Python)