Segments

Segments

Saved lists of contacts, to aim a broadcast or an assistant trigger at.

The segment object

As returned by GET /segments, one element of the list. Every endpoint below that returns this resource returns exactly these fields.

NameTypeDescription
idrequired
string (uuid)UUID
namerequired
stringThe segment’s name
descriptionrequired
string | nullWhat the segment is for
colorrequired
stringHex colour used for the segment in the dashboard
member_countrequired
integerHow many contacts are in the segment. Counts contacts on a member’s private number too, which the API never lists, so it can be higher than the contacts you can page through
created_atrequired
string (date-time)ISO 8601 timestamp
updated_atrequired
string (date-time)ISO 8601 timestamp

Endpoints

8 endpoints, each on its own page with its parameters, responses, error codes and samples in curl, Node and Python.