Campaigns
Pause Campaign
Stops a sending campaign from sending any more. Messages already handed to WhatsApp, and calls already placed, still complete. Resume Campaign picks up where it stopped, without messaging anyone twice. Only a sending campaign can be paused. A build key may do this, since it only ever stops sends.
POST/campaigns/{id}/pause
Path parameters
- idstringrequired
- The campaign's id (
cmp_…), as Create Campaign and List Campaigns return it.
Headers
- Katexs-Workspacestring
- Developers only: the customer workspace this request acts in — its
org_…id fromPOST /customers. Leave it out to act in your own workspace. Refused with404(Workspace not found.) when the id is unknown, is not one of your customers, or is not anorg_…id;410when that customer was deleted (restore it withPOST /customers/{id}/restoreuntil it is erased);403when the key belongs to one customer workspace (it cannot act as another);400when your workspace is not a developer workspace./customers/*andGET /customers/usageare your own workspace's and refuse the header with400: call them without it.
Example request
bash
curl -X POST "https://app.katexs.com/api/v1/campaigns/{id}/pause" \
-H "Authorization: Bearer $KATEXS_API_KEY"Responses
| Status | Description |
|---|---|
200 | Paused. The campaign as it now is. |
400 | Katexs-Workspace was sent from a workspace that is not a developer workspace. |
401 | The key is missing, wrong or revoked. The answer is always the same, whichever it is. |
403 | The key's access level (read-only or build) does not allow this request, the plan does not include it, or a customer's key named another workspace in Katexs-Workspace. code says which: key_scope_read, key_scope_build, workspace_header_forbidden, or forbidden. |
404 | No campaign with that id in this workspace. |
409 | The campaign is not sending. The message says which state it is in. |
410 | The customer named in Katexs-Workspace was deleted. POST /customers/{id}/restore brings it back until its erase date. |
429 | Over a per-minute limit. Wait for Retry-After seconds. code and limit say which limit: rate_limit_resources (240 requests a minute for the workspace), rate_limit_family (2,400 across a developer's customers), rate_limit_calls, rate_limit_messages, rate_limit_codes, rate_limit_code_recipient, concurrent_calls or number_daily_limit. |
Response fields
- idstringrequired
- The campaign's id.
- agentstringrequired
- A calling campaign: the agent that makes the calls. A broadcast: the agent that answers replies to it.
- namestringrequired
- The campaign's name, as the console lists it.
- kindstringrequired
whatsappfor a broadcast,voicefor a calling campaign. One of:whatsapp,voice.- statusstringrequired
draftuntil launched (a scheduled campaign stays a draft untilscheduledAt),sendingwhile it runs,pausedwhen stopped for now, thensent,failed(it could not run; seelastError) orcancelled. One of:draft,sending,paused,sent,failed,cancelled.- templatestring | nullrequired
- A broadcast's template name.
nullon a calling campaign. - purposestring | nullrequired
- A calling campaign's opening line: the sentence the agent opens each call with, copied from the agent when the campaign was created (editing the agent later does not change it).
nullon a broadcast. - countsobjectrequired
- How far the campaign has got, person by person.
- scheduledAtstring (date-time) | nullrequired
- When a scheduled campaign starts itself.
nullwhen it is started by hand. - startedAtstring (date-time) | nullrequired
- When it started sending.
nullwhile a draft. - finishedAtstring (date-time) | nullrequired
- When it finished or was cancelled.
nullwhile it can still send. - createdAtstring (date-time)required
- When it was created.
- lastErrorstring | nullrequired
- Why the campaign last stopped or failed, when it did. Cleared when it is launched or resumed.
200 response
{
"id": "cmp_9a3b7c21-4d5e-4f60-8a1b-2c3d4e5f6a7b",
"agent": "ag_5c4a5f93-2b1e-4c0a-9d3f-7e8a1b2c3d4e",
"name": "Diwali sale — VIP customers",
"kind": "whatsapp",
"status": "paused",
"template": "diwali_offer_v2",
"purpose": null,
"counts": {
"recipients": 1200,
"sent": 640,
"delivered": 610,
"read": 402,
"replied": 37,
"failed": 9,
"skipped": 14
},
"scheduledAt": null,
"startedAt": "2026-10-05T09:00:00.000Z",
"finishedAt": null,
"createdAt": "2026-10-04T16:20:11.482Z",
"lastError": null
}Last updated November 2026 · Found a problem? Email support@katexs.com
