API

AgentSession

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/agent_sessions/{session_id}/transcript load Indexed events or an explicit content availability state

Fields

Field Type Required Description
id string No Id

load

GET /api/v1/agent_sessions/{session_id}/transcript

Operation ID: get_api_v1_agent_sessions_session_id_transcript.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
session_id path string Yes
checkpoint query string No
source_ref query string No Opaque source reference returned by discovery, required on the source route unless continuing with a cursor.
cursor query string No
limit query integer No
max_bytes query integer No
include_tools query boolean No
around_event query integer No Cited event index, paired with event_digest and without cursor.
event_digest query string No

Responses

200: Indexed events or an explicit content availability state

application/json

Property Type Required Description
checkpoint_id string Yes
contains_truncated_events boolean Yes
events array of object Yes
events[].citation object Yes
events[].citation.checkpoint_id string Yes
events[].citation.digest string Yes
events[].citation.event_index integer Yes
events[].index integer Yes
events[].kind enum: message, tool_use, tool_result Yes
events[].role string Yes
events[].text string Yes
events[].timestamp string Yes
events[].truncated boolean Yes
has_more boolean Yes
limits object Yes
limits.bytes integer Yes
limits.events integer Yes
limits.include_tools boolean Yes
newer_cursor string Yes
older_cursor string Yes
scope enum: checkpoint, whole_session Yes
session_id string Yes
source_ref string Yes
status enum: available, preparing, pending, unavailable, expired, no_checkpoint Yes
truncation_notice string Yes
400: Invalid limits or source reference
401: Authentication required
403: Forbidden
404: Missing or inaccessible session or checkpoint
409: The cursor no longer identifies the same content or filters
413: Increase max_bytes to fit the next complete indexed event
422: Unprocessable entity
502: Bad gateway