campaigns_pipeline
The 'why is my campaign empty?' endpoint. Returns what one autopilot tick would do right now — computed as a dry run, so it writes nothing and spends nothing — plus the recent history of what it actually did.
sizing carries the arithmetic. The deficit is bounded by two independent ceilings: remaining_add_quota (the campaign's daily enrolment cap) and remaining_send_capacity (mailbox slots left after already-queued messages). Leads already on hand (ready_in_target) and already bought and still enriching (in_flight_upstream) are then subtracted.
blockers[] is the actionable part — each has a stable code and, where relevant, the object_sqid to go fix.
availability answers "are the campaign's lists used up?": per segment on the chain, how many leads are ready, still processing, filtered out by qualification, or already used.
Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/pipeline/
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": {
"sqid": "<sqid>"
},
"name": "campaigns_pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes | ||
| history | No | Recent autopilot passes to include (0–50, default 10). |