Merge companies
POST /v2/companies/merge
Parameters
Header parameters
apps/rest-api/src/shared/idempotency.ts for the full contract. Missing → 400 BadRequest; same key + different body → 409 Conflict.Request body
Content-Type: application/json
Example
{
"target_id": "00000000-0000-0000-0000-000000000000",
"source_ids": [
"00000000-0000-0000-0000-000000000000"
]
}
Responses
200 — Successful response
Content-Type: application/json
"upload", "auto", "dismissed"Example
{
"data": {
"company": {
"id": "00000000-0000-0000-0000-000000000000",
"user_id": "string",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"assignee_id": "string",
"name": "string",
"description": "string",
"linkedin_description": "string",
"logo_url": "string",
"logo_source": "upload",
"logo_source_domain": "string",
"website_url": "string",
"linkedin_slug": "string",
"facebook_slug": "string",
"x_slug": "string",
"instagram_slug": "string",
"headquarters_location": "string",
"country_code": "string",
"email": "string",
"phone_number": "string",
"arr_estimate": 0,
"number_of_employees": 0,
"linkedin_data": {
"industry": "string",
"company_type": "string"
},
"ignore_merge": false,
"name_is_placeholder": false,
"archived_at": "2026-11-13T08:29:48.848Z",
"created_at": "2026-11-13T08:29:48.848Z",
"updated_at": "2026-11-13T08:29:48.848Z",
"companies_custom_fields": [
{
"custom_field_id": "00000000-0000-0000-0000-000000000000",
"text_value": "string",
"array_value": [
"string"
],
"date_value": "2026-11-13T08:29:48.848Z",
"member_user_id": "string",
"number_value": 0,
"boolean_value": false
}
],
"companies_custom_fields_contacts": [
{
"custom_field_id": "00000000-0000-0000-0000-000000000000",
"linked_contact_id": "00000000-0000-0000-0000-000000000000"
}
],
"companies_custom_fields_companies": [
{
"custom_field_id": "00000000-0000-0000-0000-000000000000",
"linked_company_id": "00000000-0000-0000-0000-000000000000"
}
],
"tag_ids": [
"00000000-0000-0000-0000-000000000000"
]
},
"merge_log_id": "00000000-0000-0000-0000-000000000000"
}
}
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/merge \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header "Idempotency-Key: $(uuidgen 2>/dev/null || python3 -c 'import uuid;print(uuid.uuid4())')" \
--header 'Content-Type: application/json' \
--data '{
"target_id": "00000000-0000-0000-0000-000000000000",
"source_ids": [
"00000000-0000-0000-0000-000000000000"
]
}'
fetch('https://api.prod.getdex.com/v2/companies/merge', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json'
},
body: JSON.stringify({
target_id: '00000000-0000-0000-0000-000000000000',
source_ids: ['00000000-0000-0000-0000-000000000000']
})
})
import uuid
requests.post(
"https://api.prod.getdex.com/v2/companies/merge",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Idempotency-Key": str(uuid.uuid4()),
"Content-Type": "application/json"
},
json={
"target_id": "00000000-0000-0000-0000-000000000000",
"source_ids": [
"00000000-0000-0000-0000-000000000000"
]
}
)
Set one custom field on companies in bulk
Write one value (`custom_field_id` and exactly one value key) to up to 100 companies (`company_ids`) or one page of a frozen selection. A selection page is `{ selection_id, offset, limit? }` from `POS
Dismiss a possible duplicate
Mark a pair "not a duplicate" so it stops being suggested, including when enrichment finds it again. The body is `{ company_ids: [idA, idB] }`, in either order; two equal ids are 400 `validation_error

