Set a contact's current company
POST /v2/company-roles/set-current-company
Request body
Content-Type: application/json
Example
{
"contact_id": "00000000-0000-0000-0000-000000000000",
"company_id": "00000000-0000-0000-0000-000000000000"
}
Responses
200 — Successful response
Content-Type: application/json
"current", "past", "unknown""manual", "add_people", "csv_import", "auto_link", "copy", "mcp", "extension", "migration", "text_conversion", "merge"Example
{
"data": {
"roles": [
{
"id": "00000000-0000-0000-0000-000000000000",
"contact_id": "00000000-0000-0000-0000-000000000000",
"company_id": "00000000-0000-0000-0000-000000000000",
"user_id": "string",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"title": "string",
"status": "current",
"is_primary": false,
"start_year": 0,
"start_month": 0,
"start_day": 0,
"end_year": 0,
"end_month": 0,
"end_day": 0,
"provenance": "manual",
"created_at": "2026-10-23T10:31:51.488Z",
"updated_at": "2026-10-23T10:31:51.488Z",
"company": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"logo_url": "string",
"archived_at": "2026-10-23T10:31:51.488Z"
}
}
],
"contact": {
"id": "00000000-0000-0000-0000-000000000000",
"company": "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/company-roles/set-current-company \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"contact_id": "00000000-0000-0000-0000-000000000000",
"company_id": "00000000-0000-0000-0000-000000000000"
}'
fetch('https://api.prod.getdex.com/v2/company-roles/set-current-company', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
contact_id: '00000000-0000-0000-0000-000000000000',
company_id: '00000000-0000-0000-0000-000000000000'
})
})
requests.post(
"https://api.prod.getdex.com/v2/company-roles/set-current-company",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"contact_id": "00000000-0000-0000-0000-000000000000",
"company_id": "00000000-0000-0000-0000-000000000000"
}
)
Add a company role
Add a role for a contact (`contact_id`) at a company. `role.mode`: `add` (a concurrent role; ends nothing), `change_employer` (also ends the contact's other current roles, with the optional `previous_
Correct a company role
Correct a role in place: `company_id`, `title`, `status` and dates. Only the fields sent change and `null` clears; this never records new history (end the role, or create one with `new_period`, for th

