Sessions

List records

GET /v1/sessions/{session_id}/records
Permission
read:sessions
Tokens
API key, CLI user token, Session token

Read complete platform and native harness records. Partial text deltas are live-only.

Path parameters

session_idstringrequired

Query parameters

cursorstring
limitinteger
{
"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.

messagesdefault []array<SessionMessage>

The open inbox slice (pending rows only): queued messages not yet consumed by a turn. Delivered history comes from the records themselves.

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 (transcript + lifecycle), ordered by feed_seq. Clients render each by (source, record_format, record_type). Pagination is opt-in (`cursor` + `limit`); a bare call returns the full retained transcript.

On this page

No Headings
Schedule a demo