The captured transcript as the events the live stream carries (message,
tool_use, tool_result, thinking, error, result), filtered and sliced
on the server. A turn starts at each user message; first/last keep that
many turns, then include/exclude filter by role. Available once the run
has captured its transcript; before that the answer is 404 SESSION_NOT_CAPTURED.
Authenticate with an API key or a signed-in session.
Path parameters
The org's slug or id. A caller with no role in the org gets 404.
The session's full id (execution_id).
Query parameters
Comma-separated roles to keep.
Comma-separated roles to drop. Not with include.
Keep the first N turns. Not with last.
Keep the last N turns. Not with first.
Responses
200The transcript slice.
Absent when the slice holds none.
8 item fields
messagetool_usetool_resultthinkingerrorresultuserassistantLinks a tool_use to its tool_result.
A tool_use's input as the agent wrote it, e.g. command or file_path.
400A bad filter (INVALID_FILTER): an unknown role, include with exclude, or first with last.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, TOKEN_LIMIT_REACHED.
The machine code on routes that name it this way.
401No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, TOKEN_LIMIT_REACHED.
The machine code on routes that name it this way.
404No such session of yours (NOT_FOUND), or no transcript captured yet (SESSION_NOT_CAPTURED).
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, TOKEN_LIMIT_REACHED.
The machine code on routes that name it this way.
429The account is over its request budget, 1,800 a minute shared by the person's API keys and console on every API host (RATE_LIMITED).
The account is over its request budget, 1,800 a minute shared by the person's API keys and console on every API host (RATE_LIMITED). The error names the limit. Wait Retry-After seconds.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, TOKEN_LIMIT_REACHED.
The machine code on routes that name it this way.