Create a segment
Segments
Create a segment
Create a reusable segment (filter set) that can be added to streams later
POST
Create a segment
Creates a new segment. The returned
id can be passed as segmentId in a pairs[] entry on POST /api/v2/streams or PATCH /api/v2/streams/.
If you’d rather author the segment inline as part of stream creation, pass an inline segment: {...} object in the pair instead.
Body
| Field | Type | Description |
|---|---|---|
description | string (required) | What this segment is looking for |
name | string | Optional display name |
genderValues | array | e.g. ["female"] |
appliedSearchFilters | object | e.g. { "job_role": ["Founder", "CEO"], "skill": ["AI/ML"] } |
followerCountTiers | array | e.g. ["10k_to_100k"] |
Example
Response
Errors
| Code | HTTP | When |
|---|---|---|
orphan_label | 400 | appliedSearchFilters contained labels with no canonical match. Response includes orphans[] listing them. |