Bulk Operations
Best practices for importing and updating data at scale
Batch sizing
The bulk endpoints accept an array of records under a data key. There's no
fixed cap on the number of records per request: the practical ceiling is the
request body size, so very large payloads are rejected. Because batches are
atomic (see below), the real question when picking a batch size is blast
radius, not a maximum:
| Scenario | Batch size | Why |
|---|---|---|
| Clean, validated data | 100 | Fewer round trips |
| First import, some unknowns | 25 | Limits blast radius |
| Retrying failures | 1 | Isolate the bad record |
Batches are atomic: one bad record fails the entire batch, so a single duplicate email takes down every other record in the same request. The larger the batch, the more work a single bad record rolls back.
Import order
Always import in this order so foreign keys resolve:
- Companies: no dependencies
- People: can reference
company_id - Deals: can reference
company_id - Associations: link people to deals
- Transcripts: link to meetings and people
Skip workflows and agents during an import
By default, every record you create or update can start the workspace's
workflows and agents, the same as a change made in the app. For a backfill or
a one-time import that is usually noise. Set meta.triggers to false and the
write starts no workflows and no agents:
curl -X POST \
-H "Authorization: api-key $KEY" \
-H "Content-Type: application/json" \
-d '{ "data": [ ... ], "meta": { "triggers": false } }' \
"https://api.clarify.ai/v1/workspaces/$WS/objects/person/records/bulk"It works on record creates and updates, single or bulk. The records still save as normal, and:
- Runs already in progress still stop when the write meets one of their exit conditions, such as a record leaving a list.
- Enrichment and AI fields still fill unless you also set
meta.autofilltofalse. - It covers only the changes the request itself makes. Changes that follow later can still start workflows and agents: a record joining a dynamic list when the list refreshes, or an enrichment or AI field filling in a value.
Add silent=true to the query string as well to skip in-app and Slack
notifications.
Rate limiting
The API allows 3,000 requests per minute, per workspace, per endpoint. Bulk endpoints help you stay under it: one request with many records counts as a single request. We recommend:
- A short delay between batches to smooth out bursts
- Back off on
429responses, honoring theRetry-Afterheader
See rate limits for the response headers and a backoff example.
Common errors
| Status | Meaning | Fix |
|---|---|---|
| 400 | Duplicate record (unique-field collision) | Use match_on for upsert, or pre-match and use PATCH |
| 404 | ID not found (bulk PATCH) | Verify record IDs exist |
| 422 | Validation error (id in POST, enum) | Fix payload |
| 500 | Unexpected server error | Retry with backoff; contact support if it persists |