Cancel scheduled SMS

Cancel a scheduled text or a scheduled campaign before it sends.

POST https://cotlet.dev/api/v1/clicksend/scheduled-sms/cancel

write Confirm

Give message_id to cancel one text scheduled with send_sms, which History cancels with the red X, or campaign_id to cancel a whole scheduled campaign, which the Delete icon does. A campaign cannot lose single recipients, so the whole campaign goes. A cancelled text cannot be edited back; to move it, schedule a new one. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: cancel_scheduled_sms
NameTypeDescription
message_id string string Message ID of a scheduled text from list_sms_history.
campaign_id integer integer Campaign ID from list_sms_campaigns. Give this or message_id.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/clicksend/scheduled-sms/cancel \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("clicksend", "cancel_scheduled_sms")
Node.js
const result = await cotlet.call('clicksend', 'cancel_scheduled_sms');
CLI
cotlet call clicksend cancel_scheduled_sms

Example response

JSON

{
  "cancelled": "campaign",
  "campaign_id": 48213,
  "name": "Black Friday teaser",
  "recipients": 1840
}

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.