Add a company role
POST /v2/company-roles/
Request body
Content-Type: application/json
"add", "change_employer", "new_period""current", "past", "unknown"Example
{
"contact_id": "00000000-0000-0000-0000-000000000000",
"role": {
"mode": "add",
"company_id": "00000000-0000-0000-0000-000000000000",
"status": "current"
}
}
Responses
201 — Created
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.487Z",
"updated_at": "2026-10-23T10:31:51.487Z",
"company": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"logo_url": "string",
"archived_at": "2026-10-23T10:31:51.487Z"
}
}
],
"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/ \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"contact_id": "00000000-0000-0000-0000-000000000000",
"role": {
"mode": "add",
"company_id": "00000000-0000-0000-0000-000000000000",
"status": "current"
}
}'
fetch('https://api.prod.getdex.com/v2/company-roles/', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
contact_id: '00000000-0000-0000-0000-000000000000',
role: {
mode: 'add',
company_id: '00000000-0000-0000-0000-000000000000',
status: 'current'
}
})
})
requests.post(
"https://api.prod.getdex.com/v2/company-roles/",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"contact_id": "00000000-0000-0000-0000-000000000000",
"role": {
"mode": "add",
"company_id": "00000000-0000-0000-0000-000000000000",
"status": "current"
}
}
)
List a contact's company roles
List the roles of one workspace contact (`contact_id`) at companies, archived companies included. 404 `record_not_found` when the contact is not in the workspace. Workspace-only: send the `X-Dex-Works
Set a contact's current company
Set a contact's current company, as the contact page's picker does. `company_id` null ends every current role (end date unknown). A company the contact already has a current role at makes that role pr

