AT Protocol repository explorer
Markdown versionGET/tools/repo-explorer
Browse a Bluesky account's public PDS repository, collections and individual records. PDS requests use SSRF checks. Records are bounded JSON; blobs remain references. No sign-in or write access. Costs 2 calls.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| q (required) | query | string | A handle, DID or AT URI at repository, collection or record level. |
| cursor | query | string, default | The next-page cursor of listRecords; empty for the first page. |
| reverse | query | boolean, default false | Oldest records first instead of newest first. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The tool's answer, with the canonical URL of its page. | ToolRepoExplorer |
| 400 | Invalid query parameter (code `bad_request`). | Error |
| 401 | Unknown, expired or revoked token (code `unauthorized`). Without an `Authorization` header, the tool answers anonymously. | Error |
| 404 | Not found. Also returned on a bot's handle subdomain: the API is only served on the main site. | Error |
| 429 | Rate limited: `toolsApi` (60 a minute) and `toolsApiDaily` (2,000 a day) per IP, or 10 times both per account with a creator's token. A tool that fans out costs more than one call. | Error |
| 500 | Unexpected error. | Error |
| 502 | The service the tool asks did not answer (code `upstream_error`). | Error |
Example
curl \
-G \
--data-urlencode "q=bsky.app" \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/tools/repo-explorerSchemas
Error
| Field | Type | Description |
|---|---|---|
| error (required) | object | |
| error.code (required) | string: "bad_request", "invalid_handle", "not_found", "rate_limited", "internal_error", "unauthorized", "forbidden", "conflict", "invalid_grant", "upstream_error", "insufficient_scope", "invalid_listing", "consent_required" | |
| error.message (required) | string | |
| error.reason | string | With `invalid_handle`, `invalid_listing`, `conflict` and `forbidden`: e.g. `reserved`, `taken`, `too_long`, `no_handle`, `suspended`. |
| error.url | string, uri | With consent_required: open this dashboard page to grant profile editing. |
| error.field | string | With `invalid_listing`: the refused field. |
| error.scope | string | With `insufficient_scope`: the scope the token lacks. |
| error.parameter | string | The invalid query parameter. |
| error.retryAfterSeconds | integer (1–) | With `rate_limited`. |
ToolRepoExplorer
| Field | Type | Description |
|---|---|---|
| tool (required) | string = "repo-explorer" | The tool's slug. |
| url (required) | string | The canonical URL of the tool's page on Bluesky.bot. |
| result (required) | object | The tool's answer. |
| result.level (required) | string: "repo", "collection", "record" | Which repository level was requested. |
| result.status (required) | string: "ok", "pds_unreachable", "inactive" | Whether public data could be read from the PDS. |
| result.did (required) | string | The repository's DID. |
| result.handle (required) | string | null | The PDS-reported handle at repository level, or null. |
| result.handleIsCorrect (required) | boolean | null | The PDS's handle check, or null outside describeRepo. |
| result.pdsHost (required) | string | null | The PDS host named by the DID document, or null. |
| result.relay (required) | string: "active", "inactive", "not_found", "unknown" | What the public relay reports; unknown means it could not be checked. |
| result.collections (required) | string[] | Collection NSIDs, at repository level. |
| result.collection (required) | string | null | The selected collection, or null. |
| result.records (required) | object[] | Up to 50 records in a collection, or the requested single record. |
| result.records[].uri (required) | string | The record's AT URI. |
| result.records[].cid (required) | string | The record's CID. |
| result.records[].rkey (required) | string | The record key. |
| result.records[].createdAt (required) | string | null | The TID key's timestamp, or null for a non-TID key. |
| result.records[].preview (required) | string | A short text preview of the record. |
| result.records[].value (required) | object | The record's escaped JSON data; limited to 256 KB and depth 20. |
| result.cursor (required) | string | null | Next-page cursor, or null at the end. |
| result.reverse (required) | boolean | Whether oldest-first order was requested. |