GET/api/orgs/{org_id}/usage/requests/{request_id}/attempts

リクエストのプロバイダー試行を一覧表示

すべてのプロバイダーへのディスパッチを順番に、最大256件。不明なリクエストIDの場合は404ではなく空のリストを返します。

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

パスパラメーター

  • org_idstring必須

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

  • request_idstring必須

    リクエストID(補完が返したx-request-id)。

レスポンス

  • 200

    試行。

    レスポンス
    • attemptsarray<object>必須

      ディスパッチの順序。何も実行されなかった場合やリクエストIDが不明な場合は空です。

      attempts
      • ordinalinteger必須
      • providerstring | null必須
      • laneenum必須
        "platform""byok"
      • stateenum必須
        "dispatched""completed""failed""cancelled""incomplete""unknown_after_crash"
      • failure_classstring | null必須
      • error_messagestring | null必須

        実名で表示されるルート(BYOK、マスクされていないプラットフォームのルート)でのみ保持されます。

      • started_atstring | null必須
      • terminal_atstring | null必須
      • input_tokensinteger | null必須
      • cached_input_tokensinteger | null必須
      • output_tokensinteger | null必須
      • reasoning_tokensinteger | null必須
      • tool_namesarray<string>必須
    • truncatedboolean必須

      ディスパッチが256件を超える場合はtrueです。

  • 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/usage/requests/req_01JD8ZK4M2Q7V9X3N5T6B8C0EF/attempts' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

レスポンス

{
  "attempts": [
    {
      "ordinal": 0,
      "provider": "experiential_cloud",
      "lane": "platform",
      "state": "failed",
      "failure_class": "throttled",
      "error_message": null,
      "started_at": "2026-11-18T14:32:05.331Z",
      "terminal_at": "2026-11-18T14:32:05.902Z",
      "input_tokens": null,
      "cached_input_tokens": null,
      "output_tokens": null,
      "reasoning_tokens": null,
      "tool_names": []
    },
    {
      "ordinal": 1,
      "provider": "azure_openai",
      "lane": "platform",
      "state": "completed",
      "failure_class": null,
      "error_message": null,
      "started_at": "2026-11-18T14:32:05.910Z",
      "terminal_at": "2026-11-18T14:32:07.470Z",
      "input_tokens": 4210,
      "cached_input_tokens": 3584,
      "output_tokens": 388,
      "reasoning_tokens": 120,
      "tool_names": [
        "lookup_order"
      ]
    }
  ],
  "truncated": false
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/usage/requests/req_01JD8ZK4M2Q7V9X3N5T6B8C0EF/attempts