Skip to content
Apkar

Running in production

Audit export

Producing evidence an auditor can read.

Export a date range as JSONL. The export streams rather than buffering, so a full year does not time out.

await runs.export({
  from: "2026-01-01",
  to: "2026-03-31",
  format: "jsonl",
})