GET /sessions/{session_id}/export
Export the complete session history.
TypeScript SDKThe npm client, generated from the API spec.Python SDKThe PyPI client, sync and async.
| Method | Path |
|---|---|
| GET | /v1/sessions/{session_id}/export |
The complete, ordered history of the session (agent output, tool calls, thinking, lifecycle events, sandbox output, message events) as an ordered manifest of presigned segment URLs. Segments are gzip members: download in order and concatenate for one file. The JSON API never carries the bytes (same two-step as files). /records is the paged live view of the same data.
Path parameters
session_idstringrequired
curl "https://api.ellipsis.dev/v1/sessions/{session_id}/export" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.sessions.export("...")
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.sessions.export('...');
console.log(result);Request
Response
Example response · 200
{
"archived_through_feed_seq": 0,
"earliest_feed_seq": 0,
"format": "ellipsis_session_log@1",
"has_more": false,
"latest_feed_seq": 0,
"session_id": "string"
}