campaigns_list
Returns campaigns ordered by priority desc, then creation time desc.
Archived campaigns are hidden by default. Pass ?state=archived to see only those, ?state=__all__ for everything, or a comma-separated list (?state=active,paused). state is the lifecycle: 0 ACTIVE, 10 PAUSED, 20 COMPLETED, 30 CANCELLED, 40 ARCHIVED; is_active is the derived "currently sending" flag.
Key response fields to inspect:
add_limit— UTC-daily cap on NEW leads auto-enroled from the segment.0disables automatic enrolment (a common gotcha: a campaign can beis_active=trueyet pull no new leads). Manualcampaigns_add_leadsbypasses the cap.current_add_count/last_add_reset_at— today's counter towardadd_limit, resets at UTC midnight.list_stats—{available, added_today, completed, total}for the bound segment.available=0on an active campaign often means the segment is drained ORadd_limit=0.is_autopilot_enabled— if true, messages skip REVIEW_REQUIRED and send straight through.
Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "campaigns_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qf | No | Ad-hoc column filters as a JSON array, ANDed on top of the other query parameters. Each entry is `{"field": <key>, "op": <operator>, ...}` where `op` is `in` (with `values`, a `null` element meaning blanks) or one of `=`, `!=`, `>`, `>=`, `<`, `<=`, `contains`, `is empty`, `is not empty` (with `value`, except for the last two). Entries are ANDed; values within one `in` entry are ORed. Example: `[{"field":"is_active","op":"=","value":true}]`. | |
| limit | No | Number of results to return per page. | |
| state | No | Lifecycle filter. Omitted: everything except archived. Accepts names or numbers, comma-separated (`active`, `paused`, `completed`, `cancelled`, `archived`), or `__all__` for no filtering. | |
| offset | No | The initial index from which to return the results. | |
| pinned | No | ||
| search | No | A search term. | |
| ordering | No | Which field to use when ordering the results. | |
| is_active | No |