AT Protocol · Example Payload

Atproto Createrecord Example

Example request and response for com.atproto.repo.createRecord (create a Bluesky post)

Social NetworkingDecentralizedFederatedOpen-SourceBlueskyFediverseIdentityXRPCLexicon

Atproto Createrecord Example is an example object payload from AT Protocol, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionendpointrequestresponse

Example Payload

Raw ↑
{
  "description": "Example request and response for com.atproto.repo.createRecord (create a Bluesky post)",
  "endpoint": "POST https://bsky.social/xrpc/com.atproto.repo.createRecord",
  "request": {
    "method": "POST",
    "headers": {
      "Content-Type": "application/json",
      "Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ..."
    },
    "body": {
      "repo": "alice.bsky.social",
      "collection": "app.bsky.feed.post",
      "record": {
        "$type": "app.bsky.feed.post",
        "text": "Hello, AT Protocol! #atproto #bluesky",
        "createdAt": "2026-06-12T00:00:00.000Z",
        "langs": ["en"],
        "facets": [
          {
            "index": { "byteStart": 21, "byteEnd": 29 },
            "features": [
              {
                "$type": "app.bsky.richtext.facet#tag",
                "tag": "atproto"
              }
            ]
          },
          {
            "index": { "byteStart": 30, "byteEnd": 38 },
            "features": [
              {
                "$type": "app.bsky.richtext.facet#tag",
                "tag": "bluesky"
              }
            ]
          }
        ]
      }
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "uri": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3jwvwv4f7jo2t",
      "cid": "bafyreib2rxk3rybk3aobmv3bxyifqpv7rcjdo4pehcgr7ym6bkuajkxb7a",
      "commit": {
        "cid": "bafyreig2mjzpgmcfm4btaog4yxfqrmqnf5rphfwqthwnkjpyc7f7bqzrki",
        "rev": "3jwvwv4f7jo2t"
      },
      "validationStatus": "valid"
    }
  }
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • 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 example
curl "https://apis.io/api/v1/examples/atproto-createRecord-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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