Check a bot's disclosure and setup
Markdown versionGET/me/bots/{did}/doctor
The dashboard's Checkup through the authenticated HTTP API: each check with a status and a link to fix it. Reads the bot's Bluesky profile every time. `id` and `status` are stable; `message` is English and may change. Ignore unknown check ids. The proposed external `bsbot doctor` command is absent from the recorded npm CLI 0.1.0.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| did (required) | path | string | The bot's DID, as listed by `GET /me/bots`. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The bot's checkup. | Checkup |
| 401 | Missing, expired or revoked token (code `unauthorized`). Run `bsbot login` again. | Error |
| 403 | The bot is suspended (`forbidden`), or the token lacks the `handles` scope or is bound to one bot (`insufficient_scope`). | Error |
| 404 | No such bot in your account, or a bot's handle subdomain (the API is only served on the main site). | Error |
| 429 | Rate limited: `publicApi` per IP, `creatorApi` per account, and `botDoctor` per account (120 checkups an hour, shared with the dashboard's Run again). | Error |
| 500 | Unexpected error. | Error |
Example
curl \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/me/bots/did:plc:yourbot/doctorSchemas
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`. |
Checkup
| Field | Type | Description |
|---|---|---|
| bot (required) | object | |
| bot.did (required) | string | |
| bot.handle (required) | string | null | The claimed `*.bluesky.bot` handle; null when none. |
| checkedAt (required) | string, date-time | |
| summary (required) | object | `passed` out of `total`, the checks that pass, warn or fail (`info` and `unknown` are not counted); `fail` to fix, `warn` suggestions. |
| summary.passed (required) | integer (0–) | |
| summary.total (required) | integer (0–) | |
| summary.fail (required) | integer (0–) | |
| summary.warn (required) | integer (0–) | |
| checks (required) | Check[] |
Check
| Field | Type | Description |
|---|---|---|
| id (required) | string | `automation_label`, `bio_disclosure`, `avatar`, `description`, `operator`, `handle`, `listed` today; more may come. |
| status (required) | string: "pass", "warn", "fail", "info", "unknown" | `fail`: to fix. `warn`: a suggestion. `info`: optional. `unknown`: Bluesky did not answer. |
| message (required) | string | |
| fixUrl (required) | string | null | Where to fix it; null when it passes or is unknown. |
| docsUrl (required) | string | null |