SaaSFlow
DevelopersAPIReferenceagent_runs

Transcript

Download the full session transcript as JSON Lines: every message and every tool call the agent made, which is the record to read when debugging what an agent actually did. Transcripts run to megabytes, so pass `tailBytes` to take only the end of the run (the cut is aligned to a line start). Without it a transcript that is too large is refused with 413. Content type is `application/x-ndjson`, not JSON.

Authentication

You're not signed in. Either sign in at app.saasflow.com and reload (then pick sessionCookie), or paste a SaaSFlow sf_… API key in the bearerAuth field below.
GET
/companies/{companyId}/agent_runs/{id}/transcript

Authorization

Authorization<token>

A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.

In: header

Path Parameters

companyId*string
Length1 <= length
id*string
Length1 <= length

Query Parameters

tailBytes?integer

Return only the last N bytes (aligned to a line start). Use this from tools; full transcripts can be megabytes.

Range0 < value <= 10485760

Response Body

application/x-ndjson

application/json

application/json

application/json

curl -X GET "https://example.com/companies/string/agent_runs/string/transcript"
"string"