A bot's directory listing
Markdown versionGET/me/bots/{did}/listing
What the dashboard's Directory, Links and Disclosure tabs edit, available through HTTP and authenticated MCP tools. Sent back unchanged as a `PATCH`, it normally changes nothing (a value stored before a rule changed can be refused). Needs the `listing` scope. The proposed external `bsbot listing get` 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 listing. | BotListingResult |
| 401 | Missing, expired or revoked token (code `unauthorized`). Run `bsbot login` again. | Error |
| 403 | The token lacks the `listing` scope (`insufficient_scope`, with `scope` and a `WWW-Authenticate` challenge): a CLI token issued before this scope existed. Run `bsbot login` again. | 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 `handleChange` per account for claims, switches, checks and releases (shared with the dashboard). | Error |
| 500 | Unexpected error. | Error |
Example
curl \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/me/bots/did:plc:yourbot/listingSchemas
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`. |
BotUsageLine
| Field | Type | Description |
|---|---|---|
| kind (required) | string: "mention", "follow", "dm" | `mention`: mention the bot with `example`; `follow`: follow the bot; `dm`: send it a direct message. |
| description (required) | string | What the bot does, in one line of plain text. |
| example | string | Mention lines only (always there for them): the text that follows `@handle` in the post. Never a link or another mention. |
BotListing
| Field | Type | Description |
|---|---|---|
| listed (required) | boolean | Shown in the public directory. |
| category (required) | string | null: "news", "art", "utility", "fun", "weather", "dev", "ai", "other", null | |
| description (required) | string | null | Short public summary. A nonblank description is required when publishing; clearing it while listed is refused (required_for_listing). Unlist in the same patch to clear it. |
| languages (required) | string: "en", "ja", "pt", "es", "fr", "de", "it", "nl", "ko", "zh", "ru", "uk", "pl", "tr", "ar", "fa", "he", "hi", "id", "th", "vi", "sv", "ca", "eo"[] | The languages the creator declared, the main one first (BCP-47 primary codes). |
| showRecentPosts (required) | boolean | The bot page shows its latest posts. |
| operator (required) | object | The operator line and whether it is shown. |
| operator.name (required) | string | null | |
| operator.shown (required) | boolean | |
| usage (required) | BotUsageLine[] | |
| sourceUrl (required) | string | null | |
| openSource (required) | boolean | |
| supportUrl (required) | string | null | |
| disclosure (required) | object | |
| disclosure.purpose (required) | string | null | |
| disclosure.contact (required) | string | null | An https link, a Bluesky handle written `@handle`, or an e-mail address. This authenticated endpoint returns the editable address, never the obfuscated public display. |
| disclosure.contactEmailPublic (required) | boolean | Explicit publication consent for an e-mail contact; required as true when setting a new address. Clear contact to withdraw it. |
| disclosure.usesGenerativeAi (required) | boolean | null | Required as true or false when choosing the AI category or publishing an AI listing. False is valid; historic unknown answers remain null. Category and disclosure changes are checked atomically. |
| disclosure.automationLevel (required) | string | null: "automated", "collaborative", "assisted", null | |
| disclosure.activities (required) | string: "scheduled_posts", "event_posts", "replies_to_mentions"[] |
BotListingResult
| Field | Type | Description |
|---|---|---|
| listing (required) | BotListing |