Skip to content

com.atproto.sync.getHead

Lexicon Version: 1

Type: query

DEPRECATED - please use com.atproto.sync.getLatestCommit instead

Parameters:

NameTypeReq’dDescriptionConstraints
didstringThe DID of the repo.Format: did
Output:
  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
rootstringFormat: cid
Possible Errors:
  • HeadNotFound

{
"lexicon": 1,
"id": "com.atproto.sync.getHead",
"defs": {
"main": {
"type": "query",
"description": "DEPRECATED - please use com.atproto.sync.getLatestCommit instead",
"parameters": {
"type": "params",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "The DID of the repo."
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"root"
],
"properties": {
"root": {
"type": "string",
"format": "cid"
}
}
}
},
"errors": [
{
"name": "HeadNotFound"
}
]
}
}
}