Campaigns
Save Campaign Audience as Segment
Save a campaign’s non-trivial audience rules as a reusable dynamic segment
POST
Save Campaign Audience as Segment
Turn a campaign’s audience filters and include/exclude rules into a saved dynamic segment you can reuse in future campaigns, sequences, and analytics.
Unlike creating a segment on
Requires API key scopes
emailSent for the campaign (which references the fixed group of contacts who received it), this endpoint copies the campaign’s underlying audience rules into a live segment so new matching contacts join automatically.
This endpoint refuses trivial audiences (all active subscribers, a single list, or a single existing segment) and exclusion rules whose operators cannot be inverted losslessly. Manual contact additions and removals are not carried into the segment;
omitsManualAdjustments is true when the campaign had them.campaigns:read and segments:write.
Request
Name for the new segment (unique per company, up to 255 characters). Defaults
to
<campaign name> audience when the campaign has a title.Response fields
The created segment record (
id, name, filters, filterJoinOperator, format, and root when the segment uses nested groups, event filters, or segment references).True when the campaign had hand-picked manual additions or removals that were not carried into the dynamic segment.
True when the campaign’s resend non-opener exclusions were converted into
emailOpened is_not conditions on the segment.Optional warnings when a custom attribute filter references an attribute name that ClickHouse has not synced yet.