Export session messages as a JSONL file
GET /v1/sessions/{session_id}/export
GET
/v1/sessions/{session_id}/export
Returns all materialized messages (user, agent) as newline-delimited JSON.
Delta events are excluded. Each line is a complete JSON object representing one message.
The response includes Content-Disposition: attachment for browser download.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” session_id
required
string
Session ID (prefixed, e.g., session_…)
Responses
Section titled “ Responses ”JSONL file with one message per line
Invalid ID format
Forbidden
Session not found
Internal server error