Skip to content
New Describe an automation in plain words, and AI builds it for you.
Developers

Bulk and scheduled sends

Send a template to many contacts at once, or schedule messages for later.

5 min read Developers

Which one do I need?

One message to one person, now POST /messages
An approved template to a group or list of contacts POST /broadcasts
A message to some numbers at a set time (reminders) POST /scheduled

Broadcasts

POST /api/v1/broadcasts

Sends an approved template to contacts, now or at a set time.

  1. Pick the template

    Its id from GET /templates. It must be approved.

  2. Pick who gets it

    A contact group (group_id) or a list of contact ids (recipients).

  3. Pick when

    Leave out schedule_at to send now, or give a time and a timezone.

To a group, scheduled
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"
  }'
To specific contacts, now (request body)
{
  "name": "Restock alert",
  "template_id": 31,
  "recipients": [9120, 9121, 9187]
}

Follow a broadcast

cURL
# 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

POST /api/v1/scheduled

Sends a message to phone numbers at a set time.

Appointment reminder
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"
  }'
Response 201 Created
{
  "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,
    …
  }
}
FieldNeeded?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:

Cancel
curl -X DELETE https://flowleb.com/api/v1/scheduled/512 \
  -H "Authorization: Bearer YOUR_API_KEY"

Still stuck? Ask the team, a person replies by email.