Get the customer-readable trace for a v2 conversation, nested Session→Turn→node→step
The nested tree variant of the session trace (Phase D), paginated by TURN. Same auth
(TRACE_READ) + org scoping + terminal-session cache as the flat read. The full tree is built +
cached once, then a window of limit turns from cursor is returned with a next_cursor
for the next block (None on the last page). header + session lane ride every page.
Authorizations
Path Parameters
Query Parameters
Turn-pagination cursor: pass the previous page's next_cursor to load the next block of turns. Omit for the first page.
Max TURNS per page (the grouped tree paginates by turn, not by raw step).
1 <= x <= 200product, 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-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.