Bulk and scheduled sends
Send a template to many contacts at once, or schedule messages for later.
Which one do I need?
Broadcasts
/api/v1/broadcasts
Sends an approved template to contacts, now or at a set time.
-
Pick the template
Its
idfromGET /templates. It must be approved. -
Pick who gets it
A contact group (
group_id) or a list of contact ids (recipients). -
Pick when
Leave out
schedule_atto send now, or give a time and atimezone.
curl -X POST https://flowleb.com/api/v1/broadcasts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Diwali sale – VIPs",
"template_id": 31,
"group_id": 4,
"schedule_at": "2026-11-20 10:00",
"timezone": "Asia/Kolkata"
}'
{
"name": "Restock alert",
"template_id": 31,
"recipients": [9120, 9121, 9187]
}
Follow a broadcast
# progress of one broadcast
curl https://flowleb.com/api/v1/broadcasts/77 -H "Authorization: Bearer YOUR_API_KEY"
# who got it, and each person's status
curl "https://flowleb.com/api/v1/broadcasts/77/recipients?limit=100" -H "Authorization: Bearer YOUR_API_KEY"
# stop a scheduled or running broadcast
curl -X POST https://flowleb.com/api/v1/broadcasts/77/stop -H "Authorization: Bearer YOUR_API_KEY"
Or subscribe to the broadcast_status_updated and broadcast_message_status_updated webhooks.
Scheduled messages
/api/v1/scheduled
Sends a message to phone numbers at a set time.
curl -X POST https://flowleb.com/api/v1/scheduled \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Appointment reminder – Maya",
"message": "Hi Maya, see you tomorrow at 11:00 at our Bandra clinic.",
"recipients": ["919876543210"],
"run_at": "2026-11-21 18:00",
"timezone": "Asia/Kolkata"
}'
{
"data": {
"id": 512,
"name": "Appointment reminder – Maya",
"status": "scheduled",
"message": "Hi Maya, see you tomorrow at 11:00 at our Bandra clinic.",
"template_id": null,
"recipient_count": 1,
"run_at": "2026-11-21T18:00:00+05:30",
"timezone": "Asia/Kolkata",
"total_sent": 0, "total_delivered": 0, "total_failed": 0,
…
}
}
| Field | Needed? | Notes |
|---|---|---|
| name | Yes | A label you'll see in the dashboard |
| message | Yes, or template_id | Plain text, up to 4,096 characters |
| template_id | No | Send this template instead of plain text |
| recipients | Yes | Phone numbers (not contact ids) |
| run_at | Yes | When to send |
| timezone | No | Default: your workspace's timezone |
| device_id | No | Which number sends it |
Changed plans? Cancel it before it runs:
curl -X DELETE https://flowleb.com/api/v1/scheduled/512 \
-H "Authorization: Bearer YOUR_API_KEY"