Bulk-update contacts
POST /v2/contacts/batch-update
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
"linkedin_sync", "facebook_import", "cal_ingest", "email_ingest", "web_import", "csv_import", "whatsapp_sync", "imessage_sync", "phone_calls_sync", "mobile", "mobile_import", "instagram_sync", "oauth_interaction", "granola_sync""set", "delete""GOOGLE", "OFFICE365""GOOGLE", "OFFICE365""input"Example
{
"updates": [
{
"contactId": "00000000-0000-0000-0000-000000000000",
"data": {
"full_name": "string",
"first_name": "string"
}
}
]
}
Responses
200 — Successful response
Content-Type: application/json
Example
{
"data": {
"affected": 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/contacts/batch-update \
--request POST \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"updates": [
{
"contactId": "00000000-0000-0000-0000-000000000000",
"data": {
"full_name": "string",
"first_name": "string"
}
}
]
}'
fetch('https://api.prod.getdex.com/v2/contacts/batch-update', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
updates: [
{
contactId: '00000000-0000-0000-0000-000000000000',
data: {
full_name: 'string',
first_name: 'string'
}
}
]
})
})
requests.post(
"https://api.prod.getdex.com/v2/contacts/batch-update",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"updates": [
{
"contactId": "00000000-0000-0000-0000-000000000000",
"data": {
"full_name": "string",
"first_name": "string"
}
}
]
}
)
Bulk-create contacts
Create multiple contacts in a single request. **Requires `Idempotency-Key`.** Returns the created contacts as `{ data: { contacts: [...] }, ... }` with status 201, alongside a `data.batch` partial-suc
Bulk-delete contacts
Permanently delete multiple contacts in a single request. Returns `{ data: { affected, ids } }` where `ids` is the array of deleted contact IDs (echoed from the request body). `Idempotency-Key` is opt

