Campaigns

Save a segment

Save up to 20 conditions joined by match (all, the default, or any). Each condition is { field, op, value }: tag (has, not_has), list (in, not_in a list ID), status (is, is_not, including dormant), source (is, is_not), email (contains, not_contains, ends_with), name (is_set, not_set), signed_up (before, after a date; in_last_days, not_in_last_days), opened and clicked (in_last_days, not_in_last_days, ever, never), opens and sends_without_open (gte, lte), country (is, is_not a two-letter code), and custom fields as fields.<key> or { field: "field", key } (equals, not_equals, contains, gt, lt, before, after, is_set, not_set). Opened and clicked use estimated, bot-filtered engagement. A workspace may have 200 segments.

post/segments

Request

Request body

namestring required
match'all' | 'any'

Response

Successful response

idstring required
namestring required
matchstring required
countinteger required
createdAtstring date-time required
updatedAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.