取得済みハンドルが Bluesky で有効か確認する
POST/me/bots/{did}/verify
パラメーター
| 名前 | 場所 | 型 | 説明 |
|---|---|---|---|
| did (必須) | path | string | `GET /me/bots` が返すボットの DID。 |
レスポンス
| ステータス | 説明 | 本文 |
|---|---|---|
| 200 | 確認の結果。 | SwitchResult |
| 401 | トークンがない、期限切れ、または取り消されています(コード `unauthorized`)。もう一度 `bsbot login` を実行してください。 | Error |
| 403 | トークンに `handles` スコープがないか、1 つのボットに限定されています(`insufficient_scope`)。 | Error |
| 404 | あなたのアカウントにそのボットがないか、ボットのハンドルのサブドメインです(API はメインサイトでのみ提供されます)。 | Error |
| 429 | レート制限に達しました:IP ごとの `publicApi`、アカウントごとの `creatorApi`、そして取得・切り替え・確認・解放に対するアカウントごとの `handleChange`(ダッシュボードと共有)。 | Error |
| 500 | 予期しないエラー。 | Error |
例
curl \
-X POST \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
https://bluesky.bot/api/v1/me/bots/did:plc:yourbot/verifyスキーマ
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` の場合。 |
SwitchOutcome
| フィールド | 型 | 説明 |
|---|---|---|
| status (必須) | string: "verified", "pending", "manual" | |
| verifiedAt | string, date-time | |
| reason | string: "reauthorize", "pds_refused", "pds_unreachable" |
SwitchResult
| フィールド | 型 | 説明 |
|---|---|---|
| switch (必須) | SwitchOutcome |