Skip to main content
GET
List session events

Path Parameters

session_id
string
required

Session ID

Required string length: 1 - 256

Query Parameters

page
string

Opaque pagination cursor from the previous response's next_page.

Pattern: ^\d{1,15}$
limit
string

Maximum number of events to return (1-100)

Pattern: ^(?:[1-9]\d?|100)$
types
enum<string>[]

Return events with one of these types.

Available options:
system.message,
user.message,
user.interrupt,
user.tool_confirmation,
user.custom_tool_result,
session.status_running,
span.model_request_start,
agent.tool_use,
agent.tool_result,
agent.mcp_tool_use,
agent.mcp_tool_result,
agent.custom_tool_use,
agent.thinking,
agent.message,
span.model_request_end,
session.status_idle,
session.error,
session.status_terminated,
session.archived
created_at[gt]
string
created_at[gte]
string
created_at[lt]
string
created_at[lte]
string
order
enum<string>

Order of the persisted event sequence: asc or desc

Available options:
asc,
desc

Response

Success

data
object[]
required

Privileged context appended to the session's system instructions.

next_page
string | null
required

Token for the next page, or null when there are no more results.