add_or_update_contact
Add or update a contact. Idempotent on phone — updates name, tags, and fields if the contact already exists. Phone must be E.164 format (+49171234567). source and external_id enable CRM sync. Set opted_out: false to RE-SUBSCRIBE a contact who previously opted out (only with genuine consent), or true to unsubscribe them; omit it to leave their opt-out status unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| tags | No | ||
| phone | Yes | E.164 format, e.g. +49171234567 | |
| fields | No | Custom key/value fields | |
| source | No | e.g. "hubspot", "api" | |
| opted_out | No | Omit to leave unchanged; false re-subscribes, true unsubscribes | |
| external_id | No | ID in the source system |