Check a bot's disclosure and setup

Markdown version

GET/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

NameInTypeDescription
did (required)pathstringThe bot's DID, as listed by `GET /me/bots`.

Responses

StatusDescriptionBody
200The bot's checkup.Checkup
401Missing, expired or revoked token (code `unauthorized`). Run `bsbot login` again.Error
403The bot is suspended (`forbidden`), or the token lacks the `handles` scope or is bound to one bot (`insufficient_scope`).Error
404No such bot in your account, or a bot's handle subdomain (the API is only served on the main site).Error
429Rate limited: `publicApi` per IP, `creatorApi` per account, and `botDoctor` per account (120 checkups an hour, shared with the dashboard's Run again).Error
500Unexpected error.Error

Example

bash
curl \
  -H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
  https://bluesky.bot/api/v1/me/bots/did:plc:yourbot/doctor

Schemas

Error

FieldTypeDescription
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.reasonstringWith `invalid_handle`, `invalid_listing`, `conflict` and `forbidden`: e.g. `reserved`, `taken`, `too_long`, `no_handle`, `suspended`.
error.urlstring, uriWith consent_required: open this dashboard page to grant profile editing.
error.fieldstringWith `invalid_listing`: the refused field.
error.scopestringWith `insufficient_scope`: the scope the token lacks.
error.parameterstringThe invalid query parameter.
error.retryAfterSecondsinteger (1–)With `rate_limited`.

Checkup

FieldTypeDescription
bot (required)object
bot.did (required)string
bot.handle (required)string | nullThe 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

FieldTypeDescription
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 | nullWhere to fix it; null when it passes or is unknown.
docsUrl (required)string | null