List Segments
list-segmentsRetrieve all segments and associated IDs needed for creating contacts or broadcasts. Supports pagination for large lists.
Instructions
Purpose: List all segments in the account. Use to get segment IDs required by create-contact, create-broadcast, list-contacts.
NOT for: Listing contacts inside a segment (use list-contacts with segmentId). Not for listing broadcasts (use list-broadcasts).
Returns: For each segment: name, id, created_at. Use pagination (limit, after/before) for large lists.
When to use: User says "show my segments", "what lists do I have?", or before create-contact/create-broadcast when segmentId is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Segment ID after which to retrieve more (for forward pagination). Cannot be used with "before". | |
| limit | No | Number of segments to retrieve. Default: 20, Max: 100, Min: 1 | |
| before | No | Segment ID before which to retrieve more (for backward pagination). Cannot be used with "after". |