Broadcasts API
Create broadcasts, follow their delivery, and pause, resume, cancel or retry them.
/v1/broadcasts#List broadcasts
WhatsApp broadcasts in this workspace, newest first, with status and delivery counts. query finds one by words from its name. For why one failed use GET /v1/broadcasts/{broadcast_id}/stats.
Permission: broadcasts:view
Query parameters (4)
status"queued" | "scheduled" | "running" | "paused" | "completed" | "failed" | "cancelled"
No extra notes.querystring
Words from the broadcast's name; every word must appear, any case.cursorstring
next_cursorfrom the previous page; omit for the first page. Keep the other filters the same; the page size stays as on the first page.page_sizeinteger
Rows per page, 1-100. Default 20.Default20
curl "https://backend.sheetwa.com/v1/broadcasts?page_size=20" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/broadcasts#Create a broadcast
Creates and queues a WhatsApp broadcast to many people. Recipients come from recipients (phones with their own variables) or tag_ids (subscribed contacts with any of those tags, at most 500). Check a template's placeholders with GET /v1/templates/{template_name}/{language_code} first: NAMED templates take values in placeholder order, and a header variable needs header_variable. Text and media broadcasts reach only people who messaged in the last 24 hours. For one person use POST /v1/messages. Reaches real phones and is billed.
Permission: broadcasts:change
Body parameters (13)
namerequiredstring
Broadcast name shown in the dashboard.message_type"template" | "text" | "media"
No extra notes.Default"template"template_namestring
For message_type template: an APPROVED template's name.language_codestring
For message_type template: the template's language code, e.g.en_US.textstring
For message_type text: the message text.media_asset_idstring
For message_type media: amedia_asset_idfrom GET /v1/media.recipientsobject[]
No extra notes.tag_idsstring[]
Send to subscribed contacts with any of these tags.variablesstring[]
Body values used for every recipient.header_variablestring
Value for the template's header variable, used for every recipient without their own. Required when the header has one.variables_from_contactstring[]
Per-contact body values, in placeholder order: first_name, last_name, phone or a custom attribute key. Tag sends only.scheduled_atstring
ISO 8601 with offset; omit to send now.rate_per_secondinteger
Messages per second, 1-70.
curl -X POST "https://backend.sheetwa.com/v1/broadcasts" \
-H "Authorization: Bearer $SHEETWA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "December offer",
"template_name": "december_offer",
"language_code": "en",
"tag_ids": [
"TAG_ID"
]
}'/v1/broadcasts/best-send-time#Get the hour with the most reads
The hour of day when this workspace's contacts read the most WhatsApp broadcast messages, from the read receipts of its broadcasts in the last 30 days (at most 20). found: false when there are too few reads to tell. The hour is in timezone, else the workspace's.
Permission: broadcasts:view
Query parameters (1)
timezonestring
IANA timezone for the hour, e.g.Asia/Kolkata. Defaults to the workspace's.
curl "https://backend.sheetwa.com/v1/broadcasts/best-send-time" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/broadcasts/{broadcast_id}#Get a broadcast
One WhatsApp broadcast: template or text, schedule, counts, error and retry history. For failure reasons use GET /v1/broadcasts/{broadcast_id}/stats.
Permission: broadcasts:view
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
curl "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/broadcasts/{broadcast_id}/stats#Get a broadcast's delivery numbers
Delivery counts of one WhatsApp broadcast and every failure grouped by Meta error code, each with a plain label, a class (transient, blocked, permanent, unknown) and whether a retry can work. retryable_error_codes lists the codes to pass to POST /v1/broadcasts/{broadcast_id}/retry.
Permission: broadcasts:view
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
curl "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/stats" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/broadcasts/{broadcast_id}/recipients#List a broadcast's recipients
Per-recipient rows of one broadcast: phone, status, error, skip reason, attempts and sent, delivered and read times. Filter by status or error code (unknown = failed without a code).
Permission: broadcasts:view
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
Query parameters (5)
status"pending" | "sent" | "delivered" | "read" | "failed" | "skipped"
No extra notes.error_codestring
A Meta error code from GET /v1/broadcasts/{broadcast_id}/stats, orunknown.querystring
Phone substring.cursorstring
next_cursorfrom the previous page; omit for the first page. Keep the other filters the same; the page size stays as on the first page.page_sizeinteger
Rows per page, 1-100. Default 20.Default20
curl "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/recipients?page_size=20" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/broadcasts/{broadcast_id}/failures#Explain a broadcast's failures
One row per failure reason of the broadcast: what it means in plain words, the steps to fix it and whether a person is needed.
Permission: broadcasts:view
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
Query parameters (1)
errorstring
The error the customer saw: a code like131049or its words.
curl "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/failures" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/broadcasts/{broadcast_id}/pause#Pause a broadcast
Pauses a running, queued or scheduled WhatsApp broadcast. Continue with POST /v1/broadcasts/{broadcast_id}/resume; stop for good with POST /v1/broadcasts/{broadcast_id}/cancel.
Permission: broadcasts:change
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
curl -X POST "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/pause" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/broadcasts/{broadcast_id}/resume#Resume a broadcast
Continues a paused WhatsApp broadcast from where it stopped. Reaches real phones and is billed.
Permission: broadcasts:change
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
curl -X POST "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/resume" \
-H "Authorization: Bearer $SHEETWA_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"/v1/broadcasts/{broadcast_id}/cancel#Cancel a broadcast
Stops a WhatsApp broadcast for good; pending recipients are marked cancelled. Cannot be undone; to stop for now use POST /v1/broadcasts/{broadcast_id}/pause. Owner or admin keys only.
Permission: broadcasts:change
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
curl -X POST "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/cancel" \
-H "Authorization: Bearer $SHEETWA_API_KEY"/v1/broadcasts/{broadcast_id}/retry#Resend to failed recipients
Re-sends a finished WhatsApp broadcast to recipients that failed with the given Meta error codes (unknown = no code). Take codes from GET /v1/broadcasts/{broadcast_id}/stats; permanent ones such as 131026 (number not on WhatsApp) never succeed. Schedule it later for transient limits. Billed.
Permission: broadcasts:change
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
Body parameters (2)
error_codesrequiredstring[]
Codes fromretryable_error_codesof GET /v1/broadcasts/{broadcast_id}/stats.scheduled_atstring
ISO 8601 with offset; omit to retry now.
curl -X POST "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/retry" \
-H "Authorization: Bearer $SHEETWA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"error_codes": [
"131049"
]
}'/v1/broadcasts/{broadcast_id}/retry#Move a scheduled resend
Moves a WhatsApp broadcast's scheduled resend of failed recipients (set by POST /v1/broadcasts/{broadcast_id}/retry with scheduled_at) to another future time. Fails when no scheduled resend is waiting. Billed when it runs.
Permission: broadcasts:change
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
Body parameters (1)
scheduled_atrequiredstring
New time, ISO 8601 with offset, in the future.
curl -X PATCH "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/retry" \
-H "Authorization: Bearer $SHEETWA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"scheduled_at": "2026-12-01T10:00:00+05:30"
}'/v1/broadcasts/{broadcast_id}/retry#Cancel a scheduled resend
Cancels a WhatsApp broadcast's scheduled resend before it runs; those recipients stay failed in the report and the broadcast itself is not cancelled. Only a resend of one error code can be cancelled.
Permission: broadcasts:change
Path parameters (1)
broadcast_idrequiredstring
Abroadcast_idfrom GET /v1/broadcasts.
curl -X DELETE "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/retry" \
-H "Authorization: Bearer $SHEETWA_API_KEY"