Create a contacts list or segment

Creates a contacts list, empty, or a segment, whose contacts are the ones matching its conditions.

Use Case: Create a list, then add contacts to it with POST /v1/contacts_lists/{contacts_list_id}/contacts,
to use it as the audience of a campaign or the trigger of an automation.

Technical Details:

  • The name must be one no other list or segment of your organization has
  • A segment takes conditions: groups of criteria, a contact must match every group (AND) and one criterium
    of a group is enough (OR). A criterium names a tag, contact attribute or metric:
    { "reference_type": "Tag", "reference": "VIP", "condition": "include" },
    { "reference_type": "OrganizationAttribute", "reference": "whatsapp_opt_in_status", "type": "text", "condition": "not_equals", "value": "opted_out" }
  • The contacts of a segment are computed in the background: its audience is 0 while
    synchronization_in_progress is true, then follows its conditions as contacts change
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Name of the list, unique in your organization.

string
enum
Defaults to list
Allowed:
conditions
array of arrays of objects

Segments only: groups of criteria (AND between groups, OR within a group).

conditions
Headers
string
required

Bearer token

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json