Upsert Contact
meisa_upsert_contactCreate a contact if one with this email doesn't exist, or update the existing one. This is the safest way to add or sync a contact without worrying about duplicates. Custom fields are merged; tags are additive. Returns the contact and a 'created' boolean indicating whether it was newly created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The contact's email address (used as the unique key). | ||
| source | No | Source of this contact entry. Defaults to 'api'. | api |
| last_name | No | Last name. | |
| tag_names | No | Tags to add (new tags are created). Existing contact tags are preserved. | |
| first_name | No | First name. | |
| external_id | No | Your internal ID for this contact. If provided, also used as a lookup key. | |
| display_name | No | Display name. | |
| custom_fields | No | Custom fields to merge into the contact. |