app.bsky.notification Lexicon#

Definitions related to notifications.


app.bsky.notification.getCount#

RPC query

Response:

  • Encoding: application/json
  • Schema:
export interface Response {
  count: number;
}

app.bsky.notification.list#

RPC query

Parameters:

  • limit Optional number. Max value 100.
  • before Optional string.

Response:

  • Encoding: application/json
  • Schema:
export interface Response {
  cursor?: string;
  notifications: Notification[];
}
export interface Notification {
  uri: string;
  cid: string;
  author: {
    did: string;
    handle: string;
    displayName?: string;
  };
  reason: string;
  reasonSubject?: string;
  record: {};
  isRead: boolean;
  indexedAt: string;
}

app.bsky.notification.updateSeen#

RPC procedure Notify server that the user has seen notifications

Parameters:

  • Encoding: application/json
  • Schema:
export interface Parameters {
  seenAt: string;
}

Response:

  • Encoding: application/json
  • Schema:
export interface Response {
  [k: string]: unknown;
}

See what's next.Join the private beta.

The AT Protocol will launch soon.
Join the waitlist to try the beta before it's publicly available.

Join the waitlist