app.bsky.graph Lexicon#

Definitions related to the social graph in Bluesky.


app.bsky.graph.follow#

Record type A social follow

export interface Record {
  subject: {
    did: string;
    declarationCid: string;
  };
  createdAt: string;
}

app.bsky.graph.invite#

Record type

export interface Record {
  group: string;
  subject: {
    did: string;
    declarationCid: string;
  };
  createdAt: string;
}

app.bsky.graph.inviteAccept#

Record type

export interface Record {
  group: {
    did: string;
    declarationCid: string;
  };
  invite: {
    uri: string;
    cid: string;
  };
  createdAt: string;
}

app.bsky.graph.getFollowers#

RPC query Who is following a user?

Parameters:

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

Response:

  • Encoding: application/json
  • Schema:
export interface Response {
  subject: {
    did: string;
    handle: string;
    displayName?: string;
  };
  cursor?: string;
  followers: {
    did: string;
    handle: string;
    displayName?: string;
    createdAt?: string;
    indexedAt: string;
  }[];
}

app.bsky.graph.getFollows#

RPC query Who is a user following?

Parameters:

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

Response:

  • Encoding: application/json
  • Schema:
export interface Response {
  subject: {
    did: string;
    handle: string;
    displayName?: string;
  };
  cursor?: string;
  follows: {
    did: string;
    handle: string;
    displayName?: string;
    createdAt?: string;
    indexedAt: string;
  }[];
}

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