com.atproto.sync.getLatestCommit

Get the current commit CID & revision of the specified repo. Does not require auth.

Details · query
Kindquery
Authoritysync.atproto.com
Indexed
cid bafyreifewzvfus7z6rnmtv74lpulhldvikqmhzepwqdlaqmhllgyg4oejq

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the current commit CID & revision of the specified repo. Does not require auth.",
      "errors": [
        {
          "name": "RepoNotFound"
        },
        {
          "name": "RepoTakendown"
        },
        {
          "name": "RepoSuspended"
        },
        {
          "name": "RepoDeactivated"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "type": "string"
            },
            "rev": {
              "format": "tid",
              "type": "string"
            }
          },
          "required": [
            "cid",
            "rev"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "The DID of the repo.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "did"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.atproto.sync.getLatestCommit",
  "lexicon": 1
}