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

# Exports

> Download organization calls and campaigns as CSV.

Exports return a downloadable `text/csv` response with a timestamped `Content-Disposition` filename. They are always filtered to the organization associated with the API key; they do not return the standard JSON envelope.

<Endpoint method="GET" path="/api/public/v1/exports/calls" />

* `GET /exports/calls` supports `status`, `direction`, `agent_id`, `ids`, `date_from`, and `date_to`.

<Endpoint method="GET" path="/api/public/v1/exports/campaigns" />

* `GET /exports/campaigns` supports `status`, `agent_id`, `ids`, `date_from`, and `date_to`.

```bash theme={null}
curl "https://api.truedy.ai/api/public/v1/exports/calls?date_from=2026-08-01" \
  -H "Authorization: Bearer $TRUEDY_API_KEY" \
  -o calls.csv
```

```bash theme={null}
curl "https://api.truedy.ai/api/public/v1/exports/campaigns?status=completed&date_from=2026-08-01&date_to=2026-08-31" \
  -H "Authorization: Bearer $TRUEDY_API_KEY" \
  -o campaigns.csv
```

Use comma-separated IDs for an exact subset, for example `ids=CALL_ID_1,CALL_ID_2`. Dates are inclusive ISO dates (`YYYY-MM-DD`). A successful response has `Content-Type: text/csv`; `401` means the API key is missing or invalid, and `422` means a filter value is invalid.
