Import contacts from CSV
Adds or updates contacts from CSV text, with the same rules as the dashboard import and POST /api/contacts/add/{locationId}. A new contact, or a field that gets a value, can start a campaign whose trigger matches.
The header row is matched by name, so Phone, phone number and Mobile all find the number. A single Name column is split at the first space into first and last name. A column whose header matches one of your custom fields is stored as that field.
A number already in the sub-account updates that contact instead of adding it twice, and a blank cell never erases a stored value.
The summary counts created and updated contacts, and lists every skipped row with its line number and reason. suppressedFromHistory counts the rows that came in already on do-not-call.
Cookie-auth callers must send the x-csrf-token header.
Required API key scope: contacts:write.
Authorizations
Query Parameters
Body
The file contents, as text.
