Add or update contact
upsert_contactCreate or update a contact in an EmailOctopus list by email, set custom fields, add or remove tags, and assign subscription status.
Instructions
Create a contact, or update it if the email already exists in the list. Set custom fields by their tag (e.g. FirstName), add/remove tags, and set status.
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": {
"listId": "<listId>",
"email_address": "<email_address>"
},
"name": "upsert_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Custom field values keyed by field tag, e.g. {"FirstName": "Dana"} | |
| listId | Yes | List ID (from list_lists) | |
| status | No | Defaults to the list's opt-in setting for new contacts | |
| add_tags | No | ||
| remove_tags | No | ||
| email_address | Yes |