---
title: "Export Batch Results"
api: "GET /v1/api/batch-calls/{batchId}/export-results"
description: "Download the results of a batch as a CSV file."
lastUpdated: "2026-10-29"
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://trillet-ai.jamdesk.app/llms.txt). Append `.md` to any page URL for its markdown version.

### Headers

<ParamField header="x-workspace-id" type="string" required>
  Workspace identifier for the API.
</ParamField>

### Path Parameters

<ParamField path="batchId" type="string" required>
  The batch whose results to export.
</ParamField>

The response is a CSV file (`Content-Type: text/csv`, filename `batch-calls-results-<batchId>.csv`). It works for any batch in your workspace, including batches older than 7 days.

Columns:

- The original CSV columns, in their original order (`phone_number` is always included)
- `call_status`, `call_duration`, `call_id`, `call_summary`
- One `analyzed_<field>` column per post-call analysis field found on the batch's calls, sorted by name

### Errors

- `404` `{"error": "Batch not found"}` when the batch doesn't exist or belongs to another workspace
- `500` `{"error": "..."}` if the export fails

### Example

```bash
curl -X GET "https://api.trillet.ai/v1/api/batch-calls/k3j9x0a1bq/export-results" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-workspace-id: YOUR_WORKSPACE_ID" \
  -o batch-results.csv
```


---

📦 **OpenAPI specs:** Every OpenAPI specification referenced by this documentation is available as a single download — https://trillet-ai.jamdesk.app/api-specs.zip
