Create Segment

Creates an email list segment for targeting messages. Can create static segments, behavior-based segments (from message opens/clicks/bounces), or dynamic segments (auto-populated from query rules).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Body Params

string
required

The segment name.

string
required

The segment description.

string
enum

Creates a behavior-based segment derived from a source message. Requires message_id to also be set.

Allowed:
integer

The message ID to create a segment from.

integer

The publication to associate the segment with.

string

The URL that is used to redirect a subscriber after they are added to a segment.

integer

The template to send to a subscriber after they are added to the segment.

boolean

Set to true to create a dynamic (query-driven) segment that auto-populates from the query filters. Set to false (or omit) for a static or behavior-based segment.

query
object

Dynamic segment query filters. Providing any subfield makes the segment dynamic and auto-populated.

Response

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Choose an example:
application/json