Export companies as CSV
POST /v2/companies/export
Request body
Content-Type: application/json
"contains", "not_contains", "eq""contains", "not_contains""contains", "not_contains", "eq""eq", "gte", "lte""in", "not_in""in", "not_in""in", "not_in""in", "not_in""any", "all", "none""contains", "eq", "in", "not_in", "present", "absent", "gte", "lte"POST /v2/companies/selections.Example
{
"company_ids": [
"00000000-0000-0000-0000-000000000000"
],
"where": {
"name": {
"operator": "contains",
"value": "string"
},
"search": "string"
}
}
Responses
200 — The CSV file, UTF-8 with a byte-order mark and CRLF line endings, streamed as it is written.
Content-Type: text/csv
Example
"string"
400 — Request body failed validation.
Content-Type: application/json
401 — Missing or invalid API key.
Content-Type: application/json
403 — Valid key, insufficient permission.
Content-Type: application/json
404 — Resource does not exist.
Content-Type: application/json
409 — Request conflicts with the current state of the resource.
Content-Type: application/json
429 — Rate limit exceeded.
Content-Type: application/json
500 — Unexpected server error.
Content-Type: application/json
Code samples
curl https://api.prod.getdex.com/v2/companies/export \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"company_ids": [
"00000000-0000-0000-0000-000000000000"
],
"where": {
"name": {
"operator": "contains",
"value": "string"
},
"search": "string"
}
}'
fetch('https://api.prod.getdex.com/v2/companies/export', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
company_ids: ['00000000-0000-0000-0000-000000000000'],
where: {
name: {
operator: 'contains',
value: 'string'
},
search: 'string'
}
})
})
requests.post(
"https://api.prod.getdex.com/v2/companies/export",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"company_ids": [
"00000000-0000-0000-0000-000000000000"
],
"where": {
"name": {
"operator": "contains",
"value": "string"
},
"search": "string"
}
}
)
Freeze a company selection
Resolve `where` (the `POST /v2/companies/filter` filter) and optional `view_id`, less `excluded_ids` (up to 10,000), once, and store the ids for 1 hour under a token bound to the caller, the workspace
Plan a companies CSV import
Classify up to 500 CSV rows against the workspace's companies without writing anything. Each row carries raw trimmed cells (`fields`, with blank cells omitted), an optional `id`, `owner_email`, `tags`

