campaigns_facets
Returns the distinct values of one campaign column with their counts, ordered by count descending — the data behind the value checklist in the campaign list's column menus.
Filterable columns: name, is_active, pinned, priority, add_limit, sequence_name, segment_name, created_at, updated_at. The row counters and signal verdicts are computed per row and are not offered.
Pass the other columns' active qf entries to get counts that match what is on screen; any entry for field itself is ignored.
Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/facets/
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": {
"field": "<field>"
},
"name": "campaigns_facets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Only return values containing this substring. | |
| field | Yes | Column to facet on. | |
| limit | No | Max distinct values (default 50, max 200). |