ClarifyAPI
Guides

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:

ScenarioBatch sizeWhy
Clean, validated data100Fewer round trips
First import, some unknowns25Limits blast radius
Retrying failures1Isolate 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:

  1. Companies: no dependencies
  2. People: can reference company_id
  3. Deals: can reference company_id
  4. Associations: link people to deals
  5. 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.autofill to false.
  • 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 429 responses, honoring the Retry-After header

See rate limits for the response headers and a backoff example.

Common errors

StatusMeaningFix
400Duplicate record (unique-field collision)Use match_on for upsert, or pre-match and use PATCH
404ID not found (bulk PATCH)Verify record IDs exist
422Validation error (id in POST, enum)Fix payload
500Unexpected server errorRetry with backoff; contact support if it persists

On this page