ボットのディレクトリ掲載情報
GET/me/bots/{did}/listing
ダッシュボードのディレクトリ・リンク・情報開示タブで編集する内容を、HTTP と認証付き MCP ツールで利用できます。そのまま `PATCH` で送り返しても通常は変化しません(ルール変更前に保存された値は拒否される場合があります)。`listing` スコープが必要です。提案段階の外部コマンド `bsbot listing get` は、記録した npm CLI 0.1.0 にはありません。
パラメーター
| 名前 | 場所 | 型 | 説明 |
|---|---|---|---|
| did (必須) | path | string | `GET /me/bots` が返すボットの DID。 |
レスポンス
| ステータス | 説明 | 本文 |
|---|---|---|
| 200 | 掲載情報。 | BotListingResult |
| 401 | トークンがない、期限切れ、または取り消されています(コード `unauthorized`)。もう一度 `bsbot login` を実行してください。 | Error |
| 403 | トークンに `listing` スコープがありません(`insufficient_scope`。`scope` と `WWW-Authenticate` チャレンジ付き)。このスコープができる前に発行された CLI のトークンです。もう一度 `bsbot login` を実行してください。 | Error |
| 404 | あなたのアカウントにそのボットがないか、ボットのハンドルのサブドメインです(API はメインサイトでのみ提供されます)。 | Error |
| 429 | レート制限に達しました:IP ごとの `publicApi`、アカウントごとの `creatorApi`、そして取得・切り替え・確認・解放に対するアカウントごとの `handleChange`(ダッシュボードと共有)。 | Error |
| 500 | 予期しないエラー。 | Error |
例
curl \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/me/bots/did:plc:yourbot/listingスキーマ
Error
| フィールド | 型 | 説明 |
|---|---|---|
| error (必須) | object | |
| error.code (必須) | 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 (必須) | string | |
| error.reason | string | `invalid_handle`、`invalid_listing`、`conflict`、`forbidden` の場合。例:`reserved`、`taken`、`too_long`、`no_handle`、`suspended`。 |
| error.url | string, uri | consent_required の場合、このダッシュボードページを開いてプロフィールの編集を許可してください。 |
| error.field | string | `invalid_listing` の場合:拒否されたフィールド。 |
| error.scope | string | `insufficient_scope` の場合:トークンに足りないスコープ。 |
| error.parameter | string | 無効なクエリパラメーター。 |
| error.retryAfterSeconds | integer (1–) | `rate_limited` の場合。 |
BotUsageLine
| フィールド | 型 | 説明 |
|---|---|---|
| kind (必須) | string: "mention", "follow", "dm" | `mention`: `example` を付けてボットにメンションする。`follow`:ボットをフォローする。`dm`:ダイレクトメッセージを送る。 |
| description (必須) | string | ボットがすること。プレーンテキスト 1 行です。 |
| example | string | メンションの行のみ(その場合は必ずあります):投稿で `@handle` の後に続くテキスト。リンクや他のメンションは含みません。 |
BotListing
| フィールド | 型 | 説明 |
|---|---|---|
| listed (必須) | boolean | 公開ディレクトリに表示されるかどうか。 |
| category (必須) | string | null: "news", "art", "utility", "fun", "weather", "dev", "ai", "other", null | |
| description (必須) | string | null | 短い公開説明です。掲載には空でない説明が必要です。掲載中に説明を消去すると拒否されます(required_for_listing)。消去するには、同じ更新で掲載を解除してください。 |
| languages (必須) | 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"[] | 作成者が申告した言語。メインの言語が先頭です(BCP-47 の主言語コード)。 |
| showRecentPosts (必須) | boolean | ボットのページに最新の投稿を表示します。 |
| operator (必須) | object | 運営者の表示と、それを表示するかどうか。 |
| operator.name (必須) | string | null | |
| operator.shown (必須) | boolean | |
| usage (必須) | BotUsageLine[] | |
| sourceUrl (必須) | string | null | |
| openSource (必須) | boolean | |
| supportUrl (必須) | string | null | |
| disclosure (必須) | object | |
| disclosure.purpose (必須) | string | null | |
| disclosure.contact (必須) | string | null | https リンク、`@handle` 形式の Bluesky ハンドル、またはメールアドレス。この認証済みエンドポイントは編集可能なアドレスを返し、公開用の難読化表示は返しません。 |
| disclosure.contactEmailPublic (必須) | boolean | メール連絡先の公開への明示的な同意。新しいアドレス設定時は true が必要です。撤回するには contact を空にしてください。 |
| disclosure.usesGenerativeAi (必須) | boolean | null | AI カテゴリを選ぶか AI の掲載を公開するときは true または false が必要です。false も有効で、過去の不明な回答は null のままです。カテゴリと情報開示の変更をまとめて検証します。 |
| disclosure.automationLevel (必須) | string | null: "automated", "collaborative", "assisted", null | |
| disclosure.activities (必須) | string: "scheduled_posts", "event_posts", "replies_to_mentions"[] |
BotListingResult
| フィールド | 型 | 説明 |
|---|---|---|
| listing (必須) | BotListing |