Endpoints
The contact object
Contacts are returned with their full consent history embedded inconsent_records.
Fields
Your own identifier for this contact. Unique within the workspace. Useful for syncing with a CRM.
Free-form string labels. Used for groups and filtering in campaigns. In
POST /v1/contacts (upsert) tags are added to the existing ones; in PATCH tags replaces the list. add_tags / remove_tags change it in both.Arbitrary key-value pairs for extra contact attributes. Values are merged on update.Three keys are standard fields every workspace has:
city, postcode and country (e.g. "Berlin", "10115", "DE"). The app shows them as City, Postcode and Country — in sign-up forms, imports, groups and the contact profile — and messages fill them in with {{city}}, {{postcode}} and {{country}}. Send them like any other key: "custom_fields": { "city": "Berlin", "country": "DE" }.country is stored as an ISO 3166-1 alpha-2 code. Send the code ("DE", any case) or a country name we recognise — English or German, and common variants ("Germany", "Deutschland", "USA", "UK", "Holland") — and the contact keeps the code: "Deutschland" comes back as "DE". A value that isn’t a country we recognise is accepted and stored as sent, as before. Groups and filters treat a code and the names of its country as the same country, also for values stored before the code was used. In messages, {{country}} is the country’s name, not the code.All consent records for this contact. Each record covers one
channel_type + message_type combination. See Consent API for full field reference.One person, one contact
Within a workspace,external_id, email (stored lower-case) and phone number (stored as E.164) each belong to at most one contact — the database enforces it. POST /v1/contacts therefore updates instead of duplicating: by external_id when you send one, otherwise by email, otherwise by phone. An identifier that belongs to another contact answers 409 conflict; contacts are never merged silently. See Create or upsert contact.
CRM sync in short
- Send every person with your system’s ID as
external_id— one by one withPOST /v1/contacts, or 1,000 at a time withPOST /v1/contacts/bulk. - Send the consent your system holds with
POST /v1/contacts/consent/bulk(or per contact). - Keep both in sync with webhooks:
contact.updated,consent.updated,email.unsubscribed.
POST /v1/messages) creates the contact (source: API, no consent) and fires contact.created. The same happens when a number that is no contact yet writes to an RCS agent with capability_check in features.
Suppression
The contact’s status stops sends:BLOCKED stops every message, UNSUBSCRIBED stops subscription and marketing messages (a transactional MESSAGE still goes out), and BOUNCED stops email. A one-time code still reaches a blocked, unsubscribed or bounced person. A refused API send answers 422 recipient_suppressed.