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

リクエストを1件取得

一覧の行と同じ射影です。include_body=trueの場合、保存されたプロンプトとレスポンスをbodyとしてインラインで含めます(何も保存されていない場合はnull)。

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

パスパラメーター

  • org_idstring必須

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

  • request_idstring必須

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

クエリパラメーター

  • include_bodyboolean

    保存されたプロンプトとレスポンスをインラインで含めます。

    既定値: false

レスポンス

  • 200

    リクエスト。

    レスポンス
    • request_idstring必須
    • modelstring必須
    • providerstring | null必須

      顧客向けのプロバイダー(マスクされたプラットフォームのルートはexperiential_cloudと表示)。何もディスパッチされなかった場合はnullです。

    • laneenum必須
      "platform""byok"null
    • api_key_idstring | null必須
    • key_labelstring | null必須
    • input_tokensinteger必須
    • output_tokensinteger必須
    • cached_input_tokensinteger必須

      請求どおりのキャッシュヒット数(cache_credited_input_tokensを含む)。

    • cache_credited_input_tokensinteger

      プラットフォームがキャッシュミスの原因となったため、キャッシュ料金で課金した入力。

      既定値: 0
    • reasoning_tokensinteger必須
    • cost_usdnumber必須

      請求されたプラットフォームクレジット(ドル。BYOKの場合は0)。

    • estimated_cost_usdnumber必須

      課金されることのないBYOKの見積もり(ドル)。

    • free_usdnumber必須

      プロモーション負担の使用量の定価換算値(ドル)。

    • real_cost_usdnumber必須

      cost_usd + estimated_cost_usd。

    • pricing_knownboolean必須

      成功した試行に既知の価格がなかった場合はfalse。この場合のコスト0は無料ではなく価格未設定を意味します。

    • latency_msinteger | null必須
    • ttft_msinteger | null必須

      最初のストリーミングトークンまでの時間。観測されなかった場合はnullです。

    • statusenum必須
      "completed""failed""cancelled""incomplete""expired_before_dispatch""unknown_after_crash"
    • deliveryobject | null

      nullは未観測を意味し、未完了ではありません。

      いずれか

      object

      • request_idstring必須
      • outcomeenum必須
        "completed""relay_closed""inspection_unknown""send_failed""exception""client_disconnect_observed"
      • streamingboolean必須
      • terminal_frame_seenboolean必須
      • final_body_sentboolean必須
      • client_disconnect_observedboolean必須
      • inspection_completeboolean必須
      • bytes_sentinteger必須
      • body_messages_sentinteger必須
      • data_frames_sentinteger必須
      • started_atstring必須
      • observed_atstring必須
      • duration_msinteger必須
    • usage_evidenceobject | null
      いずれか

      object

      • usage_sourceenum必須
        "observed""estimated""unknown"
      • input_tokensinteger | null必須
      • output_tokensinteger | null必須
      • cached_input_tokensinteger | null必須
      • reasoning_tokensinteger | null必須
      • no_dispatchboolean必須
      • cache_write_input_tokensinteger | null必須

        プロバイダーのキャッシュに書き込まれた入力(キャッシュ書き込み料金で課金)。

    • web_search_requestsinteger | null
    • web_search_fee_usdnumber | null

      ドル。すでにコストのフィールドに含まれています。

    • attempt_countinteger必須

      プロバイダーへの実際のディスパッチ数。0はディスパッチ前に拒否されたことを示します。

    • created_atstring必須
    • tools_usedarray<string>必須

      ツール名の重複を除いた一覧(引数は含みません)。

    • failure_classstring | null必須

      完了しなかったリクエストの、サニタイズ済みの結果区分。

    • error_messagestring | null必須
    • incomplete_reasonenum
      "max_tokens""provider_stream_ended""tool_call_cut""context_window""unknown"null
    • non_zdr_providerstring | null

      Partialのゼロデータ保持で、ゼロデータ保持を提供しないプロバイダーがこのリクエストを処理した場合の、そのプロバイダーの公開名。それ以外はnullです。

    • prompt_groupstring | null必須

      12桁の16進ハンドル。この値が同じリクエストは同じエージェント構成で実行されました。

    • conversation_groupstring | null必須

      12桁の16進ハンドル。この値が同じリクエストは1つの会話に属します。

    • attribution_labelstring | null必須
    • tagsobject

      X-Explabs-Tagsで送信された呼び出しタグ。

    • bodyobject | null

      include_body=trueの場合に含まれます。要求されなかった場合や何も保存されていない場合はnullです。

      いずれか

      object

      • request_idstring必須
      • messagesarray<object>必須
      • captured_atstring必須
      • responseobject | null

        呼び出し元が受け取った内容:{kind: json, body}または{kind: sse, frames: [...]}。呼び出し元が途中で離脱したストリームにはclient_disconnected: trueが付きます。中継されるまではnullです。

      • response_captured_atstring | null
      • requestobject | null

        messagesを除いたリクエストエンベロープ(tools、tool_choice、サンプリングと推論の設定)。

      • wire_requestobject | 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/usage/requests/req_01JD8ZK4M2Q7V9X3N5T6B8C0EF?include_body=true' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

レスポンス

{
  "request_id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF",
  "model": "gpt-6-luna",
  "provider": "experiential_cloud",
  "lane": "platform",
  "api_key_id": "6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33",
  "key_label": "support-bot",
  "input_tokens": 4210,
  "output_tokens": 388,
  "cached_input_tokens": 3584,
  "cache_credited_input_tokens": 0,
  "reasoning_tokens": 120,
  "cost_usd": 0.001284,
  "estimated_cost_usd": 0,
  "free_usd": 0,
  "real_cost_usd": 0.001284,
  "pricing_known": true,
  "latency_ms": 2140,
  "ttft_ms": 410,
  "status": "completed",
  "delivery": {
    "request_id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF",
    "outcome": "completed",
    "streaming": true,
    "terminal_frame_seen": true,
    "final_body_sent": true,
    "client_disconnect_observed": false,
    "inspection_complete": true,
    "bytes_sent": 18422,
    "body_messages_sent": 96,
    "data_frames_sent": 94,
    "started_at": "2026-11-18T14:32:05.330Z",
    "observed_at": "2026-11-18T14:32:07.470Z",
    "duration_ms": 2140
  },
  "usage_evidence": {
    "usage_source": "observed",
    "input_tokens": 4210,
    "output_tokens": 388,
    "cached_input_tokens": 3584,
    "reasoning_tokens": 120,
    "no_dispatch": false,
    "cache_write_input_tokens": null
  },
  "web_search_requests": null,
  "web_search_fee_usd": null,
  "attempt_count": 1,
  "created_at": "2026-11-18T14:32:07.481Z",
  "tools_used": [
    "lookup_order"
  ],
  "failure_class": null,
  "error_message": null,
  "incomplete_reason": null,
  "non_zdr_provider": null,
  "prompt_group": "9c41e07ab2d3",
  "conversation_group": "f02a6b19c4e8",
  "attribution_label": "user_48121",
  "tags": {},
  "body": {
    "request_id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF",
    "messages": [
      {
        "role": "user",
        "content": "Where is order 4471?"
      }
    ],
    "captured_at": "2026-11-18T14:32:07.481Z",
    "response": {
      "kind": "json",
      "body": {
        "id": "chatcmpl-8x2",
        "object": "chat.completion"
      }
    },
    "response_captured_at": "2026-11-18T14:32:07.481Z",
    "request": {
      "model": "gpt-6-luna",
      "tools": [
        {
          "type": "function",
          "function": {
            "name": "lookup_order"
          }
        }
      ]
    },
    "wire_request": null
  }
}

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