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
| 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 |
”installation_id” | string | required | The browser’s installation ID from Register Web Push subscription | k3Jx9_Qm… |
“expiry_window” | integer | optional | Signature expiry in milliseconds | 30000 |
”agent_wallet” | string | optional | Agent wallet address | 69trU9A5… |
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_idreturnserror_idinvalid_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