GET/api/orgs/{org_id}/annotation-queues/{queue_id}/items

キューの項目を一覧表示する

項目を古い順に返します。ステータスで絞り込めます。キーセットページングです。

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメーター

  • org_idstring必須

    お客様の組織ID(uuid)。GET /api/whoamiで取得できます。

  • queue_idstring必須

    キューのID。

クエリパラメーター

  • statusenum

    pending、completed、skippedのいずれか。

    "pending""completed""skipped"
  • cursorstring

    前のページのnext_cursor。

  • limitinteger

    ページあたりの行数(1〜200)。

    既定値: 50

レスポンス

  • 200

    1ページ。

    レスポンス
    • itemsarray<object>
      items
      • idstring
      • targetobject

        組織の1つのリクエスト、セッション、またはスパン。

        target
        • kindenum必須
          "request""session""span"
        • idstring必須
      • statusenum
        "pending""completed""skipped"
      • completed_by_emailstring | null
      • completed_atstring | null
    • next_cursorstring | null
  • 401

    APIキーがない、不明、または失効しています。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 404

    不明な組織か、キー自身の組織ではありません。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

  • 429

    読み取りが多すぎます。rate_limited:この組織のAPIキーによるリクエストログの読み取りが、毎秒約10件(バースト30件)または1サーバーあたり同時4件を超えています(セッションには制限はありません)。build_capacity:共有の分析読み取りスロットが混雑しています。Retry-Afterの時間が経過してから再試行してください。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由(例:pro_required)。

    • actionstring

      エンドポイントが定義している場合の、安定した対処アクション。

    • detailsobject

      呼び出し元が対処するために必要な、顧客に提示して安全な文字列情報(推奨される識別子など)。

リクエスト

curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/annotation-queues/3c2b1a0f-9e8d-4c7b-6a5f-4e3d2c1b0a9f/items?status=pending&cursor=eyJ0Ijoi...&limit=50' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

レスポンス

{
  "items": [
    {
      "id": "7e6d5c4b-3a2f-4e1d-0c9b-8a7f6e5d4c3b",
      "target": {
        "kind": "request",
        "id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF"
      },
      "status": "pending",
      "completed_by_email": null,
      "completed_at": null
    }
  ],
  "next_cursor": null
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/annotation-queues/3c2b1a0f-9e8d-4c7b-6a5f-4e3d2c1b0a9f/items?status=pending&cursor=eyJ0Ijoi...&limit=50