Creates a contact, or updates the contact the request names. Answers 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_id answers 409 conflict — two records of your system point to one person. Change that contact’s external_id with PATCH /v1/contacts/{id}, or send the request without external_id.
  • A request with only external_id updates that contact; if no contact has it, the answer is 422 validation_failed (a new contact needs an email or phone).
For many contacts at once, use Bulk upsert — the same rules for up to 1,000 rows per call, one result per row.

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

string
required
Bearer <api_key>
string
Optional. A retry with the same key and body returns the first answer.
string
Your own identifier (CRM or user ID), max 255 characters. Unique within the workspace; when given it decides which contact is updated.
string
Email address. A new contact needs email or phone.
string
Phone number in international format (e.g. +4917612345678). Stored as E.164.
string
First name. Max 100 characters.
string
Last name. Max 100 characters.
string
required
How the contact was added. One of: API, IMPORT, LANDING_PAGE, MANUAL. Kept from the first create; an update doesn’t change it.
array
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}.
array
Tags to add.
array
Tags to remove.
object
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