Reference / Segments

Who entered and left a segment

segment_historyocmgr segments historyGET /v1/segments/{id}/historyREAD

A segment’s arrivals and departures, newest first — the thing a saved search cannot tell you and a segment can. Each transition says who moved, which way, when, and which hook or job moved them. One membership becomes two entries if it has since closed. Filter by direction; totals cover the whole since-window regardless of direction or pagination. Opt into title and organisation with include; no addresses are returned.

Parameters

direction"entered" | "left" | "status"

Only this direction; omitted returns all directions.

include"title" | "organisation"[]

Optional person subtitles; no email addresses.

segmentstringREQUIRED

The segment, by name or id.

sincestring (date) | string (date-time)

Only transitions at or after this timestamp or date (midnight UTC).

limitinteger1–500

Page size; 50 by default, 500 at most.

cursorstring

Pass back a previous page’s nextCursor for the next one.

CLI flags

--direction <direction>

entered, left or status (default all)

--include <fields>

Comma-separated title,organisation

--since <date>

Only transitions at or after this instant

--limit <n>

Page size (default 50, max 500)

--cursor <cursor>

Continue from a previous page (opaque)

Also in Segments