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

# Create a data export

> Starts building a zip of CSV files. Returns `202` with `status: pending`. Poll `GET /data-exports/{id}` until `status` is `completed`, then download `download_url`. Emits `data_export.completed` when the file is ready. The API never emails an export.

## Getting the file

1. Create the export. The response has `status: "pending"`.
2. Poll `GET /data-exports/{id}` every few seconds while `status` is `pending`.
3. When `status` is `completed`, download `download_url` before `download_url_expires_at`. If the link has expired, fetch the export again for a new one.

`failed` is final. `failure_reason` says why.

> [!NOTE]
>
> The v2 API never emails an export. Collect it from `download_url`.

## Filtering by stage

The `candidates` and `interviews` filters take `stage`, a list of stage categories, and `stage_ids`, a list of your company's stage ids. An application matches when its stage is in one of the categories or is one of the stages. An id that isn't one of your stages matches nothing.

## Filtering by date

Each date filter, such as `created_date` or `completed_date`, takes at most one value: `last_5_days`, `last_10_days`, `last_30_days`, `all_time`, or `custom:YYYY-MM-DD:YYYY-MM-DD` with the first date on or before the second. Any other value returns `400` `parameter_invalid` naming the filter, for example `filters.jobs.created_date[0]`.


## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.alex.com/llms.txt).


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