Add or update contacts
upsert_contactsAdd or update up to 1000 contacts in one call, matched by email: the import tool. All or nothing: one bad contact refuses the batch and the error names its index. For an existing contact a null field keeps what is stored, tags are added (never removed) and attributes are set. Contacts are enrolled in every live campaign whose audience they match. Adding a tag such as activated here takes the contact out of campaigns whose audience excludes that tag.
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": {
"project_id": "<project_id>",
"contacts": "<contacts>"
},
"name": "upsert_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contacts | Yes | ||
| project_id | Yes |