POST /contacts/imports
Import up to 50,000 contacts from CSV text or a list. The import runs in the background: check it with GET /contacts/imports/:id (or list them with GET /contacts/imports), or listen for contact.import.completed. Columns other than email, first_name, last_name and unsubscribed become contact properties.
| Field | Type | Description | |
|---|---|---|---|
csv | string | CSV text with a header row and an email column. Provide csv or contacts. | |
contacts | object[] | { email, first_name, last_name, unsubscribed, properties } objects, or plain emails. | |
columns | object | Maps CSV headers to fields, e.g. { "E-mail": "email", "Company": "property:company", "Notes": null }. | |
segment_ids | string[] | Add every imported contact to these segments. | |
update_existing | boolean | Update names and properties of contacts that already exist. false leaves them as they are. |