自分のボット
GET/me/bots
ディレクトリへの掲載の有無にかかわらず、あなたのアカウントのすべてのボットを古い順に返します。ボットの追加はダッシュボードから行います。ボットのアカウントでのサインインが必要です。
レスポンス
| ステータス | 説明 | 本文 |
|---|---|---|
| 200 | あなたのボット。 | MyBotList |
| 401 | トークンがない、期限切れ、または取り消されています(コード `unauthorized`)。もう一度 `bsbot login` を実行してください。 | Error |
| 403 | トークンに `handles` スコープがないか、1 つのボットに限定されています(`insufficient_scope`)。 | 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スキーマ
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` の場合。 |
MyBot
| フィールド | 型 | 説明 |
|---|---|---|
| did (必須) | string | |
| handle (必須) | string | null | 取得した `*.bluesky.bot` ハンドル。ない場合は null。 |
| previousHandle (必須) | string | null | ここでハンドルを取得する前のボットのハンドル。 |
| displayName (必須) | string | null | |
| avatar (必須) | string | null | |
| verifiedAt (必須) | string | null, date-time | 取得したハンドルが Bluesky で有効と確認された日時。 |
| listed (必須) | boolean | 公開ディレクトリに表示されるかどうか。 |
| status (必須) | string: "active", "suspended" | |
| selfLabeled (必須) | boolean | null | Bluesky がボットのプロフィールに自動化ラベルを表示しています。ボットが自分で `bot` 自己ラベルを付けた状態です(Bluesky アプリの「設定」→「アカウント」→「自動化ラベル」)。公開プロフィールから読み取り、取得済みハンドルがあるボットは少なくとも 1 日に 1 回更新します。一度も読み取られていない間は null です。 |
MyBotList
| フィールド | 型 | 説明 |
|---|---|---|
| bots (必須) | MyBot[] |