Broadcasts
13 endpoints

Broadcasts API

Create broadcasts, follow their delivery, and pause, resume, cancel or retry them.

Badges:
Read onlyWrites dataSends to WhatsAppDestructive
GET/v1/broadcasts#

List broadcasts

Read only

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.
  • query

    string

    Words from the broadcast's name; every word must appear, any case.
  • cursor

    string

    next_cursor from the previous page; omit for the first page. Keep the other filters the same; the page size stays as on the first page.
  • page_size

    integer

    Rows per page, 1-100. Default 20.Default 20
bashGET /v1/broadcasts
curl "https://backend.sheetwa.com/v1/broadcasts?page_size=20" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
POST/v1/broadcasts#

Create a broadcast

Sends to WhatsApp

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)

  • namerequired

    string

    Broadcast name shown in the dashboard.
  • message_type

    "template" | "text" | "media"

    No extra notes.Default "template"
  • template_name

    string

    For message_type template: an APPROVED template's name.
  • language_code

    string

    For message_type template: the template's language code, e.g. en_US.
  • text

    string

    For message_type text: the message text.
  • media_asset_id

    string

    For message_type media: a media_asset_id from GET /v1/media.
  • recipients

    object[]

    No extra notes.
  • tag_ids

    string[]

    Send to subscribed contacts with any of these tags.
  • variables

    string[]

    Body values used for every recipient.
  • header_variable

    string

    Value for the template's header variable, used for every recipient without their own. Required when the header has one.
  • variables_from_contact

    string[]

    Per-contact body values, in placeholder order: first_name, last_name, phone or a custom attribute key. Tag sends only.
  • scheduled_at

    string

    ISO 8601 with offset; omit to send now.
  • rate_per_second

    integer

    Messages per second, 1-70.
bashPOST /v1/broadcasts
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"
    ]
  }'
GET/v1/broadcasts/best-send-time#

Get the hour with the most reads

Read only

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)

  • timezone

    string

    IANA timezone for the hour, e.g. Asia/Kolkata. Defaults to the workspace's.
bashGET /v1/broadcasts/best-send-time
curl "https://backend.sheetwa.com/v1/broadcasts/best-send-time" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
Read only

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)

bashGET /v1/broadcasts/{broadcast_id}
curl "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
GET/v1/broadcasts/{broadcast_id}/stats#

Get a broadcast's delivery numbers

Read only

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)

bashGET /v1/broadcasts/{broadcast_id}/stats
curl "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/stats" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
Read only

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)

Query parameters (5)

  • status

    "pending" | "sent" | "delivered" | "read" | "failed" | "skipped"

    No extra notes.
  • error_code

    string

    A Meta error code from GET /v1/broadcasts/{broadcast_id}/stats, or unknown.
  • query

    string

    Phone substring.
  • cursor

    string

    next_cursor from the previous page; omit for the first page. Keep the other filters the same; the page size stays as on the first page.
  • page_size

    integer

    Rows per page, 1-100. Default 20.Default 20
bashGET /v1/broadcasts/{broadcast_id}/recipients
curl "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/recipients?page_size=20" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
GET/v1/broadcasts/{broadcast_id}/failures#

Explain a broadcast's failures

Read only

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)

Query parameters (1)

  • error

    string

    The error the customer saw: a code like 131049 or its words.
bashGET /v1/broadcasts/{broadcast_id}/failures
curl "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/failures" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
Writes data

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)

bashPOST /v1/broadcasts/{broadcast_id}/pause
curl -X POST "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/pause" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
Sends to WhatsApp

Continues a paused WhatsApp broadcast from where it stopped. Reaches real phones and is billed.

Permission: broadcasts:change

Path parameters (1)

bashPOST /v1/broadcasts/{broadcast_id}/resume
curl -X POST "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/resume" \
  -H "Authorization: Bearer $SHEETWA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Destructive

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)

bashPOST /v1/broadcasts/{broadcast_id}/cancel
curl -X POST "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/cancel" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"
POST/v1/broadcasts/{broadcast_id}/retry#

Resend to failed recipients

Sends to WhatsApp

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)

Body parameters (2)

bashPOST /v1/broadcasts/{broadcast_id}/retry
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"
    ]
  }'
Sends to WhatsApp

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)

Body parameters (1)

  • scheduled_atrequired

    string

    New time, ISO 8601 with offset, in the future.
bashPATCH /v1/broadcasts/{broadcast_id}/retry
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"
  }'
Writes data

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)

bashDELETE /v1/broadcasts/{broadcast_id}/retry
curl -X DELETE "https://backend.sheetwa.com/v1/broadcasts/BROADCAST_ID/retry" \
  -H "Authorization: Bearer $SHEETWA_API_KEY"