メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.snorbe.deskrex.ai/llms.txt

Use this file to discover all available pages before exploring further.

ターン一覧取得

APIキーに紐づくワークスペースのターン履歴を新しい順で返します。各ターンには紐づくAgentRun情報が含まれます。

リクエスト

GET /api/v1/turn/list

ヘッダー

ヘッダー必須説明
AuthorizationはいBearer snorbe_... 形式の API キー

クエリパラメータ

パラメータ必須デフォルト説明
limitintegerいいえ101ページあたりの取得件数(1〜50)
cursorstringいいえ-前ページの nextCursor
ワークスペースは API キーに紐づくものが自動的に使用されます。パラメータは不要です。

レスポンス

{
  "turns": [
    {
      "id": "clxxx001",
      "kind": "user",
      "content": "最新のAI動向を調査して",
      "agentRunId": null,
      "createdAt": "2026-04-16T10:30:00.000Z",
      "agentRun": null
    },
    {
      "id": "clxxx002",
      "kind": "assistant",
      "content": "調査結果をお伝えします...",
      "agentRunId": "clyyy001",
      "createdAt": "2026-04-16T10:30:05.000Z",
      "agentRun": {
        "id": "clyyy001",
        "status": "completed",
        "process": [],
        "agent": { "id": "clzzz001", "name": "agent" },
        "images": [
          {
            "imageUrl": "https://example.com/photo-1.jpg",
            "thumbnailUrl": "https://example.com/thumb-1.jpg",
            "title": "リチウムイオン電池の構造図",
            "link": "https://example.com/article-1"
          }
        ]
      }
    }
  ],
  "nextCursor": "clxxx003"
}

レスポンスフィールド

フィールド説明
turnsobject[]ターン配列(新しい順)
turns[].idstringターン ID
turns[].kindstringuser, assistant, error
turns[].contentstringターン内容
turns[].agentRunIdstring | null紐づくAgentRun ID
turns[].agentRunobject | nullAgentRun詳細
turns[].agentRun.statusstringrunning, completed, failed
turns[].agentRun.agentobjectエージェント情報
turns[].agentRun.imagesobject[]process から抽出された画像配列。検索画像 SERP・スキル成果物・ソース要約の bodyLinks 画像を統合(重複排除済み)
turns[].agentRun.images[].imageUrlstring画像 URL
turns[].agentRun.images[].thumbnailUrlstring | undefinedサムネイル URL(Serper 経由のみ存在)
turns[].agentRun.images[].titlestring | undefined画像タイトル / alt
turns[].agentRun.images[].linkstring | undefined元ページの URL
nextCursorstring | null次ページ用カーソル(null = 最終ページ)

使用例

# 最初のページ
curl "https://app.snorbe.deskrex.ai/api/v1/turn/list?limit=10" \
  -H "Authorization: Bearer snorbe_your_api_key_here"

# 次のページ
curl "https://app.snorbe.deskrex.ai/api/v1/turn/list?limit=10&cursor=clxxx003" \
  -H "Authorization: Bearer snorbe_your_api_key_here"

エラーレスポンス

HTTP ステータスコード説明
401UNAUTHORIZEDAPI キーが無効、期限切れ、または未指定
429TOO_MANY_REQUESTSレート制限超過