Segments
Segments are dynamic groups of contacts defined by filter conditions. Contacts are matched in real-time based on the segment's rules.
List Segments
GET
/segmentsReturns all segments with their current matching contact count.
Example
Response 200 OK
Create a Segment
POST
/segmentsBody
Available Fields and Operators
Example
Response 201 Created — returns the created segment object.
Get a Segment
GET
/segments/{id}Returns segment details with current contact count.
Example
Response 200 OK — returns the segment object.
Update a Segment
PUT
/segments/{id}Updates the segment's name, description, color, match type, or conditions. Accepts the same body as Create.
Example
Response 200 OK — returns the updated segment object.
Delete a Segment
DELETE
/segments/{id}Deletes the segment. Contacts matching the segment are not affected.
Example
Response 204 No Content
Preview Segment Contacts
GET
/segments/{id}/contactsReturns a paginated list of contacts currently matching the segment's conditions.
Query Parameters
Example
Returns the same contact format as the Contacts API.
