Skip to main content
This endpoint returns your 100 newest in-app notifications, newest first, and the number of notifications that you haven’t seen. Use it to build a notification list or a badge.
  • The history has only notifications that Pacifica created with the in_app channel on. Push-only notifications aren’t in it.
  • The endpoint has no pagination. It always returns up to the 100 newest notifications.
  • unread_count counts every in-app notification that isn’t seen, so it can be more than 100.
To mark notifications as seen, call Mark notifications seen.

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”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.

Signing

This request has no fields of its own. Sign an empty data object:

Response

  • Status 200: Successfully retrieved notification history
FieldTypeDescription
”notifications”arrayUp to 100 notifications, newest first
”unread_count”integerNumber of in-app notifications that aren’t seen
Notification Fields
FieldTypeDescription
”id”integerNotification ID. Send it to Mark notifications seen
”notification_type”stringNotification type, or “test"
"title”string or nullTitle for display
”body”string or nullBody text for display
”data”objectDetails of the event. See Notification data
”created_at_ms”integerTimestamp in milliseconds when Pacifica created the notification
”read”booleantrue 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

Code Example (Python)