pub.chive.sync.checkStaleness

chive.pub

Documentation

Check if indexed data is stale compared to PDS

main query

Check if indexed data is stale compared to PDS

Parameters

uri string at-uri Required

AT-URI of the record to check

Output

Encodingapplication/json
indexedAt stringdatetime Optional

When the record was indexed

indexedCid stringcid Optional

CID in our index

isStale boolean Required

Whether indexed data is stale

pdsCid stringcid Optional

Current CID on PDS

pdsUrl string Optional

Source PDS URL

uri stringat-uri Required

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

Errors

NotFound
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
AT-URI of the record to check
View raw schema
{
  "type": "query",
  "errors": [
    {
      "name": "NotFound"
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "uri",
        "isStale"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "pdsCid": {
          "type": "string",
          "format": "cid",
          "description": "Current CID on PDS"
        },
        "pdsUrl": {
          "type": "string",
          "description": "Source PDS URL"
        },
        "isStale": {
          "type": "boolean",
          "description": "Whether indexed data is stale"
        },
        "indexedAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the record was indexed"
        },
        "indexedCid": {
          "type": "string",
          "format": "cid",
          "description": "CID in our index"
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "required": [
      "uri"
    ],
    "properties": {
      "uri": {
        "type": "string",
        "format": "at-uri",
        "description": "AT-URI of the record to check"
      }
    }
  },
  "description": "Check if indexed data is stale compared to PDS"
}

Lexicon Garden

@