List segments
/segmentsSegments are read-only in this API: their membership is a set of conditions defined in the app, returned in words as definition_summary (the condition tree itself is not part of the API). status is ready when the stored membership matches the definition, with member_count and members_computed_at; it is computing (both null) for a short time after a segment is created or edited, or a list or segment it refers to is archived or restored. The built-in 'All Contacts' is listed with is_default: true, is always ready, and has no stored count (member_count null).
Permission: segments:read · on the API key screen: Segments → Read access · All permissions
Query parameters
limitnumberPage size, 1 to 200 (default 50).
From 1 to 200.
cursorstringThe next_cursor of the previous page. Only valid with the same filters.
At most 600 characters.
Response
dataobject[]requiredAt most 200 items.
Show propertiesHide properties
objectstringrequiredOne of:
segmentAt most 2,000 characters.
idstringrequiredAt most 2,000 characters.
namestringrequiredAt most 255 characters.
is_defaultbooleanrequiredstatusstringrequiredOne of:
readycomputingAt most 2,000 characters.
member_countnumber | nullrequiredmembers_computed_atstring | nullrequiredAt most 40 characters.
definition_summarystring | nullrequiredAt most 20,000 characters.
created_atstring | nullrequiredAt most 40 characters.
next_cursorstring | nullrequiredAt most 600 characters.
has_morebooleanrequired