Retrieve a public trace
Retrieve a publicly shared trace without authentication. The trace must have been shared first via PATCH /api/traces/{trace_unique_id}/.
Path parameters
unique_organization_id
Organization unique ID used in a public trace share link.
trace_unique_id
Unique trace identifier.
Response
Trace detail with span tree.
id
Trace identifier.
trace_unique_id
Unique trace identifier.
root_span_unique_id
Root span ID for the trace.
unique_organization_id
Organization unique ID.
organization_id
Alias of unique_organization_id.
organization_name
Organization name when available.
organization_key_id
API key identifier used to create the trace.
environment
Environment for the trace.
customer_identifier
Customer or user identifier.
start_time
When the trace started.
end_time
When the trace ended.
duration
Total duration in seconds.
span_count
Total spans in the trace.
llm_call_count
Number of LLM-call spans.
total_cost
Total cost in USD.
total_prompt_tokens
Sum of prompt tokens.
total_completion_tokens
Sum of completion tokens.
total_tokens
Sum of all tokens.
error_count
Number of error spans.
name
Root span name.
input
Root span input. API key responses may include full storage-enriched content.
output
Root span output. API key responses may include full storage-enriched content.
metadata
Trace metadata.
trace_group_identifier
Workflow or trace-group identifier.
session_identifier
Session identifier when present.
model
Primary/root model used.
storage_object_key
Storage object key for the root span payload when present.
span_tree
Hierarchical span tree for the trace.
Errors
404
Not Found Error
429
Too Many Requests Error