# Export a session record

> Export the full record of a chat — threads, human decisions, and outcomes — as a JSON file.

canonical: https://agentsky.dev/help/export-session-record
source: https://agentsky.dev/help/export-session-record.md
updated: 2026-10-21

---

**Export the full record of a chat — threads, human decisions, and outcomes — as a JSON file.**

The exported record is a structured JSON document. It contains every decision thread, every human approval or rejection, every Arena vote cast, and every observed outcome.

**CLI:**
```
sky task export --harbor
```
Run this in the terminal to export the record of the current session to a local file.

**API:**
`GET /api/v1/sessions/{id}/record` — returns the record as JSON.

`GET /api/v1/sessions/{id}/threads` — returns just the decision threads.

Where: CLI and API only.

Good to know: the export is read-only; it is a snapshot of the session at the time of export. Related: [What is the session record?](https://agentsky.dev/help/session-record-overview).
