201 for a new contact and 200 for an updated one. Needs the contacts:write permission.
Which contact is updated
Sync from a CRM: send
external_id. Then the contact follows your record, also when the person changes their email or phone in your system:
- A changed email or phone is written onto the contact. Marketing consent for that channel is set back — it was given for the old address — and a hard bounce of the old address no longer counts.
- A changed address that already belongs to another contact answers
409 conflict: one person is one contact, two contacts are never merged silently. - An email (or phone) whose contact already carries a different
external_idanswers409 conflict— two records of your system point to one person. Change that contact’sexternal_idwithPATCH /v1/contacts/{id}, or send the request withoutexternal_id. - A request with only
external_idupdates that contact; if no contact has it, the answer is422 validation_failed(a new contact needs an email or phone).
Tags
Send either
tags or add_tags / remove_tags — both in one request is a 400. Without any of them the tags stay as they are. custom_fields are merged: keys you send are set, others stay.
Parameters
Your own identifier (CRM or user ID), max 255 characters. Unique within the workspace; when given it decides which contact is updated.
How the contact was added. One of:
API, IMPORT, LANDING_PAGE, MANUAL. Kept from the first create; an update doesn’t change it.Adds these tags to the contact’s existing ones (on a new contact: its tags). Up to 100, each up to 50 characters. To replace the list, use
PATCH /v1/contacts/{id}.Key-value pairs, merged into the existing ones.
city, postcode and country are the standard fields every workspace has. country takes a two-letter code ("DE") or a country name we recognise ("Germany", "Deutschland") and stores the code; anything else is stored as sent.Request
Response
- 201 Created
- 200 OK — updated
- 400 Bad Request
- 409 Conflict