Skip to main content
POST
Genai Traces Chat

Body

application/json

Request to get the structured chat / trajectory view for a trace.

project_id
string
required
trace_id
string
required
include_feedback
boolean
default:false

Response

Successful Response

Structured chat view: a linear sequence of messages representing the agent trajectory for a single trace.

trace_id
string
required
root_span_name
string | null
agent_name
string | null
agent_version
string | null
status_code
enum<string> | null
Available options:
UNSET,
OK,
ERROR
provider
string | null
total_duration_ms
integer | null

Wall-clock duration of the trace root span in milliseconds. This is not a sum of child span durations.

total_cost_usd
number | null
messages
AgentChatMessage · object[]
feedback
Feedback · object[] | null