- The history has only notifications that Pacifica created with the
in_appchannel on. Push-only notifications aren’t in it. - The endpoint has no pagination. It always returns up to the 100 newest notifications.
unread_countcounts every in-app notification that isn’t seen, so it can be more than 100.
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 |
”expiry_window” | integer | optional | Signature expiry in milliseconds | 30000 |
”agent_wallet” | string | optional | Agent wallet address | 69trU9A5… |
Signing
This request has no fields of its own. Sign an emptydata object:
Response
- Status 200: Successfully retrieved notification history
| Field | Type | Description |
|---|---|---|
”notifications” | array | Up to 100 notifications, newest first |
”unread_count” | integer | Number of in-app notifications that aren’t seen |
| Field | Type | Description |
|---|---|---|
”id” | integer | Notification ID. Send it to Mark notifications seen |
”notification_type” | string | Notification type, or “test" |
"title” | string or null | Title for display |
”body” | string or null | Body text for display |
”data” | object | Details of the event. See Notification data |
”created_at_ms” | integer | Timestamp in milliseconds when Pacifica created the notification |
”read” | boolean | true if the notification is marked seen |
- Status 400: Invalid request parameters or signature
- Status 403: The account doesn’t exist. An account exists after its first deposit
- Status 429: Rate limit exceeded
- Status 500: Internal server error