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). AI/MCP clients creating dynamic segment query payloads should call get_schema with type=segments once first.

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
required

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.

query
object

Dynamic segment builder query object. Before setting this field, fetch GET /schema?type=segments and build the object from the returned query_shape and rules. Passing query creates a dynamic, auto-populated segment.

Response

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