/api/orgs/{org_id}/traces/{trace_id}/treeGet a trace as one JSON tree
One trace as one JSON object in the shape of the session tree (no bodies). Takes a time range (window, start, end); 30 days by default, so pass start and end around an older trace.
Authentication: Bearer API key in the Authorization header
Path parameters
org_idstringrequiredYour organization id (uuid).
GET /api/whoamireturns it.trace_idstringrequiredThe trace id: 32 lower-case hex characters.
Query parameters
windowenum24h(default),7dor30d, ending now.startstringAn exact range start instead of
window(RFC 3339 with a zone), inclusive. Lists span at most 400 days; search at most 30.endstringThe exact range end, exclusive. Pass with
start.
Responses
200The span tree.
Response
session_idstring | nullThe session (on a trace, its one session, else null).
trace_idstringThe trace, on a trace tree only.
t0string | nullrequiredThe earliest start; null when there are no nodes.
node_countintegerrequiredNodes in the tree.
truncatedbooleanrequiredWhether the 25,000-node cut applied.
rootsarray<object>requiredroots
idstringrequiredThe node id; a gateway request's node id is its request id.
kindenumrequiredrequesta model call through the gateway,llmyour own LLM span,toola tool call,agentan agent or subagent,spanany other span of yours.trace_idstringrequirednamestring | nullstart_msintegerrequiredMilliseconds after
t0.started_atstringrequiredduration_msinteger | nullNull while running.
statusenumrequiredfailure_classstring | nullmodelstring | nullpathstring | nullThe step path, like
/plan/research.api_key_idstring | nullttft_msinteger | nullinput_tokensintegeroutput_tokensintegercached_input_tokensintegercost_nano_usdintegerAll-in cost, integer nano-USD (1,000,000,000 = $1).
creditsnumberCredits drawn (the charged part; 1 credit = 1 cent).
tool_chargesobjectPaid tool charges per tool key, nano-USD; parts of the cost.
inferredbooleanInferred from traffic; its timing is an estimate.
flattenedbooleanPresent when the node sat deeper than 128 levels and was placed beside its ancestor at that depth.
childrenarray<object>required
400An unknown parameter or value, a parameter or value this API no longer takes, a repeated tag key, a bad range, an edited cursor, or a cursor sent with a different query.
codenames it (unknown_parameter,parameter_removed,invalid_filter,invalid_cursor,cursor_mismatch,range_too_wide,invalid_limit). Aparameter_removedmessage names what to send instead.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).
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).
404No trace with this id in the organization (
trace_not_found).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).
422Too broad to read in time (
query_too_broad). Narrow the window or add a filter.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).
503This deployment has no observability store (
observability_unavailable), or the store could not answer (trace_store_error). Retry shortly.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/traces/4bf92f3577b34da6a3ce929d0e0e4736/tree?window=7d&start=2026-11-18T00%3A00%3A00Z&end=2026-11-19T00%3A00%3A00Z' \
-H "Authorization: Bearer <YOUR_API_KEY>"Response
{
"t0": "2026-11-19T00:00:00Z",
"node_count": 0,
"truncated": false,
"roots": [
{
"id": "string",
"kind": "request",
"trace_id": "string",
"start_ms": 0,
"started_at": "2026-11-19T00:00:00Z",
"status": "completed",
"children": [
{}
]
}
]
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/traces/4bf92f3577b34da6a3ce929d0e0e4736/tree?window=7d&start=2026-11-18T00%3A00%3A00Z&end=2026-11-19T00%3A00%3A00Z