Get Agent Session Records
Return the session's stored transcript records. Pagination is opt-in (after_seq/limit — the same feed_seq cursor as the stream); a bare call returns the full retained transcript. Available to sandbox tokens too: an agent answering "did X look into Y?" needs to read the session it found via /sessions/search, and any org member sees the same transcript in the dashboard (laptop transcripts are redacted client-side before they are ever uploaded).
Return the session's stored transcript records.
Pagination is opt-in (after_seq/limit — the same feed_seq cursor as the stream); a bare call returns the full retained transcript. Available to sandbox tokens too: an agent answering "did X look into Y?" needs to read the session it found via /sessions/search, and any org member sees the same transcript in the dashboard (laptop transcripts are redacted client-side before they are ever uploaded).
Authorization
HTTPBearer In: header
Path Parameters
Query Parameters
0Header Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/sessions/string/records"{ "earliest_feed_seq": 0, "has_more": false, "messages": [], "records": [ { "agent_session_id": "string", "agent_turn_id": "string", "cost": 0, "created_at": "2019-08-24T14:15:22Z", "duration": 0, "feed_seq": 0, "id": "string", "model": "string", "payload": {}, "record_format": "string", "record_type": "string", "session_message_id": "string", "source": "lifecycle", "stream_seq": 0, "tokens_info": { "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "cost_usd": 0, "input_tokens": 0, "num_turns": 0, "output_tokens": 0 }, "tools": [ "string" ] } ]}Get Agent Session Port
Return the preview link for a port in the session's live sandbox (a dev server running there): the same dashboard page as the IDE, deep-linked to the port. Backs `agent session port`.
Replay Agent Session
Re-run an existing run's trigger input as a new run. Reuses the original config snapshot unless config_id is given, and accepts the same config_override as session start — e.g. {"claude": {"model": ...}} to replay the same input on a different model.