Bluesky whois
Markdown versionGET/tools/whois
Everything public about a Bluesky handle or DID: verification both ways, the DID document (PDS, signing key, aliases), the relay's account status, the profile, and Bluesky.bot facts (listed bot, labels). Costs 3 calls.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| actor (required) | query | string | A handle, a DID, an `at://` URI or a bsky.app link. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The tool's answer, with the canonical URL of its page. | ToolWhois |
| 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 "actor=bsky.app" \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/tools/whoisSchemas
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`. |
ToolWhois
| Field | Type | Description |
|---|---|---|
| tool (required) | string = "whois" | 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.status (required) | string: "found", "conflict", "free" | `found`: a report; `conflict`: the handle's methods disagree, so it does not resolve; `free`: an unclaimed Bluesky.bot name. |
| result.input (required) | string: "handle", "did" | What was looked up. |
| result.handle (required) | string | null | The handle, or null. |
| result.unicodeHandle (required) | string | null | The Unicode form of an internationalised handle, else null. |
| result.did (required) | string | null | The DID, or null. |
| result.didMethod (required) | string: "plc", "web" | null | The DID method. |
| result.resolution (required) | object | null | How the handle resolves, when there is a handle. |
| result.verified (required) | boolean | null | The handle and the DID point to each other; null when it could not be checked. |
| result.documentStatus (required) | string: "found", "not_found", "error", "none" | Whether the DID document could be read. |
| result.document (required) | object | null | The DID document. |
| result.repoStatus (required) | string | The relay's account status: `active`, `deactivated`, `takendown`, `suspended`, `deleted`…, `not_found`, or `unknown`. |
| result.profileStatus (required) | string: "found", "gone", "error", "none" | Whether the AppView served the profile. |
| result.profile (required) | object | null | The profile, when served; never for a gone account. |
| result.accountStatus (required) | string: "takendown", "suspended", "deleted", "deactivated", "desynchronized", "throttled" | null | Why the account is gone (`takendown`, `suspended`, `deactivated`, `deleted`…); null when it is not. |
| result.createdAt (required) | string | null | When the DID was created, from the PLC directory. |
| result.blueskyBot (required) | object | null | What Bluesky.bot knows about the account. |
| result.warnings (required) | string: "not_bidirectional", "dns_https_conflict", "handle_moved", "multiple_txt", "handle_invalid", "account_gone", "appview_only"[] | Problems found, explained on the tool's page: `not_bidirectional`, `dns_https_conflict`, `handle_moved`, `multiple_txt`, `handle_invalid`, `account_gone`, `appview_only`. |