Skip to main content
POST
cURL

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.
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].

Authorizations

X-API-Key
string
header
required

Your company's API key, from Settings → Integrations in Alex. The earlier API's api-key header is accepted too; if you send both headers they must carry the same key.

Headers

Idempotency-Key
string

A unique value, 1 to 255 characters, that makes the request safe to retry. See Idempotency.

Required string length: 1 - 255

Body

application/json
entities
enum<string>[]
required

The datasets to export. Each becomes a CSV file in the zip.

Minimum array length: 1

A dataset to include in the export.

Available options:
jobs,
candidates,
interviews,
activity,
tasks,
unanswered_questions,
interview_qa,
analytics
filters
object

Filters for each dataset. A dataset you leave out is exported unfiltered, except that activity needs created_date and interview_qa needs job_ids. Empty arrays mean no restriction.

Response

Accepted. The export is being built.

object
string
required

Always "data_export".

Allowed value: "data_export"
id
string
required
Example:

"0f9e8d7c-6b5a-4c3d-2e1f-0a9b8c7d6e5f"

status
enum<string>
required

pending while the export is being built, completed once download_url is ready, failed if it stopped (final), and expired once expires_at has passed. Poll only while pending.

Available options:
pending,
completed,
failed,
expired
entities
enum<string>[]
required

A dataset to include in the export.

Available options:
jobs,
candidates,
interviews,
activity,
tasks,
unanswered_questions,
interview_qa,
analytics
created_at
string<date-time>
required

When the export was requested.

expires_at
string<date-time>
required

When the export stops being downloadable.

download_url
string<uri> | null
required

A link to the zip of CSV files. Set only when status is completed. It is signed again on every read and works until download_url_expires_at.

download_url_expires_at
string<date-time> | null
required

When download_url stops working. Fetch the export again for a new link.

failure_reason
string | null
required

Why the export failed. Set only when status is failed.