Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay.
GET
/xrpc/com.atproto.sync.listRepos
const url = 'https://example.com/xrpc/com.atproto.sync.listRepos?limit=500';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/xrpc/com.atproto.sync.listRepos?limit=500'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
cursor
string
Responses
Section titled “Responses”Success
Media typeapplication/json
object
repos
required
Array<object>
object
did
required
string format: did
rev
required
string format: tid
head
required
Current repo commit CID
string format: cid
active
boolean
status
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.
string
cursor
string
Example generated
{ "repos": [ { "did": "example", "rev": "example", "head": "example", "active": true, "status": "example" } ], "cursor": "example"}