Sessions
Download a transcript
GET /v1/sessions/{session_id}/download- Permission
read:sessions- Tokens
- API key, CLI user token, Session token
Download the session transcript.
Path parameters
session_idstringrequired
{
"archived_through_feed_seq": int,
"earliest_feed_seq": int,
"format": str,
"has_more": bool,
"latest_feed_seq": int,
"session_id": str
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
result = client.sessions.download("session_example")
8
print(result)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
const result = await client.sessions.download("session_example");
8
console.log(result);
1
curl "https://api.ellipsis.dev/v1/sessions/{session_id}/download" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
archived_through_feed_seqintegerrequired
The highest feed_seq covered by an archived segment (0 when none yet).
earliest_feed_seqintegerrequired
The retention head: the first feed_seq still available, or null when nothing has been recorded yet.
formatdefault
"ellipsis_session_log@1"stringThe session log format identifier.
has_morebooleanrequired
Whether records exist past the archived segments , true for a running session whose newest records are not archived yet.
latest_feed_seqintegerrequired
The feed head: the last allocated feed_seq.
segmentsarray<SessionLogSegment>required
The archived segments, in feed_seq order.
session_idstringrequired
Identifier of the session.