Skip to main content
GET
Get the customer-readable trace for a v2 conversation, nested Session→Turn→node→step

Authorizations

x-api-key
string
header
required

Path Parameters

conversation_id
string<uuid>
required

Query Parameters

turn_id
string<uuid> | null
cursor
string | null

Turn-pagination cursor: pass the previous page's next_cursor to load the next block of turns. Omit for the first page.

limit
integer
default:25

Max TURNS per page (the grouped tree paginates by turn, not by raw step).

Required range: 1 <= x <= 200
category
enum<string>
default:product
Available options:
product,
engineering,
all

Response

Successful Response

Nested envelope (Phase D): Session → Turn → node → step.

header holds the session-level facts (who / channel / agent / outcome / memory) shown once. session holds any remaining session-lane steps not folded into the header. turns holds the per-turn trees, ordered by turn start. A read alternative to the flat :class:SessionTraceResponse; the flat shape stays for back-compat.

session
TraceStep · object[]
required
turns
TraceTurn · object[]
required
header
TraceSessionHeader · object | null

Session-level facts shown ONCE at the top of the trace (never repeated per turn).

Derived from the conversation row + the session-lane steps, so the timeline opens with a single 'who / what / outcome' block instead of burying identity / memory / start / end events inside the turn stream.

next_cursor
string | null