Skip to main content
POST
Export session transcript

Authorizations

app_key
string
query
required

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Body

application/json

Export the full event transcript of one session as a streaming NDJSON body.

session_id
string
required

Target session ID, from the list returned by POST /safari/session/list.

include_subagents
boolean

When true, each subagent_dispatch line is followed by the child session's full event stream, bracketed by its own session_meta. Defaults to false.

Response

Streaming NDJSON (application/x-ndjson). One JSON object per line, terminated by a newline. The first line is always a session_meta envelope; subsequent lines are session events.

Newline-delimited JSON stream. Parse line-by-line; do not buffer the whole body.