List objective events
The full, immutable transcript of an objective: every message, tool call, and result, with the bodies the stream leaves out.
sortOrder: 'desc' for newest first.
This is where tool result bodies live
The stream stripstoolResult and toolError down to a bare toolCallId, because a tool returning a megabyte of JSON would otherwise be pushed through every open connection. Here, the full body is attached.
Every event names its context window
contextWindowId sits on each event, not inside data. On an objective that has compacted, events before and after the compaction carry different window IDs, so you can group a transcript by window and show where the summary took over.
contextWindowCompacted events mark the boundaries.
No event-type filter
The endpoint takeslimit, cursor, sortOrder, and includeInfo. There is no way to ask the server for only the toolCalled events, so filter on the client:
limit is a page size, not a cap. The SDK iterator pages transparently, so limit: 10 fetches ten per request and still yields every event. Read page.items for exactly one page.
includeInfo: true adds info.createdBy, the profile that caused the event. It costs more of your rate limit and tells you nothing about the agent’s work, so skip it on a transcript render.
The seventeen event types
data is a discriminated union: type names the variant, and the payload sits under a key with the same name. { "type": "toolCalled", "toolCalled": {...} }.
finalized.output carries the objective’s structured result, when its agent has an outputDefinition. Reading it from the event saves you a fetch.
Events or diagnostics
Both describe an objective after the fact, and they answer different questions.Related
Stream objective events
Webhooks
List context windows
contextWindowId refers to, and what each window cost.Create an objective
userMessage comes from.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"
Objective ID for filtering
"obj_01HXKD2E5NQM3T9AYWCFQAZGFV"
Query Parameters
Maximum number of results to return
Pagination cursor from previous response
Sort order for results (asc or desc by creation time)
When set to true you may use more of your alloted API rate-limit
Optional context window ID to filter events by
Optional string to fetch events since an ID
Filters by metadata labels. Comma-separated key=value pairs, e.g. "env=prod,team=ai". A resource matches only if every pair matches exactly (AND semantics).