Contacts and companies
Start an import
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the contacts:write ability
Path parameters
importstringrequiredId of the import, starting with imp_, such as imp_01jx2m8k4t. Find it with GET /imports.
Body
application/jsonmappingobject[] | nullrequiredA list of {column, field}: column is the index in the header from 0; field is email, name, external_id, phone, company_name, company_domain or tags for contacts, name, domain, external_id or tags for companies, or attribute.<key>. For the real run, send the same mapping as the dry run.
Maximum items: 200
Show child attributesHide child attributes
columnintegerrequiredWhich column of the uploaded file this is, counted in the header from 0, so the first column is 0. It must be a column the file has, such as 2.
Format: int64 · Minimum: 0
fieldstringrequiredThe field the column fills: email, name, external_id, phone, company_name, company_domain or tags for contacts; name, domain, external_id or tags for companies; or attribute.<key> for a custom attribute, such as attribute.plan.
Maximum length: 120
modestringrequiredWhat happens to records already there: update changes them, skip leaves them alone. Such as "skip".
Available options:updateskip
Response 202
AccepteddataobjectrequiredShow child attributesHide child attributes
columnsstring[] | nullrequiredThe file's header row: the column names in order.
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
created_countintegerrequiredHow many records the import has created so far.
Format: int32
errorstring | nullrequiredWhy the whole import failed, in words. Null unless its status is failed.
error_report_urlstring | nullrequiredAPI path of the report listing every failed row, such as /api/v1/imports/imp_.../errors. Null when no row failed.
errorsobject[] | nullrequiredThe first failed rows, at most 20, each with its line in the file and why it failed.
Show child attributesHide child attributes
messagestringrequiredWhy the row could not be imported, in plain words.
rowintegerrequiredLine of the file the failed row is on.
Format: int64
failed_countintegerrequiredHow many rows could not be imported so far.
Format: int32
file_expired_atstring | nullrequiredWhen the uploaded file was deleted, 30 days after the import finished. Null while the file is still kept.
Format: date-time
file_namestringrequiredName of the uploaded file, such as customers.csv.
finished_atstring | nullrequiredWhen the import completed or failed. Null until then.
Format: date-time
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
kindstringrequiredWhat the file holds: contacts (customers) or companies.
mappingobject[] | nullrequiredThe chosen mapping: which column fills which field. Empty until the import is started.
Show child attributesHide child attributes
columnintegerrequiredThe position of the file's column, counted from 0.
Format: int64
fieldstringrequiredThe field the column fills: email, name, external_id, phone, domain, company_name, company_domain, tags, or attribute.<key> for a custom attribute.
modestringrequiredWhat happens to a row matching an existing record: update changes that record, skip leaves it alone.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
previewstring[][] | nullrequiredThe first 5 data rows of the file, each a list of cell texts in column order.
processed_rowsintegerrequiredHow many rows have been handled so far; compare with row_count for progress.
Format: int32
rollbackobjectrequiredShow child attributesHide child attributes
errorstring | nullrequiredWhy undoing the import failed, in words. Null unless the undo's status is failed.
finished_atstring | nullrequiredWhen the undo completed or failed. Null until then.
Format: date-time
keptintegerrequiredHow many records the undo left as they are, because they changed or were used since the import.
Format: int32
kept_recordsobject[] | nullrequiredThe first kept records, at most 100, each with its id, name and why it was kept.
Show child attributesHide child attributes
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
namestringrequiredName of the record the undo left as it is.
reasonstringrequiredWhy the record was kept, such as Changed since the import. or Has had a conversation since the import.
processedintegerrequiredHow many records the undo has handled so far; compare with total for progress.
Format: int32
removedintegerrequiredHow many records the undo deleted because the import had created them.
Format: int32
requested_atstring | nullrequiredWhen undoing the import was asked for.
Format: date-time
revertedintegerrequiredHow many records the undo put back to what they were before the import.
Format: int32
statusstringrequiredWhere undoing the import stands: queued, running, completed or failed.
totalintegerrequiredHow many records the undo has to go through.
Format: int32
rollback_untilstring | nullrequiredThe time until which the import can be undone, 7 days after it finished. Null while it has not finished.
Format: date-time
row_countintegerrequiredHow many data rows the file holds.
Format: int32
skipped_countintegerrequiredHow many rows were left out so far, such as rows matching an existing record in skip mode.
Format: int32
started_atstring | nullrequiredWhen the import began running. Null while it is a draft or queued.
Format: date-time
statusstringrequiredWhere the import stands: draft (uploaded, not started), queued, running, completed or failed.
suggested_mappingobject[] | nullrequiredThe mapping guessed from the file's column names, to confirm or change before starting.
Show child attributesHide child attributes
columnintegerrequiredThe position of the file's column, counted from 0.
Format: int64
fieldstringrequiredThe field the column fills: email, name, external_id, phone, domain, company_name, company_domain, tags, or attribute.<key> for a custom attribute.
updated_countintegerrequiredHow many existing records the import has changed so far.
Format: int32
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.