Agents
List session events
Returns the session’s events in sequence order, after cursor. The cursor is an event’s sequence: pass a page’s next_cursor, or a session’s last_sequence to get only what happens next.
To follow the session live, send Accept: text/event-stream. The stream sends the following:
- A
session.statusevent, without anid, whose data is theSession. - Every event after the cursor, with
idset to its sequence andeventset to its type. - New events as they happen, and
message.deltaevents with partial agent text. Amessage.deltaevent has noid, and its data is{turn_id, text}. The log doesn’t store it. - A heartbeat comment every 15 seconds.
The server closes the stream within 10 minutes. To resume, reconnect with Last-Event-ID.
GET
List session events
Authorizations
Headers
Path Parameters
Query Parameters
Response
One page of events, or the live stream.
results
(message · object | turn.started · object | tool.started · object | tool.completed · object | input.requested · object | input.resolved · object | turn.completed · object | turn.failed · object | turn.cancelled · object)[]
required
The results in this page.
A message from the user or the agent.
- message
- turn.started
- tool.started
- tool.completed
- input.requested
- input.resolved
- turn.completed
- turn.failed
- turn.cancelled