Backfill in-progress. Some lexicons and records may be missing or incomplete.

com.atproto.repo.getRecord

atproto-lexicons.bsky.social

Documentation

main query

Get a single record from a repository. Does not require auth.

Parameters

cid string cid Optional

The CID of the version of the record. If not specified, then return the most recent version.

collection string nsid Required

The NSID of the record collection.

repo string at-identifier Required

The handle or DID of the repo.

rkey string record-key Required

The Record Key.

Output

Encodingapplication/json
cid stringcid Optional

A content identifier (CID) referencing immutable data.

uri stringat-uri Required

An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).

value unknown Required

No description provided.

Errors

RecordNotFound
Try It

Direct PDS XRPC methods (com.atproto.*) are disabled in Try It for security reasons.

These methods interact directly with Personal Data Servers and require careful handling. Use a dedicated client or CLI tool instead.
View raw schema
{
  "type": "query",
  "errors": [
    {
      "name": "RecordNotFound"
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "uri",
        "value"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "value": {
          "type": "unknown"
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "required": [
      "repo",
      "collection",
      "rkey"
    ],
    "properties": {
      "cid": {
        "type": "string",
        "format": "cid",
        "description": "The CID of the version of the record. If not specified, then return the most recent version."
      },
      "repo": {
        "type": "string",
        "format": "at-identifier",
        "description": "The handle or DID of the repo."
      },
      "rkey": {
        "type": "string",
        "format": "record-key",
        "description": "The Record Key."
      },
      "collection": {
        "type": "string",
        "format": "nsid",
        "description": "The NSID of the record collection."
      }
    }
  },
  "description": "Get a single record from a repository. Does not require auth."
}

Lexicon Garden

@