cURL
curl -X POST "https://api.alex.com/v2/data-exports" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"entities": [
"candidates",
"interviews"
],
"filters": {
"candidates": {
"created_date": [
"last_30_days"
]
},
"interviews": {
"status": [
"completed"
],
"stage": [
"in_progress"
],
"completed_date": [
"custom:2026-11-01:2026-11-30"
]
}
}
}'import requests
url = "https://api.alex.com/v2/data-exports"
payload = {
"entities": ["candidates", "interviews"],
"filters": {
"candidates": { "created_date": ["last_30_days"] },
"interviews": {
"status": ["completed"],
"stage": ["in_progress"],
"completed_date": ["custom:2026-11-01:2026-11-30"]
}
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entities: ['candidates', 'interviews'],
filters: {
candidates: {created_date: ['last_30_days']},
interviews: {
status: ['completed'],
stage: ['in_progress'],
completed_date: ['custom:2026-11-01:2026-11-30']
}
}
})
};
fetch('https://api.alex.com/v2/data-exports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.alex.com/v2/data-exports",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entities' => [
'candidates',
'interviews'
],
'filters' => [
'candidates' => [
'created_date' => [
'last_30_days'
]
],
'interviews' => [
'status' => [
'completed'
],
'stage' => [
'in_progress'
],
'completed_date' => [
'custom:2026-11-01:2026-11-30'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.alex.com/v2/data-exports"
payload := strings.NewReader("{\n \"entities\": [\n \"candidates\",\n \"interviews\"\n ],\n \"filters\": {\n \"candidates\": {\n \"created_date\": [\n \"last_30_days\"\n ]\n },\n \"interviews\": {\n \"status\": [\n \"completed\"\n ],\n \"stage\": [\n \"in_progress\"\n ],\n \"completed_date\": [\n \"custom:2026-11-01:2026-11-30\"\n ]\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.alex.com/v2/data-exports")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entities\": [\n \"candidates\",\n \"interviews\"\n ],\n \"filters\": {\n \"candidates\": {\n \"created_date\": [\n \"last_30_days\"\n ]\n },\n \"interviews\": {\n \"status\": [\n \"completed\"\n ],\n \"stage\": [\n \"in_progress\"\n ],\n \"completed_date\": [\n \"custom:2026-11-01:2026-11-30\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/data-exports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entities\": [\n \"candidates\",\n \"interviews\"\n ],\n \"filters\": {\n \"candidates\": {\n \"created_date\": [\n \"last_30_days\"\n ]\n },\n \"interviews\": {\n \"status\": [\n \"completed\"\n ],\n \"stage\": [\n \"in_progress\"\n ],\n \"completed_date\": [\n \"custom:2026-11-01:2026-11-30\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "data_export",
"id": "0f9e8d7c-6b5a-4c3d-2e1f-0a9b8c7d6e5f",
"status": "pending",
"entities": [
"candidates",
"interviews"
],
"created_at": "2026-11-30T14:05:12.000Z",
"expires_at": "2026-12-07T14:05:12.000Z",
"download_url": null,
"download_url_expires_at": null,
"failure_reason": null
}Data Exports
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.
POST
/
data-exports
cURL
curl -X POST "https://api.alex.com/v2/data-exports" \
-H "X-API-Key: $ALEX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"entities": [
"candidates",
"interviews"
],
"filters": {
"candidates": {
"created_date": [
"last_30_days"
]
},
"interviews": {
"status": [
"completed"
],
"stage": [
"in_progress"
],
"completed_date": [
"custom:2026-11-01:2026-11-30"
]
}
}
}'import requests
url = "https://api.alex.com/v2/data-exports"
payload = {
"entities": ["candidates", "interviews"],
"filters": {
"candidates": { "created_date": ["last_30_days"] },
"interviews": {
"status": ["completed"],
"stage": ["in_progress"],
"completed_date": ["custom:2026-11-01:2026-11-30"]
}
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entities: ['candidates', 'interviews'],
filters: {
candidates: {created_date: ['last_30_days']},
interviews: {
status: ['completed'],
stage: ['in_progress'],
completed_date: ['custom:2026-11-01:2026-11-30']
}
}
})
};
fetch('https://api.alex.com/v2/data-exports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.alex.com/v2/data-exports",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entities' => [
'candidates',
'interviews'
],
'filters' => [
'candidates' => [
'created_date' => [
'last_30_days'
]
],
'interviews' => [
'status' => [
'completed'
],
'stage' => [
'in_progress'
],
'completed_date' => [
'custom:2026-11-01:2026-11-30'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.alex.com/v2/data-exports"
payload := strings.NewReader("{\n \"entities\": [\n \"candidates\",\n \"interviews\"\n ],\n \"filters\": {\n \"candidates\": {\n \"created_date\": [\n \"last_30_days\"\n ]\n },\n \"interviews\": {\n \"status\": [\n \"completed\"\n ],\n \"stage\": [\n \"in_progress\"\n ],\n \"completed_date\": [\n \"custom:2026-11-01:2026-11-30\"\n ]\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.alex.com/v2/data-exports")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"entities\": [\n \"candidates\",\n \"interviews\"\n ],\n \"filters\": {\n \"candidates\": {\n \"created_date\": [\n \"last_30_days\"\n ]\n },\n \"interviews\": {\n \"status\": [\n \"completed\"\n ],\n \"stage\": [\n \"in_progress\"\n ],\n \"completed_date\": [\n \"custom:2026-11-01:2026-11-30\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alex.com/v2/data-exports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entities\": [\n \"candidates\",\n \"interviews\"\n ],\n \"filters\": {\n \"candidates\": {\n \"created_date\": [\n \"last_30_days\"\n ]\n },\n \"interviews\": {\n \"status\": [\n \"completed\"\n ],\n \"stage\": [\n \"in_progress\"\n ],\n \"completed_date\": [\n \"custom:2026-11-01:2026-11-30\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "data_export",
"id": "0f9e8d7c-6b5a-4c3d-2e1f-0a9b8c7d6e5f",
"status": "pending",
"entities": [
"candidates",
"interviews"
],
"created_at": "2026-11-30T14:05:12.000Z",
"expires_at": "2026-12-07T14:05:12.000Z",
"download_url": null,
"download_url_expires_at": null,
"failure_reason": null
}Getting the file
- Create the export. The response has
status: "pending". - Poll
GET /data-exports/{id}every few seconds whilestatusispending. - When
statusiscompleted, downloaddownload_urlbeforedownload_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
Thecandidates 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 ascreated_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
apiKeyAuthbearerAuth
Headers
A unique value, 1 to 255 characters, that makes the request safe to retry. See Idempotency.
Required string length:
1 - 255Body
application/json
Response
Accepted. The export is being built.