Skip to main content
GET
List Segments
List the saved segments in your company. Counts are recalculated from each segment’s saved filters on every request. subscriberCount includes matching contacts of every status; activeSubscriberCount includes only active contacts and matches Get Segment Count when the underlying data is unchanged. Custom-attribute updates sync asynchronously, so counts can take roughly 30–35 seconds or longer to reflect an import, even after its status becomes completed. A segment can use the segment filter to include or exclude another saved segment, and that segment can reference others in turn. Counting follows up to 16 levels of these references and up to 1,000 references in total, counting a segment again each time it is referenced. Nested filter groups inside a segment do not count toward either limit. Past a limit, the request returns 400 with code SEGMENT_REFERENCE_DEPTH_EXCEEDED or SEGMENT_REFERENCE_COUNT_EXCEEDED. details names the segment that exceeded the limit and the chain of segment IDs followed to reach it. Retrying does not help. For too-deep chains, copy the conditions of an inner segment into its parent. For too many references, reference fewer segments or copy the conditions of shared segments into the segments that use them.

Request

Responses