Bluesky Repository API

Operations for managing AT Protocol repositories.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /xrpc/com.atproto.repo.applyWrites Apply a batch of repo creates, updates and deletes · Bluesky Apply a batch transaction of repository creates, updates, and deletes #
Ask an LLM
“How do I create, update and delete several records in one transaction?”
“Can I apply a batch of repo writes with a swap commit check?”
Tell an agent
Apply writes {writes} to repo {repo}.
Apply repo writes {writes} to {repo} only if the commit is still {swapCommit}.
POST /xrpc/com.atproto.repo.createRecord Create a single record in a repository collection · Bluesky Create a single new repository record #
Ask an LLM
“How do I post a new record to a collection in my Bluesky repo?”
“Can I create a record without a record key and let the server pick one?”
Tell an agent
Create record {record} in {collection} on repo {repo}.
Create record {record} as {rkey} in {collection} on {repo}.
POST /xrpc/com.atproto.repo.deleteRecord Delete a record from a repository · Bluesky Delete a repository record, or ensure it doesn't exist #
Ask an LLM
“How do I delete a record from my Bluesky repo?”
“Can I delete a record only if it still has a certain CID?”
Tell an agent destructive · confirm first
Delete record {rkey} from {collection} on repo {repo}.
Delete {collection} record {rkey} on {repo} only if it is still {swapRecord}.
GET /xrpc/com.atproto.repo.describeRepo Describe an account's repository and collections · Bluesky Get information about an account and repository, including the list of… #
Ask an LLM
“Which record collections exist on my Bluesky account?”
“What information does the repo describe endpoint return about an account?”
Tell an agent
Describe the repository {repo}.
List the collections on account {repo}.
GET /xrpc/com.atproto.repo.getRecord Get a single record from a repository · Bluesky Get a single record from a repository #
Ask an LLM
“How do I read one record from my Bluesky repo?”
“Can I fetch an older version of a record by CID?”
Tell an agent
Get record {rkey} from {collection} on repo {repo}.
Get version {cid} of {collection} record {rkey} on {repo}.
POST /xrpc/com.atproto.repo.importRepo Import a repo from a CAR file · Bluesky Import a repo in the form of a CAR file #
Ask an LLM
“How do I import a whole Bluesky account as a CAR file?”
“Can I restore a repo from a CAR archive?”
Tell an agent
Import this account's repo from a CAR file.
Restore the account from its CAR archive.
GET /xrpc/com.atproto.repo.listMissingBlobs List blobs missing from my account · Bluesky Returns a list of missing blobs for the requesting account #
Ask an LLM
“Which blobs are missing from my Bluesky account?”
“What blobs does the account migration flow need?”
Tell an agent
List missing blobs for my account.
Show {limit} missing blobs for account migration.
GET /xrpc/com.atproto.repo.listRecords List records in a repository collection · Bluesky List a range of records in a repository, matching a specific collection #
Ask an LLM
“How do I list all posts in a collection on my Bluesky account?”
“Can I list records in reverse order?”
Tell an agent
List {collection} records on repo {repo}.
List {limit} {collection} records on {repo} in reverse order.
POST /xrpc/com.atproto.repo.putRecord Create or update a record in a repository · Bluesky Write a repository record, creating or updating it as needed #
Ask an LLM
“How do I create a record or update it if it already exists?”
“Can I update a record only if its CID hasn't changed?”
Tell an agent
Put record {record} in {collection} on repo {repo} as {rkey}.
Update {collection} record {rkey} on {repo} to {record} only if it is still {swapRecord}.
POST /xrpc/com.atproto.repo.uploadBlob Upload a blob for a repository record · Bluesky Upload a new blob, to be referenced from a repository record #
Ask an LLM
“How do I upload an image or file to be referenced in a Bluesky post?”
“How long does an unused blob stay on my account before it is deleted?”
Tell an agent
Upload a new blob for my account.
Upload an image file so it can be referenced in a record.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bluesky:bluesky-repository-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bluesky-repository-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bluesky Social Repository API
  description: The Bluesky Social API provides programmatic access to the Bluesky social network built on the AT Protocol.
  version: 1.0.0
  contact:
    name: Bluesky Support
    url: https://bsky.app
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
- url: https://bsky.social/xrpc
  description: Bluesky Social PDS
- url: https://public.api.bsky.app/xrpc
  description: Public Bluesky AppView API (unauthenticated endpoints)
tags:


# --- truncated at 32 KB (37 KB total) ---
# Full source: https://artifacts.apis.io/bluesky/openapi/bluesky-repository-api-openapi.yml