Update a bot's directory listing

Markdown version

PATCH/me/bots/{did}/listing

Only the fields sent change; in `operator` and `disclosure`, only the keys sent. `null` clears a field; a list replaces the stored one. The dashboard's own rules, all or nothing: nothing is saved when one field is refused. A patch equal to the stored values writes nothing (`changed: false`). Needs the `listing` scope.

Request body: BotListingPatch

Parameters

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

Responses

StatusDescriptionBody
200The listing after the update, and whether anything changed.BotListingUpdate
400Not a JSON object, or an unknown field (`bad_request`, with `parameter`); or a refused value (`invalid_listing`, with `field`, e.g. `usage[1].example`, and `reason`, the dashboard rule's code, e.g. `too_long`, `link`, `unknown_category`, `cleared_by_admin`).Error
401Missing, expired or revoked token (code `unauthorized`). Run `bsbot login` again.Error
403The 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
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 `botSettings` per account (30 changes an hour, shared with the dashboard).Error
500Unexpected error.Error

Example

bash
curl \
  -X PATCH \
  -H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"category":"weather"}' \
  https://bluesky.bot/api/v1/me/bots/did:plc:yourbot/listing

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`.

BotUsageLine

FieldTypeDescription
kind (required)string: "mention", "follow", "dm"`mention`: mention the bot with `example`; `follow`: follow the bot; `dm`: send it a direct message.
description (required)stringWhat the bot does, in one line of plain text.
examplestringMention lines only (always there for them): the text that follows `@handle` in the post. Never a link or another mention.

BotListing

FieldTypeDescription
listed (required)booleanShown in the public directory.
category (required)string | null: "news", "art", "utility", "fun", "weather", "dev", "ai", "other", null
description (required)string | nullShort 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)booleanThe bot page shows its latest posts.
operator (required)objectThe 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 | nullAn 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)booleanExplicit publication consent for an e-mail contact; required as true when setting a new address. Clear contact to withdraw it.
disclosure.usesGenerativeAi (required)boolean | nullRequired 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"[]

BotListingPatch

FieldTypeDescription
listedbooleanShown in the public directory.
categorystring | null: "news", "art", "utility", "fun", "weather", "dev", "ai", "other", "", null
descriptionstring | nullShort 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.
languagesarray | nullThe languages the creator declared, the main one first (BCP-47 primary codes).
showRecentPostsbooleanThe bot page shows its latest posts.
operatorobjectThe operator line and whether it is shown.
operator.namestring | null
operator.shownboolean
usagearray | null
sourceUrlstring | null
openSourceboolean
supportUrlstring | null
disclosureobject
disclosure.purposestring | null
disclosure.contactstring | nullAn 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.contactEmailPublicbooleanExplicit publication consent for an e-mail contact; required as true when setting a new address. Clear contact to withdraw it.
disclosure.usesGenerativeAiboolean | nullRequired 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.automationLevelstring | null: "automated", "collaborative", "assisted", null
disclosure.activitiesarray | null

BotListingUpdate

FieldTypeDescription
listing (required)BotListing
changed (required)booleanFalse when every value sent equals the stored one: nothing was written.