Skip to main content
GET
List Events
Every request requires ?beta=true.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string
anthropic-beta
string

Path Parameters

session_id
string
required

Path parameter session_id

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true
limit
integer<int32>

Query parameter for limit

page
string

Opaque pagination cursor from a previous response's next_page.

order
enum<string>

Sort direction for results, ordered by the event's processed_at. Defaults to asc (chronological). ListOrder enum

Available options:
asc,
desc
types[]
string[]

Filter by event type. Values match the type field on returned events (for example, user.message or agent.tool_use). Omit to return all event types.

created_at[gte]
string<date-time>

Return events created at or after this time (inclusive). Compared against the event's processed_at value. A timestamp in RFC 3339 format

created_at[gt]
string<date-time>

Return events created after this time (exclusive). Compared against the event's processed_at value. A timestamp in RFC 3339 format

created_at[lte]
string<date-time>

Return events created at or before this time (inclusive). Compared against the event's processed_at value. A timestamp in RFC 3339 format

created_at[lt]
string<date-time>

Return events created before this time (exclusive). Compared against the event's processed_at value. A timestamp in RFC 3339 format

Response

Successful response (OK)

Paginated list of events for a session.

data
object[]

Events for the session, ordered by processed_at.

A user message event in the session conversation.

Example:
Example:
next_page
string | null

Opaque cursor for the next page. Null when no more results.

Example:

"page_MjAyNS0wNS0xNFQwMDowMDowMFo="