Freeze a company selection
POST /v2/companies/selections
Request body
Content-Type: application/json
"archive", "restore", "delete", "tag", "view", "custom_field", "export""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"Example
{
"action": "archive",
"where": {
"name": {
"operator": "contains",
"value": "string"
},
"search": "string"
}
}
Responses
200 — Successful response
Content-Type: application/json
POST /v2/companies/selections.Example
{
"data": {
"selection_id": "string",
"count": 0
}
}
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/selections \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"action": "archive",
"where": {
"name": {
"operator": "contains",
"value": "string"
},
"search": "string"
}
}'
fetch('https://api.prod.getdex.com/v2/companies/selections', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
action: 'archive',
where: {
name: {
operator: 'contains',
value: 'string'
},
search: 'string'
}
})
})
requests.post(
"https://api.prod.getdex.com/v2/companies/selections",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"action": "archive",
"where": {
"name": {
"operator": "contains",
"value": "string"
},
"search": "string"
}
}
)
Filter companies
Filter and sort the workspace's companies, one keyset page at a time, each with its stats. `where` ANDs its clauses: `name`, `description` and `headquarters_location` (`contains`, `not_contains`, or `
Export companies as CSV
Download the workspace's companies as one CSV file, ordered by name, then id. The body takes exactly one of three shapes: `{ company_ids }` (1-50,000 ids; archived companies included, ids outside the

