campaigns_preview_audience
Resolve a campaign audience filter and return the count + 5 sample contacts WITHOUT creating a campaign. Use to validate an audience before action='create'. Example: confirm "tag=lead" matches the expected number of contacts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | audience_filter shape. `audience_filter` shape: { all: [rules], any?: [rules] }. Rules are {type, ...}. Supported in v1: { type: "all_contacts" } — every contact with a valid channel address; { type: "tag", op: "has" | "has_not", value: "<tag_name>" } — tag membership filter. Multiple all[] rules AND together; any[] rules OR together. Behavior queries (opened campaign X / clicked X) and custom-field queries arrive in a follow-up. | |
| channel | No | Defaults to email. |