Import contacts

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.

FieldTypeDescription
csvstringCSV text with a header row and an email column. Provide csv or contacts.
contactsobject[]{ email, first_name, last_name, unsubscribed, properties } objects, or plain emails.
columnsobjectMaps CSV headers to fields, e.g. { "E-mail": "email", "Company": "property:company", "Notes": null }.
segment_idsstring[]Add every imported contact to these segments.
update_existingbooleanUpdate names and properties of contacts that already exist. false leaves them as they are.

More guides