Import contacts from CSV
import_contactsImport contacts from CSV text and start the import. Detects the email, first name and last name columns from the header. Returns {import, mapping_used}; the import runs in the background. Errors: empty_csv, invalid_csv, csv_too_large, too_many_rows, unknown_column, not_found (list). Next: get_import with import.id until import.status is done; rows that failed or were skipped are in errors.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"csv": "<csv>"
},
"name": "import_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | The whole CSV file as text. First row is the header. Up to 25 MB. | |
| tags | No | Tags to add to every imported contact. | |
| filename | No | File name for the record, such as "customers.csv". | |
| list_ids | No | List ids (lst_...) every imported contact is added to. | |
| email_column | No | Header of the email column. Leave out to detect it ("email", "e-mail", ...). | |
| update_existing | No | Merge into contacts that already exist instead of skipping them. Default false. |