List Notifications
list_notificationsRetrieve a page of the current user's AFFiNE notifications using cursor or offset pagination. Optionally filter the fetched page to show only unread notifications.
Instructions
List one server page of current-user AFFiNE notifications in a stable envelope. The response preserves each edge cursor, server pageInfo, and serverTotalCount. unreadOnly is a client-side filter over only the fetched page; it does not change server counts or pageInfo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Cursor from pagination.pageInfo.endCursor. Mutually exclusive with offset. | |
| first | No | Number of notifications to fetch (default 20, maximum 100). | |
| offset | No | Zero-based offset pagination. Mutually exclusive with after. | |
| unreadOnly | No | Return only unread notifications from the fetched server page; this is not a server-wide unread query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| error | No | ||
| items | No | ||
| details | No | ||
| retryable | No |