Skip to content

com.atproto.sync.listHosts

Lexicon Version: 1

Type: query

Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays.

Parameters:

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

Schema Type: object

NameTypeReq’dDescriptionConstraints
cursorstring
hostsArray of #hostSort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first.

Type: object

Properties:

NameTypeReq’dDescriptionConstraints
hostnamestringhostname of server; not a URL (no scheme)
seqintegerRecent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).
accountCountinteger
statuscom.atproto.sync.defs#hostStatus

{
"lexicon": 1,
"id": "com.atproto.sync.listHosts",
"defs": {
"main": {
"type": "query",
"description": "Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays.",
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"default": 200
},
"cursor": {
"type": "string"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"hosts"
],
"properties": {
"cursor": {
"type": "string"
},
"hosts": {
"type": "array",
"items": {
"type": "ref",
"ref": "#host"
},
"description": "Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first."
}
}
}
}
},
"host": {
"type": "object",
"required": [
"hostname"
],
"properties": {
"hostname": {
"type": "string",
"description": "hostname of server; not a URL (no scheme)"
},
"seq": {
"type": "integer",
"description": "Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor)."
},
"accountCount": {
"type": "integer"
},
"status": {
"type": "ref",
"ref": "com.atproto.sync.defs#hostStatus"
}
}
}
}
}