Skip to main content
This endpoint turns off one browser’s push subscription on your account. Pacifica stops sending web_push notifications to it, and drops pushes that it hasn’t sent yet. Call it when the user signs out or switches account.

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”installation_id”stringrequiredThe browser’s installation ID from Register Web Push subscriptionk3Jx9_Qm…
“expiry_window”integeroptionalSignature expiry in milliseconds30000
”agent_wallet”stringoptionalAgent wallet address69trU9A5…
Pacifica turns off only a subscription of the signing account. An unknown installation_id doesn’t cause an error. After you unregister a subscription, Get Web Push subscription status returns disabled. You can sign this request with the account key or with an agent wallet.

Response

  • Status 200: Subscription turned off
  • Status 400: Invalid request parameters or signature. A bad installation_id returns error_id invalid_notification_device_id
  • Status 403: The account doesn’t exist. An account exists after its first deposit
  • Status 429: Rate limit exceeded
  • Status 500: Internal server error

Code Example (Python)