Skip to main content
This endpoint turns one channel on or off in your master preference. Pacifica uses a channel only when it is on in the master preference and in the notification type’s preference. Other channels keep their current value. The master preference doesn’t change the type preferences. Turn a channel off here to pause it for all types. When you turn it on again, your type preferences apply again.

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”channel”stringrequiredChannel to change:
“in_app"
"mobile_push"
"web_push”
web_push
”enabled”booleanrequiredtrue turns the channel on. false turns it offtrue
”expiry_window”integeroptionalSignature expiry in milliseconds30000
”agent_wallet”stringoptionalAgent wallet address69trU9A5…
You can sign this request with the account key or with an agent wallet.

Response

  • Status 200: Master preference updated. The response has all your preferences after the change, in the same format as List notification preferences
  • Status 400: Invalid request parameters or signature
  • Status 403: The account doesn’t exist. An account exists after its first deposit
  • Status 409: You tried to turn on web_push, but Web Push isn’t available. Get Web Push config returns enabled: false in this case
  • Status 429: Rate limit exceeded
  • Status 500: Internal server error

Code Example (Python)