When to use segments
Use segments for audience selection such as:- customers on a specific plan,
- users in a lifecycle stage,
- attendees for an event,
- recipients selected by an internal workflow.
Membership and preferences are separate
A contact can belong to a segment while being opted out of a topic, globally unsubscribed from email, or suppressed. That separation lets your application keep business targeting independent from messaging eligibility.Segment membership
Contacts can belong to multiple segments at the same time. Membership is explicit and can be added or removed without changing the contact profile itself. For endpoint details for creating segments or managing contact membership, see the Segments and Contacts sections in the API Reference.Audience size
Use the dedicated audience-size endpoint when you only need the current number of contacts assigned to a segment:Use
GET /segments/{segment_id}/audience-size when you only need the size. You do not need to page through the segment’s contacts and count them yourself.List segments with limit and offset
GET /segments uses limit and offset pagination:
- omitted or non-positive
limituses50, limitvalues above100are capped at100,- omitted or negative
offsetuses0, - malformed numeric values such as
limit=abcreturn a bad-request error.
data is an array of segments. There is no cursor or has_more field for this endpoint.
List contacts in a segment
GET /segments/{segment_id}/contacts uses the same limit and offset rules:
offset by the number of contacts returned until a page contains fewer contacts than the effective limit.