List Notifications
list_notificationsFetch a server page of current-user AFFiNE notifications with cursor or offset pagination, preserving edge cursors, pageInfo, and total count; filter unread on the fetched page.
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 | ||
| kind | No | ||
| error | No | ||
| items | No | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| recoveryGuidance | No |