Operation Type (for Signing)
Request Body
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”account” | string | required | User’s wallet address | 42trU9A5… |
“signature” | string | required | Cryptographic signature | 5j1Vy9Uq… |
“timestamp” | integer | required | Current timestamp in milliseconds | 1716200000000 |
”notification_types” | array | required | One or more notification types:“deposit_success""withdraw_success""order_filled""order_partially_filled""order_canceled""tp_sl_triggered""liquidation""strategy_update” | [“order_filled”] |
“channel” | string | required | Channel to change:“in_app""mobile_push""web_push” | mobile_push |
”enabled” | boolean | required | true turns the channel on. false turns it off | true |
”expiry_window” | integer | optional | Signature expiry in milliseconds | 30000 |
”agent_wallet” | string | optional | Agent wallet address | 69trU9A5… |
test or for types that Pacifica doesn’t send. See Notification types.
You can sign this request with the account key or with an agent wallet.
Response
- Status 200: 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. An empty
notification_typeslist, or a type that you can’t configure, returns this error:
- Status 403: The account doesn’t exist. An account exists after its first deposit
- Status 429: Rate limit exceeded
- Status 500: Internal server error