Stop campaign
POST
/api/v1/ext/dbr-campaigns/{id}/stop
Stop a campaign: the agent pauses and nothing more is sent.
Auth: Bearer access_token
Scope: dbr_campaigns.write
The agent is paused, the automation is unpublished, and contacts still waiting for their opener are taken off the queue. Conversations already under way stop being answered. Resume campaign switches it back on (the cancelled queue is not brought back).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | Campaign id. |
| workspace_id | body | number | yes | A workspace of the installer. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Missing scope |
404 | workspace_id does not exist or is not the installer's (same response for both) |
404 | The campaign does not exist or is in another workspace |
RequestResponses
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/dbr-campaigns/{id}/stop" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"workspace_id": 7
}'OK
{
"success": true,
"message": "Campaign stopped",
"data": {
"campaign_id": "c7d2e9f0-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
"campaign_name": "Harbour Dental — check-up reactivation",
"campaign_tag": "dbr-harbour-dental",
"campaign_stage": "aborted",
"campaign_open": true,
"agent_id": "a3f1c2d4-5b6e-4f70-8a91-b2c3d4e5f607",
"agent_name": "Revive",
"agent_status": "paused",
"workflow_id": "1310",
"list_size_estimate": 400,
"tagged_count": 0,
"previewed_at": null,
"missed_call_first": false,
"pacing": {
"batch_size": 5,
"every_seconds": 600,
"random_seconds": [
480,
720
],
"window": "9:00–18:00 Australia/Sydney, Mon–Fri",
"per_day": 150,
"list_size": 400,
"working_days": 3,
"waves_recommended": false
},
"pacing_sentence": "About 400 contacts, 5 every ~10 minutes in sending hours: about 150 a day, so 3 working days.",
"next_step": "Preview the messages.",
"created_at": "2026-10-28T09:00:00.000Z",
"updated_at": "2026-10-28T09:00:00.000Z"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
Campaign id.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/dbr-campaigns/%7Bid%7D/stop
Previous
« Preview campaign
Next
Resume campaign »
