DM Champ Docs

Broadcasts API

A broadcast is one outbound send: an audience, an opening message, one channel and a schedule. It can also name the AI Agent that handles the replies. The Broadcasts API lets you build, price, launch and monitor those sends from your own code. For the product itself, see the Broadcasts guide.

  • Base URL: https://api.dmchamp.com/v1
  • Authentication: your API key (see Authentication). Examples use the ?apiKey= query form; the X-API-Key header works too.
  • Errors and paging: see Errors & Pagination
  • Every field, request and response: the API Reference

Agencies: every endpoint here accepts sub_account_id (in the body on POST/PUT, as a query parameter on GET/DELETE) so you can run a client’s sends with your agency key. See API for Agencies.


How a send is put together

Sending a broadcast is four calls, not one:

  1. Create the broadcast with its audience (list_id), channel and schedule. It starts as a Draft.
  2. Set the opening message. On WhatsApp Business that means submitting a template for approval, or picking one you already had approved. On WhatsApp Web and SMS it is plain text.
  3. Estimate the cost if you want the price first (optional).
  4. Launch it. Launching checks audience, message, template approval and connected sender, then either starts the send or tells you what is missing.

Nothing is sent until you call launch.

Fields you set

The full field list is in the API Reference. What is worth knowing beyond it:

  • One channel per broadcast: whatsapp, whatsapp_web or sms. Any other channel (including email) is refused with 400 on create, update and duplicate. To send the same thing on another of the three, duplicate it with to_channel.
  • agent_id names the AI Agent that answers replies. Leave it null and replies land in your team inbox.
  • list_id is how you set the audience from the API. See Contacts for creating and filling lists. send_to_new_list_members: true keeps the broadcast armed so anyone added to the list later also gets the opener.
  • whats_app_template holds the opener on every channel. Set it through the template endpoints, not by hand.
  • opener_media is one image or video sent with the opener. Always send the whole object, or null to remove it; a dotted path into it (opener_media.name) is rejected with 400. Not supported on SMS.
  • execution_date takes ISO 8601 or epoch milliseconds. A future date schedules the send; omit it, or use a past one, to send as soon as you launch.
  • time_critical: true opts out of the automatic pacing that kicks in above 50 contacts, for a warm audience that needs the message now. It does not lift the channel’s own daily sending limit.
  • Drip sends (drip_mode: true) go out in batches of batch_size (1 to 500). frequency.type is daily, weekly or monthly; hourly is refused with 400 on a drip, at save time and again at launch, because each batch needs a full sending day. trigger_days (Sunday = 0 to Saturday = 6) is required before a drip can launch.
  • send_window limits sending to set hours in your account’s time zone, for example { "start": "11:00", "end": "16:00" }. The start is included and the end is not, so that sends until 15:59. A start later than the end runs overnight. On a drip it also only opens on the trigger_days. Launching outside the window queues the start to the next opening (the broadcast reads Scheduled). Always send the whole object or null, never a dotted key; two equal times are refused.
  • user_id, id, status and source_campaign_id are ignored on create and dropped on update. The status only moves through launch, pause and resume.
  • The platform maintains status, total_contacts_sent, unique_contacts_replied, overall_reply_rate, credits_used, paused_reason, completion_summary, the batch counters and contacts. Read them, do not write them.
  • Timestamps come back as epoch milliseconds, and contact references as path strings like contacts/uid_whatsapp_15551234567.

Statuses

Status Meaning
Draft Being built. Nothing is scheduled.
Pending Approval Launched, but its WhatsApp template is still awaiting a decision. It starts sending on its own once approved; do not launch again.
Scheduled Launched with a future execution_date, or launched outside its send_window and waiting for it to open.
Sending Actively sending. A broadcast armed for new list members stays here while it waits for them.
Paused Held, by you or automatically by a safety check.
Sent Finished.
Failed Finished with more than half the sends failing.

Endpoints

Task Method and path Details
List broadcasts GET /broadcasts Open in API Reference
Create a broadcast POST /broadcasts Open in API Reference
Get a broadcast GET /broadcasts/{broadcastId} Open in API Reference
Update a broadcast PUT /broadcasts/{broadcastId} Open in API Reference
Delete a broadcast DELETE /broadcasts/{broadcastId} Open in API Reference
List recipients GET /broadcasts/{broadcastId}/recipients Open in API Reference
Submit a template POST /broadcasts/{broadcastId}/template Open in API Reference
Use an approved template POST /broadcasts/{broadcastId}/template/select Open in API Reference
Estimate the cost POST /broadcasts/{broadcastId}/estimate-cost Open in API Reference
Launch POST /broadcasts/{broadcastId}/launch Open in API Reference
Pause POST /broadcasts/{broadcastId}/pause Open in API Reference
Resume POST /broadcasts/{broadcastId}/resume Open in API Reference
Keep sending after a low-engagement pause POST /broadcasts/{broadcastId}/override-engagement-guard Open in API Reference
Duplicate POST /broadcasts/{broadcastId}/duplicate Open in API Reference

Create a broadcast

curl -X POST "https://api.dmchamp.com/v1/broadcasts?apiKey=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "June promo",
    "channel": "whatsapp",
    "list_id": "lst_456",
    "agent_id": "agt_789",
    "drip_mode": true,
    "execution_date": "2026-06-15T09:00:00.000Z"
  }'

Returns 201 with { "success": true, "broadcast_id": "bcd123abc456" }.

List broadcasts

Returns every broadcast on the account, newest first. Filter with ?status=Sending, spelled exactly as in the status table.

Get a broadcast

Use it to poll a running send: total_contacts_sent, unique_contacts_replied, overall_reply_rate and credits_used update as it goes. A broadcast that is not on your account returns 404.

See who got it

GET /broadcasts/{broadcastId}/recipients lists every contact in the audience with how far the opener got, why it failed and whether they replied. Filter with status (all, sent, delivered, read, failed, pending, replied).

  • Failures the provider reports after the send are included, for example 63024: the number cannot receive WhatsApp messages (not on WhatsApp, or the person has not accepted WhatsApp’s latest terms).
  • A recipient reads pending until the opener has gone out to them.
  • counts gives the total for every filter, so one call is enough to label filter tabs.
  • A team member set to hide contact details gets phone numbers masked.

Update a broadcast

Send only the fields you want to change. You can address one key inside a nested object with a dotted path, for example "whats_app_template.body", except inside opener_media and send_window (whole object only). An empty body returns 400. Status is not editable here; use launch, pause and resume.


The opening message

Every broadcast carries its opener in whats_app_template:

  • WhatsApp Business: it must be a template WhatsApp has approved. Use one of the two endpoints below.
  • WhatsApp Web and SMS: its body is the text that gets sent. Submitting it through the template endpoint stores it and marks it ready without involving WhatsApp; it comes straight back approved with template_sid: null.

Submit a template for approval

curl -X POST "https://api.dmchamp.com/v1/broadcasts/bcd123abc456/template?apiKey=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "body": "Hi {{first_name}}, our June offer is live until Friday.",
    "language": "en",
    "category": "marketing"
  }'
{ "success": true, "broadcast_id": "bcd123abc456", "template_status": "pending", "template_sid": "HX0123..." }
  • template_status is WhatsApp’s answer: pending while in review, approved when usable, rejected if refused.
  • category is what the send is priced at, so keep it honest. Leave variables out and they are read from the body in order, which is usually what you want: the send fills them from each contact.
  • Submitting while a previous template is still under review returns 400. Wait for the decision first.
  • Editing a template that is currently approved keeps the approved one live until the new one comes back, so a running broadcast never loses its opener.
  • On a WhatsApp number connected directly through Meta, a broadcast with an image or video attached cannot be submitted (400). Attachments are supported on the managed WhatsApp Business lane and on WhatsApp Web.

Use a template you already had approved

POST /broadcasts/{broadcastId}/template/select with { "template_id": "tpl_abc123" } copies an approved template from your template library onto the broadcast, so there is nothing to wait for. Approval is verified on our side from the library record; you only send the id.

You get 400 if the broadcast is not a WhatsApp draft, the template is not approved, it is a follow-up template rather than an opener, or the broadcast has an attachment the template cannot carry. On a managed number, library templates are text-only; on a number connected through our Meta app or your own, an attachment needs a template with a matching image or video header. A template id not on your account returns 404.


Estimate the cost

Available on whatsapp and sms broadcasts only (any other channel returns 400). The broadcast needs a list_id, since the estimate counts the audience. WhatsApp comes back in credits broken down by destination country; SMS comes back in US dollars from live Twilio pricing for your own Twilio account.

curl -X POST "https://api.dmchamp.com/v1/broadcasts/bcd123abc456/estimate-cost?apiKey=YOUR_API_KEY"

Read billing_mode before you show a number. It tells you who is billed:

billing_mode Who pays What the figures mean
credits Your DM Champ account totalTemplateCost and the per-country figures are credits.
twilio_direct Your own Twilio account estimatedCostUsd is what Twilio will charge you.
meta_waba_direct Your own WhatsApp Business Account, billed by Meta Every credit figure is null on purpose, so it is never mistaken for “free”. Country and contact counts are still accurate.

SMS with no Twilio credentials connected still returns the segment counts, with estimatedCostUsd: 0.


Launch a broadcast

curl -X POST "https://api.dmchamp.com/v1/broadcasts/bcd123abc456/launch?apiKey=YOUR_API_KEY"
{ "success": true, "broadcast_id": "bcd123abc456", "status": "Scheduled" }

There is no partial launch: either it starts, or nothing changes and you get a 400 saying why. status is where it landed: Scheduled (future date), Sending (started now) or Pending Approval (sends itself once the template is approved; do not launch again). Only a Draft, or a Pending Approval broadcast whose template has since been approved, can be launched.

Why a launch is refused

Problem What to fix
No audience Set list_id (or attach contacts).
No opening message Set the opener, see The opening message.
Attachment on SMS SMS cannot carry an image or video. Remove it or move the broadcast to WhatsApp.
Attachment does not match the approved template On WhatsApp the media lives inside the approved template, so swapping it means resubmitting the template.
Template rejected Rewrite the message and submit again.
Template never submitted Submit one, or select an approved one.
Template approved but missing from your WhatsApp account Usually approved before the number finished connecting. Submit it again.
No connected sender for the channel Connect the channel first, see Channels.
Channel cannot broadcast Only whatsapp, whatsapp_web and sms can send a broadcast.
Already armed A send is already scheduled. Pause before launching again.
Still awaiting approval It sends itself when the template is approved.
WhatsApp Business Account blocked by Meta Meta stopped business-initiated conversations on your own account, normally a payment-method problem. Fix it in Meta’s Business Manager.
Started from a classic campaign Launch it from the campaign editor, see below.

Pause and resume

curl -X POST "https://api.dmchamp.com/v1/broadcasts/bcd123abc456/pause?apiKey=YOUR_API_KEY"
curl -X POST "https://api.dmchamp.com/v1/broadcasts/bcd123abc456/resume?apiKey=YOUR_API_KEY"
  • Pause works on Sending or Scheduled and tears down anything queued. Pausing a Pending Approval broadcast puts it back to Draft, since nothing was scheduled yet. Any other status returns 400.
  • Resume works only on Paused. It goes back to Sending, or to Scheduled if execution_date is still in the future.

Keep sending after a low-engagement pause

While a broadcast sends in batches, we measure how many people replied to each batch before starting the next. If almost nobody replies, it pauses itself: a send that keeps pushing into silence is the quickest way to get a number filtered or blocked. A plain resume would be paused again by the next check, because the reply rate cannot change while stopped.

POST /broadcasts/{broadcastId}/override-engagement-guard is the decision to keep going (the Continue anyway button in the dashboard). It records the override on that one broadcast and, if it was paused for low engagement, lifts the pause in the same call:

  • resumed: true: it was paused for low engagement and is running again; status says where it resumed to.
  • resumed: false: nothing was lifted, the override is only recorded for future checks. That happens when it was never paused, or was paused for another reason (by hand, a sending limit, too many errors). Resume those yourself once the cause is dealt with.

The override applies to this broadcast only, is not an account setting, and is safe to call twice.


Duplicate a broadcast

Copies the audience, message and settings into a new Draft; counters, batches, schedule and reply stats start fresh. Pass to_channel to create the copy on another channel.

curl -X POST "https://api.dmchamp.com/v1/broadcasts/bcd123abc456/duplicate?apiKey=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "to_channel": "sms" }'

A copy never inherits a live WhatsApp approval: on a WhatsApp copy the template needs your confirmation, and on another channel it is dropped and the text becomes the plain opener. Copying to SMS also drops any attachment.

Delete a broadcast

A Sending or Scheduled broadcast is refused with 400. Pause it first.


Broadcasts that mirror a classic campaign

Classic campaigns that send messages also appear in Broadcasts, and the API returns them alongside native broadcasts (they carry a source_campaign_id). The campaign stays in charge:

  • Editing the audience, message or schedule works and is written through to the campaign.
  • Channel, reply Agent, attachment and run counters are read-only here (400). Change them on the campaign.
  • Launch returns 400 pointing you to the campaign editor.
  • Pause and resume work and act on the campaign.
  • Delete returns 400. Delete the campaign instead, and its Broadcasts entry goes with it.
  • Duplicate gives you an independent native broadcast, the supported way to move a proven campaign across.

Next steps

  • Broadcasts guide: the product behind these endpoints, including pacing and safety behaviour
  • Contacts API: build the list a broadcast sends to
  • Templates API: manage the approved WhatsApp templates you can select from
  • Webhooks API: subscribe to Broadcast Started and Broadcast Completed instead of polling