Add contact channel
well_add_contact_channelAdd a contact channel to a company or person.
Wraps the resource-scoped REST endpoints (POST /v1/{companies,people}/:id/{emails,phones,web-links,locations}).
channel + the matching value field:
email → value.email
phone → value.e164_number (E.164; a leading "+" is added if missing)
web_link → value.url (+ optional value.platform, default "website")
location → value.city, value.country (+ optional address_line1/2, region, postal_code) value.label is optional (defaults to "work").
NOTE: adding a phone is supported on a PERSON but NOT on a company (no endpoint) — that combination returns a clear error. To READ existing channels, use well_query_records on the parent (companies/people) or the channel root.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Channel value — fill the field(s) for the chosen channel | |
| parent | Yes | Parent record type: company or person | |
| channel | Yes | Channel to add: email | phone | web_link | location | |
| parent_id | Yes | UUID of the parent company or person | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which. | |
| idempotency_key | No | Optional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| parent | No | ||
| channel | No | ||
| success | Yes |