AT Protocol Graph API

Follow, mute, and block graph (app.bsky.graph.*)

OpenAPI Specification

at-protocol-graph-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AT Protocol XRPC Actor Graph API
  version: '1.0'
  description: 'XRPC is the AT Protocol''s HTTP-based RPC layer. All protocol interactions

    are exposed as XRPC methods identified by an NSID and reached at

    `/xrpc/{nsid}`. Query methods use GET; procedure methods use POST.

    Bluesky AppView endpoints live under `https://api.bsky.app`; PDS-hosted

    methods are reached at the user''s PDS host (e.g. `https://bsky.social`).

    '
  contact:
    name: AT Protocol
    url: https://atproto.com
  license:
    name: MIT
servers:
- url: https://bsky.social
  description: Bluesky-hosted PDS (com.atproto.* methods)
- url: https://api.bsky.app
  description: Bluesky AppView (app.bsky.* read methods)
tags:
- name: Graph
  description: Follow, mute, and block graph (app.bsky.graph.*)
paths:
  /xrpc/app.bsky.graph.getFollowers:
    get:
      tags:
      - Graph
      summary: List an actor's followers
      parameters:
      - name: actor
        in: query
        required: true
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          default: 50
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Followers list
  /xrpc/app.bsky.graph.getFollows:
    get:
      tags:
      - Graph
      summary: List who an actor follows
      parameters:
      - name: actor
        in: query
        required: true
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          default: 50
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Follows list
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'AT Protocol XRPC bearer auth using the `accessJwt` returned by

        `com.atproto.server.createSession`. The `refreshJwt` is used for

        `com.atproto.server.refreshSession`.

        '