Endpoints
Contacts
Create, find, update, tag, stage and merge the people your business talks to.
Οι διαδρομές είναι σχετικές με το βασικό URL. Κάθε κάρτα δείχνει το δικαίωμα που απαιτεί η κλήση και κάθε παράμετρο, με τον τύπο και τα όριά της.
/contactsSearch contacts, newest first.
Παράμετροι query
- qπροαιρετικόstring
Free-text search across name, email, phone, WhatsApp number, notes and Instagram username. Every word must match. Up to 200 characters.
- phoneπροαιρετικόstring
Exact phone or WhatsApp number match.
- emailπροαιρετικόstring
Exact email match.
- tagπροαιρετικόstring
Contacts that carry this tag (case-insensitive).
- stage_idπροαιρετικόinteger
Contacts in this funnel stage.
- assigned_to_user_idπροαιρετικόstring
Contacts owned by this team member.
- channelπροαιρετικόenum
Contacts that came from this channel.
Επιτρεπτές τιμές:
instagramfacebooktiktokwhatsapptelegramemailwidgetapivoicesms - updated_sinceπροαιρετικόstring (ISO 8601 date-time with offset)
Contacts updated at or after this time.
/contacts/lookupFind one contact by phone, email or channel username. Send at least one of phone, email or handle.
Παράμετροι query
- phoneπροαιρετικόstring
Phone or WhatsApp number.
- emailπροαιρετικόstring
Email address.
- handleπροαιρετικόstring
Channel username, with or without "@".
- channelπροαιρετικόenum
Limit the handle search to one channel.
Επιτρεπτές τιμές:
instagramtiktoktelegramwhatsapp
- Answers 404 not_found when nothing matches. When several contacts match, the oldest one is returned.
/contactsCreate a contact.
Σώμα JSON
- first_nameπροαιρετικόstring | null
1–100 characters.
- last_nameπροαιρετικόstring | null
1–100 characters.
- emailπροαιρετικόstring | null
Valid email address, up to 320 characters. Stored lowercase.
- phoneπροαιρετικόstring | null
3–50 characters. E.164 (+14155550123) recommended.
- whatsapp_phoneπροαιρετικόstring | null
WhatsApp number, 3–50 characters.
- instagram_usernameπροαιρετικόstring | null
Up to 100 characters. A leading "@" is removed.
- tiktok_usernameπροαιρετικόstring | null
Up to 100 characters. A leading "@" is removed.
- telegram_usernameπροαιρετικόstring | null
Up to 100 characters. A leading "@" is removed.
- country_codeπροαιρετικόstring
Two-letter ISO 3166-1 country code, e.g. "US".
- custom_fieldsπροαιρετικόobject
Custom field values keyed by custom field key (see GET /custom-fields). Merged into existing values. Unknown, archived or wrongly typed keys answer 422.
- sourceπροαιρετικόstring
Where the contact came from, up to 50 characters. Default "api".
- tagsπροαιρετικόarray of strings
Up to 100 tag names (1–80 characters each). Tags that do not exist yet are added to the workspace.
- stage_idπροαιρετικόinteger
Funnel stage to place the contact in (see GET /funnels).
- assigned_to_user_idπροαιρετικόstring
Team member who owns the contact (see GET /users).
- Answers 201 with the contact.
/contacts/upsertUpdate the matching contact, or create it. Matches by phone (or whatsapp_phone), then email, then Instagram, TikTok or Telegram username.
Σώμα JSON
- first_nameπροαιρετικόstring | null
1–100 characters.
- last_nameπροαιρετικόstring | null
1–100 characters.
- emailπροαιρετικόstring | null
Valid email address, up to 320 characters. Stored lowercase.
- phoneπροαιρετικόstring | null
3–50 characters. E.164 (+14155550123) recommended.
- whatsapp_phoneπροαιρετικόstring | null
WhatsApp number, 3–50 characters.
- instagram_usernameπροαιρετικόstring | null
Up to 100 characters. A leading "@" is removed.
- tiktok_usernameπροαιρετικόstring | null
Up to 100 characters. A leading "@" is removed.
- telegram_usernameπροαιρετικόstring | null
Up to 100 characters. A leading "@" is removed.
- country_codeπροαιρετικόstring
Two-letter ISO 3166-1 country code, e.g. "US".
- custom_fieldsπροαιρετικόobject
Custom field values keyed by custom field key (see GET /custom-fields). Merged into existing values. Unknown, archived or wrongly typed keys answer 422.
- sourceπροαιρετικόstring
Where the contact came from, up to 50 characters. Default "api".
- tagsπροαιρετικόarray of strings
Up to 100 tag names (1–80 characters each). Tags that do not exist yet are added to the workspace.
- stage_idπροαιρετικόinteger
Funnel stage to place the contact in (see GET /funnels).
- assigned_to_user_idπροαιρετικόstring
Team member who owns the contact (see GET /users).
- Send at least a phone, email or channel username to match on (422 otherwise).
- Answers { object: "contact_upsert", created, contact }: 201 when created, 200 when updated.
/contacts/mergeMerge a duplicate contact into another. The secondary contact's records (conversations, bookings, orders and more) move to the primary one.
Σώμα JSON
- primary_contact_idυποχρεωτικόinteger
The contact that stays.
- secondary_contact_idυποχρεωτικόinteger
The duplicate that is merged away. Must differ from primary_contact_id.
/contacts/:idRetrieve a contact, including tags, stage, assignee and custom fields.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
/contacts/:idUpdate contact fields. Fields you leave out keep their value; null clears a field.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
Σώμα JSON
- first_nameπροαιρετικόstring | null
1–100 characters.
- last_nameπροαιρετικόstring | null
1–100 characters.
- emailπροαιρετικόstring | null
Valid email address, up to 320 characters. Stored lowercase.
- phoneπροαιρετικόstring | null
3–50 characters. E.164 (+14155550123) recommended.
- whatsapp_phoneπροαιρετικόstring | null
WhatsApp number, 3–50 characters.
- instagram_usernameπροαιρετικόstring | null
Up to 100 characters. A leading "@" is removed.
- tiktok_usernameπροαιρετικόstring | null
Up to 100 characters. A leading "@" is removed.
- telegram_usernameπροαιρετικόstring | null
Up to 100 characters. A leading "@" is removed.
- country_codeπροαιρετικόstring
Two-letter ISO 3166-1 country code, e.g. "US".
- custom_fieldsπροαιρετικόobject
Custom field values keyed by custom field key (see GET /custom-fields). Merged into existing values. Unknown, archived or wrongly typed keys answer 422.
/contacts/:idDelete a contact and the data derived from it, the same way a delete in the app does.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
/contacts/:id/channelsList the channel identities a contact can be reached on.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
/contacts/:id/tagsAdd tags to a contact. Tags that do not exist yet are added to the workspace.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
Σώμα JSON
- tagsυποχρεωτικόarray of strings
1–100 tag names, 1–80 characters each.
/contacts/:id/tagsRemove tags from a contact (case-insensitive). The tags stay in the workspace.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
Σώμα JSON
- tagsυποχρεωτικόarray of strings
1–100 tag names.
/contacts/:id/stageMove a contact to a funnel (lifecycle) stage.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
Σώμα JSON
- stage_idυποχρεωτικόinteger
Target stage (see GET /funnels).
- funnel_idπροαιρετικόinteger
Optional check: the stage must belong to this funnel.
/contacts/:id/stageRemove the contact from its lifecycle stage.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
/contacts/:id/assigneeAssign the contact to a team member, or unassign it.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
Σώμα JSON
- user_idπροαιρετικόstring | null
A user from GET /users. Omit or send null to unassign.
/contacts/:id/notesList the internal notes on a contact, newest first.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
/contacts/:id/notesAdd an internal note to a contact. Customers never see notes.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
Σώμα JSON
- bodyυποχρεωτικόstring
1–10,000 characters.
/contacts/:id/dncTurn do-not-contact on or off for a contact.
Παράμετροι διαδρομής
- idυποχρεωτικόinteger
Contact ID.
Σώμα JSON
- do_not_contactυποχρεωτικόboolean
true opts the contact out of messages.
- reasonπροαιρετικόstring
Up to 200 characters.
/funnelsList funnels with their stages, for use with stage_id.
Παράμετροι query
- flatπροαιρετικόstring
"true" returns one row per stage (funnel name › stage name) instead of nested funnels.