ink.branchline.listNotifications

List unread notifications for the authenticated viewer. Requires a valid session cookie; responds 401 otherwise. Notifications are derived from indexed records (no separate notification table) and grouped by subject; a group counts as unread when its latestAt is newer than the viewer's stored readAt for that group (see ink.branchline.markNotificationsRead). Three kinds are emitted: 'continuation' (someone grew one of the viewer's buds), 'seedGrant' (someone gave the viewer a seed), and 'bookmarkGrowth' (new buds on a story the viewer bookmarked).

Repository @branchline.ink did:plc:brvu7akhdvsqcomb67pafw25 namespace authority
Details · query
Kindquery
Authoritybranchline.ink
Indexed

Query

query · GET

Parameters

query string

limit

integer
  • minimum: 1
  • maximum: 50
  • default: 20

Output

application/json

notifications

requiredarray

#actor

object

Properties

did

requiredstring · did

handle

string · handle

#bookmarkGrowthView

object

A story the viewer bookmarked received new buds past the viewer's last dismissal.

Properties

actorCount

requiredinteger
  • minimum: 1

actors

requiredarray
  • maxLength: 10
itemsref
Reference

groupKey

requiredstring

Format: 'bookmarkGrowth:{rootUri}'.

latestAt

requiredstring · datetime

createdAt of the most recent qualifying new bud on this story.

newBudCount

requiredinteger

Number of new buds since the viewer last dismissed this group (bounded for display).

  • minimum: 1

rootTitle

requiredstring

rootUri

requiredstring · at-uri

Root bud AT-URI of the bookmarked story.

#continuationView

object

One of the viewer's buds received at least one child bud since the group was last read.

Properties

actorCount

requiredinteger
  • minimum: 1

actors

requiredarray

Up to 10 unique actors who wrote qualifying child buds, most-recent actor first.

  • maxLength: 10
itemsref
Reference

groupKey

requiredstring

Stable identifier used with ink.branchline.markNotificationsRead. Format: 'continuation:{parentUri}'.

latestAt

requiredstring · datetime

Timestamp of the most recent child bud in this group. Drives sort order.

parentTitle

requiredstring

parentUri

requiredstring · at-uri

AT-URI of the viewer's bud that was extended.

#seedGrantView

object

Someone granted the viewer a seed.

Properties

grantor

requiredref
Reference

groupKey

requiredstring

Format: 'seedGrant:{seedUri}'.

latestAt

requiredstring · datetime

createdAt of the seed.

seedUri

requiredstring · at-uri

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.