> ## Documentation Index
> Fetch the complete documentation index at: https://docs.finalsay-hitl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export approval history

> Download a workspace's approvals as JSONL or CSV, for audits or to evaluate and train your agents.

Owners and admins can download a workspace's approvals from **Approvals → Export**: for an audit, or to train and
evaluate an agent on how your team actually answered. The dialog starts with the filters the list is showing.

## Choose what to export

**Which approvals**

* **Status**: several at once (unlike the list, which filters one status at a time).
* **Created** and **resolved** date ranges.
* **Search** on the question or `request_id`.
* **Agents**: none selected means every agent, including archived ones.
* **Who answered**, and **only answers with a written instruction**.

**Fields**

The request ID, agent, status, question, the answer (option label **and value**, or the written instruction) and the
created and resolved times are always included. Optional groups:

| Group | Fields | Default |
| - | - | - |
| **Context** | `context_markdown`, `notification_summary` | On |
| **All options** | every option offered, with label and value | On |
| **Identifiers** | `approval_id`, `correlation_id` | On |
| **Timeout and delivery** | `expires_at`, `timeout_mode`, and callback `delivery` (`status`, `error`) | Off |
| **Responder identity** | `result.resolved_by`: user ID, name and email of who answered | Off (personal data) |

Callback URLs and headers are never exported.

**Format**

* **JSONL**: one JSON object per line.
* **CSV**: options flattened into `option_1_label` … `option_4_value` columns.
* **Compress (.gz)** for either.

The dialog shows how many approvals the file will contain before you click **Download**.

## The JSONL format

Each line looks like this (optional groups shown):

```json theme={"theme":{"light":"github-light","dark":"vesper"}}
{"approval_id":"…","request_id":"deploy-42","correlation_id":null,"agent":{"id":"…","name":"Deploy bot"},"status":"selected_option","question":"Ship v2 to production?","context_markdown":"…","notification_summary":null,"options":[{"index":0,"label":"Ship","value":"ship"},{"index":1,"label":"Hold","value":"hold"}],"result":{"selected_option_index":0,"selected_option_label":"Ship","selected_option_value":"ship","custom_instruction":null,"fallback_applied":false,"answer":"ship","resolved_at":"2026-11-17T10:05:00+00:00"},"created_at":"2026-11-17T10:00:00+00:00"}
```

`result` uses the same field names as the [approval result](https://docs.finalsay-hitl.com/api-reference/approval-object.md#result) your agent receives,
so the same code can read both.

## Good to know

* **Plan history window.** The export covers only the newest *N* approvals in the workspace (100 on Free, 500 on
  Starter, all on Pro), and filters apply inside that window. The dialog says when older matching approvals are left out.
* **Any size.** Large exports stream straight to your browser's downloads.
* **One-time link.** Each download link works once, for one minute.
* **Limits.** Up to 10 exports per 10 minutes, and 2 at a time.
* **Spreadsheets.** CSV files start with a UTF-8 byte-order mark so Excel reads accents correctly. Text cells that start
  with `=`, `+`, `-`, `@`, tab or carriage return get a leading `'`, so spreadsheets don't run them as formulas.
* **Times** are UTC (ISO 8601). Date ranges in the dialog are whole days in your local time zone.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.