pub.chive.collection.getMarginAnnotations

chive.pub

{
  "id": "pub.chive.collection.getMarginAnnotations",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "annotations"
          ],
          "properties": {
            "total": {
              "type": "integer"
            },
            "cursor": {
              "type": "string"
            },
            "hasMore": {
              "type": "boolean"
            },
            "annotations": {
              "type": "array",
              "items": {
                "ref": "#annotationView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "eprintUri"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum results to return"
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor"
          },
          "eprintUri": {
            "type": "string",
            "description": "AT-URI of the eprint to get annotations for"
          }
        }
      },
      "description": "Get Margin annotations (at.margin.annotation, at.margin.highlight) targeting a Chive eprint"
    },
    "annotationView": {
      "type": "object",
      "required": [
        "uri",
        "authorDid",
        "recordType",
        "createdAt"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "description": "AT-URI of the annotation record"
        },
        "body": {
          "type": "string",
          "description": "Annotation body text"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "color": {
          "type": "string",
          "description": "Highlight color"
        },
        "authorDid": {
          "type": "string",
          "description": "DID of the annotation author"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "pageTitle": {
          "type": "string",
          "description": "Page title at annotation time"
        },
        "bodyFormat": {
          "type": "string",
          "description": "Body MIME type"
        },
        "motivation": {
          "type": "string",
          "description": "W3C annotation motivation"
        },
        "recordType": {
          "type": "string",
          "description": "Record type: annotation or highlight"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}

Validate Record

Validate a record against pub.chive.collection.getMarginAnnotations

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:7natp5xae72bddaqlkef2t4e
CID
bafyreiehulxtvdege2tmd47bqnztr54smhr7b2da5qbcsfx7ywdcnlgsua
Indexed At
2026-05-04 17:29 UTC
AT-URI
at://did:plc:7natp5xae72bddaqlkef2t4e/com.atproto.lexicon.schema/pub.chive.collection.getMarginAnnotations

Lexicon Garden

@