Fetch session events
Requires workspaces:read and agents:read. Events default to newest-first (sort_by=-id) with a limit of 20, so a naive read returns the tail of the conversation in reverse. For polling, pass from_id as an exclusive cursor (id > from_id) so each poll returns only what happened since the last one — event ids are UUIDv7 and therefore time-ordered. The agent’s reply arrives as a runtime_done event whose content.text carries the message; events persist when a turn completes, not while the model is streaming, so a poll during generation returns nothing new until the turn finishes.
A key missing agents:read currently gets a 500, not a filtered 200 or a 403 — serializing an agent task reads details the key isn’t allowed to see, and that read fails loudly instead of being omitted. Grant agents:read alongside workspaces:read for any session that ran an agent.
Authorizations
Account API key: key id as the username, secret as the password.
Path Parameters
Query Parameters
0 <= x <= 10000 <= x <= 9223372036854776000