import_contacts_batch
Bulk import up to 10,000 contacts into an audience. Uses email as the unique key to either update existing contacts or skip duplicates, resolving conflicts automatically.
Instructions
Bulk-import contacts from a JSON array (POST /audiences/:id/contacts/batch). Upserts by email; max 10,000 per call. Each contact: { email, first_name?, last_name?, unsubscribed?, properties? }.
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": {
"audience_id": "<audience_id>",
"contacts": "<contacts>"
},
"name": "import_contacts_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contacts | Yes | Array of contact objects (max 10,000). | |
| audience_id | Yes | The audience to import into. | |
| on_conflict | No | How to resolve an email that already exists. Default 'upsert'. |