Schedule campaign

Create a text campaign for a list or segment and schedule it.

POST https://cotlet.dev/api/v1/simpletexting/campaign/schedule

write Confirm

Walks Campaigns > New: names the campaign, picks the recipients, writes the text, sets Send on to Scheduled with your date and time and clicks Schedule. Returns the campaign id and the number of recipients. The text of a scheduled campaign cannot be edited afterwards, only its time or deletion. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: schedule_campaign
NameTypeDescription
name string required string Internal campaign name, subscribers do not see it.
list string required string Name of the contact list, from list_lists.
segment string string Name of a segment of that list, from list_segments.
text string required string Message text.
send_at datetime required datetime When to send, ISO 8601 with offset.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/simpletexting/campaign/schedule \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Flu shot reminder","list":"Patients","segment":"Overdue for a cleaning","text":"Hi from Bright Smile Dental: flu shots are open this week. Reply YES and we will book yours.","send_at":"2026-10-26T09:00:00-04:00"}'
Python
result = client.call("simpletexting", "schedule_campaign", {"name":"Flu shot reminder","list":"Patients","segment":"Overdue for a cleaning","text":"Hi from Bright Smile Dental: flu shots are open this week. Reply YES and we will book yours.","send_at":"2026-10-26T09:00:00-04:00"})
Node.js
const result = await cotlet.call('simpletexting', 'schedule_campaign', {"name":"Flu shot reminder","list":"Patients","segment":"Overdue for a cleaning","text":"Hi from Bright Smile Dental: flu shots are open this week. Reply YES and we will book yours.","send_at":"2026-10-26T09:00:00-04:00"});
CLI
cotlet call simpletexting schedule_campaign --data '{"name":"Flu shot reminder","list":"Patients","segment":"Overdue for a cleaning","text":"Hi from Bright Smile Dental: flu shots are open this week. Reply YES and we will book yours.","send_at":"2026-10-26T09:00:00-04:00"}'

Example response

JSON

{
  "campaign_id": "cp_41c7e0",
  "name": "Flu shot reminder",
  "list": "Patients",
  "segment": "Overdue for a cleaning",
  "recipients": 120,
  "send_at": "2026-10-26T09:00:00-04:00",
  "status": "scheduled"
}

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.