/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.
Authentication: Bearer API key in the Authorization header
Path parameters
org_idstringrequiredYour organization id (uuid).
GET /api/whoamireturns it.request_idstringrequiredThe request id (the
x-request-ida completion returned).
Responses
200Captured content.
Response
request_idstringrequiredmessagesarray<object>requiredcaptured_atstringrequiredresponseobject | 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.
Response
errorstringrequiredHuman-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).
Response
errorstringrequiredHuman-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.Response
errorstringrequiredHuman-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).
Request
curl https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/usage/requests/req_01JD8ZK4M2Q7V9X3N5T6B8C0EF/prompt \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"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