Import or migrate contacts
Getting contacts into Orbit is the first real task of onboarding, and four different surfaces can do it. This guide is the decision walkthrough: it tells you which surface to pick for which source, then walks the first-run workflow once — file shape, preview, import, consent mapping, dedupe, verify — so the links it hands off to are ordered stops, not a pile of options.1. Pick the surface: decision table
Four surfaces move contact-shaped data into Orbit. Answer two questions — where does the data live, and what exactly does a row carry? — and the table resolves to one answer.
The dashboard has two adjacent routes that both matter here, and the guide below uses them deliberately:
- Audience → Import — the CSV wizard itself (upload, map, preview, run). One wizard pass per file.
- Audience → Imports — the import-history page: every past job with status, per-job counters, the skipped-rows download, and a resume link into in-flight jobs. When you need “which import landed and what did it skip,” this is the answer.
2. Bulk CSV import to a contact list
The full endpoint-by-endpoint walkthrough is import and reconcile contacts. The file-shape decisions are the load-bearing ones, and they are all settled before upload:- One address per row. Each row needs a
phoneor anemail; rows with neither are skipped. Rows you do not fix at export become the skipped-rows CSV after the run. - Phone format. E.164 (
+14155552671) is preferred. The server tolerates whitespace and punctuation, and PBX-extension suffixes (x1234). Rows it cannot parse are skipped rather than guessed. - Opt-in columns. Consent is a property of the channel on the row, not of the row itself — decide before import which file column maps to which consent signal. The mapping makes send-time suppression deterministic instead of retroactive (see step 4).
- Custom field headers. A header that names a custom field key maps into that field. Define the field first: values are typed and validated on write, and a row that fails the validator is skipped (see step 5).
skip = leave the existing record; merge = update fields from the row) is what decides whether re-import is a no-op or a refresh. Duplicates on phone anywhere (between the file and the tenant, or inside the file) are surfaced by the preview endpoint before anything is written, so a re-run never silently forks two contacts for one person.
3. The API path
The dashboard wizard and the API drive the same job shape. This section runs one 200-row CSV through the full journey — preview, enqueue, poll, skipped rows, rollback — with executable samples in six languages. The request bodies show the first three rows of the file, including the two rows the preview will flag (one unparseable phone, one in-file duplicate); the responses reflect the full 200-row file. Send your rows in the same shape. The row-shape and retry contract is import and reconcile contacts; the endpoint-by-endpoint schema is the Contacts API reference.Step 1 — Preview the file (dry run)
POST /api/v1/contacts/imports/preview validates row shape, counts invalid rows, and reports duplicates — inside the file and against contacts already in Orbit — without writing anything:
rows is your parsed CSV — the same objects the cURL body carries. Row 2’s phone is not E.164-parseable and row 3 repeats row 1’s phone, so the preview flags both before anything is written:
rows_invalid counts rows the job will skip, in_csv_dup_count counts addresses repeated within the file, and existing_db_match_count counts rows matching contacts already in Orbit — the rows your merge strategy (step 2) will act on. Fix the export and re-preview until the counters read as expected.
Step 2 — Enqueue the import
Post the same rows toPOST /api/v1/contacts/imports with a merge strategy and the original file name. The endpoint accepts up to 1,000,000 rows and answers 202 with a job_id:
202
merge updates an existing contact from the row; skip (the default) leaves it untouched. Only contacts the job creates count as its output — that is exactly the set rollback (step 5) deletes. A 503 here means the import queue is unavailable: retry after a few seconds, or fall back to the synchronous POST /api/v1/contacts/bulk for files under 10,000 rows.
Step 3 — Poll until status leaves pending / processing
GET /api/v1/contacts/imports/{id} returns a progress snapshot. This is the single-segment /imports/{id} route — the /import-jobs/{id} route only serves the skipped-rows CSV (step 4):
status is one of pending, processing, completed, failed, or cancelled. Poll every few seconds; there is no push channel for these jobs.
Step 4 — Download the skipped rows
When the job leavespending / processing with failed_rows > 0, fetch the row-error report with GET /api/v1/contacts/import-jobs/{id}/skipped.csv:
row_index, a human-readable reason, then one column per original header, so each flagged row can be located in the source file:
Step 5 — Roll back a bad import (24-hour window)
POST /api/v1/contacts/imports/{id}/rollback hard-deletes every contact the job created — together with list and segment memberships, scores, engagement profiles, and consent records — in one transaction:
409 means the rows are ordinary contact data (delete via POST /api/v1/contacts/bulk-delete instead). And rollback touches only contacts the job created; merge rows that updated existing records leave those records in place. To stop a job that is still running, use POST /api/v1/contacts/imports/{id}/cancel instead — cancel is best-effort, and rows already inserted stay until you roll them back.
4. Opt-in and suppression on import
Importing an address is not consent, and an import job is not a suppression signal. Suppression and opt-out handling is enforced at send time, not at import time — so a row that lands cleanly still cannot receive a marketing send if it is opted out, and a row that imports with an opt-in marker still cannot bypass an existing opt-out. Decide the opt-in mapping in the file shape (step 2), and treat the optics pair as a control:- Rows whose opt-in column says “no” should land suppressed via an opt-out list before the first send — not merely tagged.
- Existing opted-out contacts must stay opted out across a re-import; choose
mergeon re-import only if the file’s consent column actually carries new, better-granted consent. - The import rollback cascade (step 3) removes consent records along with created contacts, so rolling back a bad import never leaves orphaned opt-in flags.
5. Map custom fields without inventing headers
Custom-field mapping follows one rule that saves most import errors: the header is a field key, the field was defined first, and values are validated on write.- Naming. Map the column header directly to the field key — no prefix, no Casing change. A header that does not match a defined key is either plain contact data (ignored on write) or a mistake that only shows up as skipped rows.
- Type coercion. CSV cells are strings; the validator coerces them into the field’s declared type on write.
datefields reject unparseable dates,numberfields reject non-numeric text, andbooleanexpects the declared truthy set. - Common errors. A header that collides with another mapped header (duplicate), a column that maps to a required field but is missing from the file (violates the required-field constant), and a row whose value fails the type check — each lands in the skipped-rows report with its own
reasonstring.
6. CDP profile import
Reach for the CDP path when a row is more than one address — when it carries an identity (userId, an email and a phone together) plus traits and events, so identity resolution decides which existing profile it merges onto.
- Identity merge on input. The CDP ingest surfaces (
POST /api/v1/cdp/file-ingestfor CSV/JSON batch files, the HMAC SDK surface for streams) run each row through the same identity rules the identity resolution model defines: an incominguserIddeterministically merges onto one contact; the survivorship policy decides which value wins when two profiles collide. - Re-import does not duplicate. Because ingest keys on identity, re-importing the same file merges onto the profile it already created — it never forks a second identity. The identity rules and survivorship policy you author in the Integrations → CDP tabs are documented in CDP data catalog and identity rules; preview the merge effects with simulation before any rule change (see that guide).
- When not to take this path. If all you have is a phone and a list of tags, the plain contact import is simpler — the CDP path pays for itself only when identity resolution is the point.
7. Migration jobs: moving off another CPaaS
When the source is one of the five supported platforms — Twilio, Telnyx, Klaviyo, MessageBird, Front — the migration wizard is the correct surface and a plain CSV import is the wrong one: the wizard validates the credential, lists the entities the source exposes (phone numbers, templates, contacts, configuration objects), and dry-runs before writing anything. Re-shaping a provider export into CSV loses the non-contact objects and adds a manual step.- The operational lifecycle (connect → preview → run → reconcile, cancel, 24-hour rollback) is run a platform migration end-to-end.
- The concept page explains the state machine, the per-source entity kinds, and credential handling — import and migration lifecycle.
- Monitor, cancel, and rollback outside the wizard from Settings → Migrations — see migration jobs operations.
- The per-source concept mapping (what your Twilio numbers, Klaviyo lists, etc. become in Orbit) is migrate from Twilio and migrate from an enterprise CCaaS.
8. Post-import: preview the net reachable audience
The journey’s last stop: once the import (step 3) settles, use this audience preview to check who is actually reachable before the first send. An imported audience is not a reachability number — suppressed, opted-out, and unreachable contacts count toward the imported total but not toward send-able recipients. Dry-run the audience:9. Troubleshooting
See also
- Import and reconcile contacts — the CSV endpoint walkthrough this guide routes to
- Run a platform migration end-to-end — the connector path, chosen by the table above
- Import and migration lifecycle — the concept that explains the migration state machine
- Custom fields — define import targets before mapping
- Opt-out lists — where imported opt-outs land
- CDP data catalog and identity rules — author the merge policy CDP ingest obeys
- Campaign end-to-end — launch once the preview count is clean