/api/orgs/{org_id}/usage/requests/{request_id}/promptGet 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/whoamireturns it.request_idstring必須The request id (the
x-request-ida completion returned).
レスポンス
200Captured content.
レスポンス
request_idstring必須messagesarray<object>必須captured_atstring必須responseobject | nullWhat the caller received:
{kind: json, body}or{kind: sse, frames: [...]}; a stream the caller left early carriesclient_disconnected: true. Null until relayed.response_captured_atstring | nullrequestobject | nullThe request envelope minus messages (tools, tool_choice, sampling and reasoning settings).
wire_requestobject | nullThe request as the gateway received it (method, path, query, redacted headers, exact body).
401Missing, unknown or revoked API key.
レスポンス
errorstring必須Human-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404Nothing captured for this request (capture off, ZDR-routed, expired, or unknown).
レスポンス
errorstring必須Human-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
429Too 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 afterRetry-After.レスポンス
errorstring必須Human-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-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