GET

Authorizations

x-api-key
string
header
required

Path Parameters

session_id
string
required

ID of the session (ses_ followed by 26 lowercase base32 characters). A session of another workspace, a deleted session and an unknown ID all answer 404 not_found_error without an error.code.

Query Parameters

limit
number

Number of sequences per page, an integer from 1 to 100 (default 20); every event of each sequence is returned. Any other value is refused with 400.

page
string | null

Cursor from the next_page of the previous page (a decimal bma_sequence). Pass it with the same order. Omit for the first page; a value that is not a cursor is refused with 400.

created_at[gt]
string

Keeps events created after this time (RFC 3339); any other value is refused with 400.

created_at[gte]
string

Keeps events created at or after this time (RFC 3339); any other value is refused with 400.

created_at[lt]
string

Keeps events created before this time (RFC 3339); any other value is refused with 400.

created_at[lte]
string

Keeps events created at or before this time (RFC 3339); any other value is refused with 400.

order
enum<string>

asc (the default) lists the oldest events first, desc the newest first, by bma_sequence.

Available options:
asc,
desc
types
enum<string>[]

Keep only events of these types (repeat the parameter, use types[] or separate values with commas). Omit for every official type. BMA's extension event types are returned only when named here.

The type of a session event.

Available options:
user.message,
user.interrupt,
user.tool_confirmation,
user.custom_tool_result,
agent.custom_tool_use,
agent.message,
agent.thinking,
agent.mcp_tool_use,
agent.mcp_tool_result,
agent.tool_use,
agent.tool_result,
agent.thread_message_received,
agent.thread_message_sent,
agent.thread_context_compacted,
session.error,
session.status_rescheduled,
session.status_running,
session.status_idle,
session.status_terminated,
session.thread_created,
span.outcome_evaluation_start,
span.outcome_evaluation_end,
span.model_request_start,
span.model_request_end,
span.outcome_evaluation_ongoing,
user.define_outcome,
session.thread_status_running,
session.thread_status_idle,
session.thread_status_terminated,
user.tool_result,
session.thread_status_rescheduled,
session.updated,
system.message,
session.usage,
workflow_run.created,
workflow_run.status_running,
workflow_run.status_idle,
workflow_run.status_ended,
workflow_run.error,
workflow_run.phase_started,
workflow_run.phase_ended

Response

Success.

data
object[]
required

The items of this page, in the list's order.

Union type for all event types in a session.

next_page
string | null
required

Cursor of the next page: send it as page to continue. null on the last page.