Stop campaign

End a running campaign flow with End campaign and Stop campaign.

POST https://cotlet.dev/api/v1/postscript/campaigns/{campaign_id}/stop

write Confirm

Ends the flow in Flow Builder. A stopped flow cannot be reactivated, and some messages may still send after you stop it. Returns the status Postscript shows. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: stop_campaign
NameTypeDescription
campaign_id string required string Campaign to stop.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/postscript/campaigns/campaign_8c41d2/stop \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("postscript", "stop_campaign", {"campaign_id":"campaign_8c41d2"})
Node.js
const result = await cotlet.call('postscript', 'stop_campaign', {"campaign_id":"campaign_8c41d2"});
CLI
cotlet call postscript stop_campaign --data '{"campaign_id":"campaign_8c41d2"}'

Example response

JSON

{
  "campaign_id": "f_51702",
  "status": "ended"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.