com.atproto.repo.getRecord

atproto-lexicons.bsky.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get a single record from a repository. Does not require auth.",
      "errors": [
        {
          "name": "RecordNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "type": "string"
            },
            "value": {
              "type": "unknown"
            }
          },
          "required": [
            "uri",
            "value"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cid": {
            "description": "The CID of the version of the record. If not specified, then return the most recent version.",
            "format": "cid",
            "type": "string"
          },
          "collection": {
            "description": "The NSID of the record collection.",
            "format": "nsid",
            "type": "string"
          },
          "repo": {
            "description": "The handle or DID of the repo.",
            "format": "at-identifier",
            "type": "string"
          },
          "rkey": {
            "description": "The Record Key.",
            "format": "record-key",
            "type": "string"
          }
        },
        "required": [
          "repo",
          "collection",
          "rkey"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.atproto.repo.getRecord",
  "lexicon": 1
}

Validate Record

Validate a record against com.atproto.repo.getRecord

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:6msi3pj7krzih5qxqtryxlzw
CID
bafyreihdnm3v25uaptt5vjvnpfsfgb6fbhxew2ye3l6q4ndm7xi5wpc4vy
Indexed At
2026-02-18 18:57 UTC
AT-URI
at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.getRecord

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Get a single record from a repository by at-uri

  • ergonomic complement to com.atproto.repo.getRecord which accepts an at-uri instead of individual repo/collection/rkey params

  • Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth.

  • Get a single record from a permissioned space. Spec-shaped mirror of com.atproto.space.getRecord (atproto#5187): callable with standard user auth (the caller must be a member of the space) or with a space credential for…

  • List a range of records in a repository, matching a specific collection. Does not require auth.

Lexicon Garden

@