Update a contact
PATCH/v1/contacts/{address}
- Scope
messages:send
Creates or updates the person's details. null or "" clears a field. Tags are trimmed and kept in the spelling your team already uses (vip → VIP), at most 20 of 40 characters. Group chats can't be named.
Parameters
Path
addressstringrequiredThe person's phone number or email, URL-encoded (
%2B14155550142). Any common phone format works.
Request body
namestring or nullTheir name.
companystring or nullTheir company.
emailstring or nullTheir email.
tagsarray of stringReplaces their tags.
Response
200 OKThe contact.
idstring or nullrequiredctc_…, or null until someone names, tags or notes this person.object"contact"requiredaddressstringrequiredPhone numbers are E.164 (
+1…); emails lowercased.namestring or nullrequiredcompanystring or nullrequiredemailstring or nullrequiredtagsarray of stringrequiredupdated_bystring or nullrequiredcreated_attimestamp or nullrequiredupdated_attimestamp or nullrequired
Errors
| Status | Code | Means |
|---|---|---|
| 400 | group_not_supported | Group chats can't have contact details. |
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.