Skip to content

com.atproto.sync.listRepos

Lexicon Version: 1

Type: query

Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay.

Parameters:

NameTypeReq’dDescriptionConstraints
limitintegerMin: 1
Max: 1000
Default: 500
cursorstring
Output:
  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
cursorstring
reposArray of #repo

Type: object

Properties:

NameTypeReq’dDescriptionConstraints
didstringFormat: did
headstringCurrent repo commit CIDFormat: cid
revstringFormat: tid
activeboolean
statusstringIf active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.Known Values: takendown, suspended, deleted, deactivated, desynchronized, throttled

{
"lexicon": 1,
"id": "com.atproto.sync.listRepos",
"defs": {
"main": {
"type": "query",
"description": "Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay.",
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"default": 500
},
"cursor": {
"type": "string"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"repos"
],
"properties": {
"cursor": {
"type": "string"
},
"repos": {
"type": "array",
"items": {
"type": "ref",
"ref": "#repo"
}
}
}
}
}
},
"repo": {
"type": "object",
"required": [
"did",
"head",
"rev"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"head": {
"type": "string",
"format": "cid",
"description": "Current repo commit CID"
},
"rev": {
"type": "string",
"format": "tid"
},
"active": {
"type": "boolean"
},
"status": {
"type": "string",
"description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",
"knownValues": [
"takendown",
"suspended",
"deleted",
"deactivated",
"desynchronized",
"throttled"
]
}
}
}
}
}