List records
GET /v1/sessions/{id}/records- Permission
read:sessions- Tokens
- API key, CLI user token, Session token
Read everything that happened in a session, oldest first. That is the messages sent to it, the platform events, and the agent output. Filter by message_id for one message. Partial text deltas are live-only.
Path parameters
Query parameters
Keep only the records of this message.
Response
The retention head: the lowest feed_seq still stored, or null when the session has no stored records.
falsebooleanWhether more results exist past this page.
Pass as `cursor` to fetch the next page. Null on the last page. Opaque , echo it back rather than parsing it.
The session's records, ordered by feed_seq: the messages sent to it, the platform's own events, and the agent's output. Clients render each by (source, record_format, record_type). Pagination is opt-in (`cursor` + `limit`); a bare call returns the full retained log.