whatsappCampaignActions
Launch, pause, resume, or cancel a WhatsApp campaign to control queued and pending sends.
Instructions
Launch, pause, resume or cancel a WhatsApp campaign.
Set action to pick what to do.
launch: Start a draft campaign and queue every pending contact once.
It needs at least one contact, unless data_source is webhook. Launch
checks the plan's monthly broadcast allowance and the wallet balance.
Idempotency-Key is required, so a retry does not start it twice.
pause: Stop sending until you resume.
Only a running campaign can be paused. A pause you make by hand is never resumed automatically.
resume: Resume a paused campaign.
Pending contacts are sent. A contact already sent is never sent again.
Resume checks the wallet and allowance again, so it can answer 402.
cancel: Stop a campaign for good. Contacts not yet sent are not sent. A completed
or already-canceled campaign cannot be canceled.
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": {
"action": "<action>",
"campaign_id": "<campaign_id>"
},
"name": "whatsappCampaignActions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do: launch, pause, resume, cancel. | |
| campaign_id | Yes | Id of a WhatsApp campaign, from `listWhatsappCampaigns`. | |
| Idempotency-Key | No | Only for `launch`. A unique string you choose, up to 255 characters. Required on this route. The same key with the same body replays the first answer for 24 hours instead of acting twice. A different body with the same key answers `409`. |