Upsert contact
upsert_contactCreate a contact, or update the existing one with the same phone_number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name. Defaults to first + last name. | |
| tags | No | ||
| No | |||
| notes | No | ||
| state | No | ||
| fields | No | Up to 20 string values (account id, plan, location...), usable in segments and as {{field:key}} merge fields | |
| opt_in | No | Import only (POST /v1/contacts/import). Stored as consent evidence; never lifts an opt-out. | |
| source | No | Where the contact came from. Defaults to "api". | |
| company | No | ||
| last_name | No | ||
| first_name | No | ||
| phone_number | Yes | E.164, US or Canada |