Retrieve an experiment trace
Retrieve one experiment trace with its full span tree and enriched evaluator scores.
Path parameters
experiment_id
Experiment ID returned as id in experiment responses.
log_id
Trace ID returned as id in experiment trace list responses.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY for API key auth or Bearer <JWT> for dashboard auth.
Response
Experiment trace details.
id
Trace ID. Use this value as log_id for trace detail and wait-workflow resume routes.
trace_unique_id
Trace unique ID.
root_span_unique_id
environment
customer_identifier
name
input
Trace input. May be a JSON value or serialized JSON string depending on storage.
output
Trace output. May be a JSON value or serialized JSON string depending on storage.
expected_output
Expected output from the dataset row, when available.
status
comparison_key
Stable key for comparing the same input across experiments.
start_time
end_time
duration
Trace duration in seconds.
span_count
llm_call_count
total_cost
total_tokens
total_prompt_tokens
total_completion_tokens
error_count
scores
Scores keyed by evaluator ID or slug. Each value includes evaluator metadata and the score value field matching score_value_type.
span_tree
Hierarchical span tree for this trace.
Errors
401
Unauthorized Error
404
Not Found Error