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

Get a request's captured prompt and response

Content exists only when prompt capture was on for the organization, the request was not routed under zero data retention (those are never stored), and the row is still retained. Every other case answers 404, indistinguishable from an unknown request.

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

パスパラメータ

  • org_idstring必須

    Your organization id (uuid). GET /api/whoami returns it.

  • request_idstring必須

    The request id (the x-request-id a completion returned).

レスポンス

  • 200

    Captured content.

    レスポンス
    • request_idstring必須
    • messagesarray<object>必須
    • captured_atstring必須
    • responseobject | null

      What the caller received: {kind: json, body} or {kind: sse, frames: [...]}; a stream the caller left early carries client_disconnected: true. Null until relayed.

    • response_captured_atstring | null
    • requestobject | null

      The request envelope minus messages (tools, tool_choice, sampling and reasoning settings).

    • wire_requestobject | null

      The request as the gateway received it (method, path, query, redacted headers, exact body).

  • 401

    Missing, unknown or revoked API key.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    Nothing captured for this request (capture off, ZDR-routed, expired, or unknown).

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 429

    Too many reads. rate_limited: this organization's API-key reads of the request log are over about 10 per second (burst 30) or 4 in flight on one server (sessions are not limited). build_capacity: the shared analytics read slots are busy. Retry after Retry-After.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

リクエスト

curl https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/usage/requests/req_01JD8ZK4M2Q7V9X3N5T6B8C0EF/prompt \
  -H "Authorization: Bearer YOUR_API_KEY"

レスポンス

{
  "request_id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF",
  "messages": [
    {
      "role": "system",
      "content": "You are Acme's support agent."
    },
    {
      "role": "user",
      "content": "Where is order 4471?"
    }
  ],
  "captured_at": "2026-11-18T14:32:07.481Z",
  "response": {
    "kind": "sse",
    "frames": [
      {
        "choices": [
          {
            "delta": {
              "content": "Order 4471 shipped"
            }
          }
        ]
      }
    ]
  },
  "response_captured_at": "2026-11-18T14:32:07.481Z",
  "request": {
    "model": "gpt-6-luna",
    "stream": true
  },
  "wire_request": {
    "method": "POST",
    "path": "/v1/chat/completions"
  }
}

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