actor is who caused the event (via is slack, opc, dashboard or api), or null. Event types and their data fields: API schema. A client must ignore types it does not know.
Read a range
events.list (GET /sessions/{id}/events) returns events in seq order. To follow a session over HTTP, read it every few seconds from the last cursor; to see events the moment they are recorded, use Live.
The result is
events, cursor (after the last event returned, or the one sent when there is none), lastSeq (the journal’s last seq), hasMore, and earlierTurns with tailTurns. Send cursor as the next after, whether or not hasMore is true. With a filter, the page may be shorter than the range it covered.
Follow live
Subscribe toevents:<id> on Live with the last cursor. Live pushes each new range of events; a client reads over HTTP whenever a pushed range does not start at its cursor. Deltas (deltas:<id>) carry text and tool output as they are written: no seq, not stored, not replayed, and each block is followed by an event with the whole text (message.completed, reasoning.completed, tool.completed). Types: API schema.