List segments
Segments
List segments
List the reusable filter sets you’ve authored
GET
List segments
Lists the segments (reusable filter sets) owned by the user. Code-side these are
segments; user-facing we call them “segments”.
To create a new segment, see POST /api/v2/segments. To author + attach to a stream in one shot, see POST /api/v2/streams (the pairs field accepts inline segment objects).
Query parameters
| Name | Type | Description |
|---|---|---|
excludeArchived | boolean | Default true - hides archived segments |
Response
Notes
Editing a segment’s filters in place is intentionally NOT exposed on the public API (mutating a segment affects classification across every stream that references it - too easy to get wrong from an integration). Workflow:POST /api/v2/segmentsto create a new segment with the desired filtersPATCH /api/v2/streams/{id}to swap the affected streams’ pairs to use the new segment