Get Trace
Path parameters
workspace
id
Query parameters
mode
Response mode. summary returns root-span fields without payloads or rollups; preview adds token, cost, and span-count rollups plus 300-character input/output previews; detailed returns rollups and full payloads.
Allowed values:
Response
Successful Response
id
session_id
workspace
started_at
status
Allowed values:
root_span_id
name
input
Root-span input text. Omitted in summary mode and truncated to 300 characters in preview mode.
output
Root-span output text. Omitted in summary mode and truncated to 300 characters in preview mode.
evaluation_context
Identifies the Evaluation and optional test case associated with ingested telemetry.
agent_name
agent_version
ended_at
duration_ms
input_tokens
output_tokens
cached_tokens
total_tokens
cost_usd
cost_input_usd
cost_output_usd
models
Distinct models used across the trace's spans. Omitted in summary mode.
providers
Distinct inference providers used across the trace's spans. Omitted in summary mode.
span_count
error_count
Errors
422
Unprocessable Entity Error