Sessions

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

idstringrequired

Query parameters

cursorstring
limitinteger
message_idstring

Keep only the records of this message.

{
"earliest_feed_seq": int,
"has_more": bool,
"next_cursor": str,
}

Response

earliest_feed_seqinteger

The retention head: the lowest feed_seq still stored, or null when the session has no stored records.

has_moredefault falseboolean

Whether more results exist past this page.

next_cursorstring

Pass as `cursor` to fetch the next page. Null on the last page. Opaque , echo it back rather than parsing it.

recordsarray<SessionRecord>required

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.

On this page

No Headings
Schedule a demo