Preview audience
preview_audienceCount the contacts a set of filter groups matches right now, with a sample of who they are: show it to the user before a campaign goes live or a broadcast sends. When is_complete is false, call again with the returned cursor; the counts of the calls add up. Counts everyone who matches, including addresses that are blocked or unsubscribed and will be skipped.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"filter_groups": "<filter_groups>"
},
"name": "preview_audience"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | From the previous call while is_complete is false. | |
| project_id | Yes | ||
| filter_groups | Yes | A contact matches when it passes every filter of at least one group. An empty list means every contact in the project. |