Reference / Segments

List segments

list_segmentsocmgr segments listGET /v1/segmentsREAD

The saved audiences in this community. A segment is two things at once: a saved filter (the language of list_segment_fields, or the older query-and-filters search_members takes) and an explicit list of people somebody added by hand or through the API — explicitCount is the second half. Every row carries its membership: memberCount, enteredLast7d, leftLast7d and evaluatedAt, read off the materialised table in page-scoped queries. Rows also include Monday UTC sizeHistory, teamExcluded, shared sentence and usedBy counts. segment_status adds only filterCount on top of these; reach for it when you want one segment, not as a way to price a list.

Parameters

pinnedboolean
querystring

Case-insensitive substring of the segment name.

limitinteger1–200

How many rows to return, 1–200. Defaults to 25. Ask for what you will read.

cursorstring

The nextCursor from a previous page of this same call. Opaque — pass it back unchanged, never construct one.

CLI flags

--pinned

Only segments pinned to Home

--query <text>

Only segments whose name contains this text

--limit <n>

Page size (default 25, max 200)

--cursor <cursor>

Continue from a previous page (opaque)

Also in Segments