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 |
”channel” | string | required | Channel to change:“in_app""mobile_push""web_push” | web_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… |
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 returnsenabled: falsein this case
- Status 429: Rate limit exceeded
- Status 500: Internal server error