Jump to

  • Quickstarts
  • API reference
  • Webhook events
  • Error codes
  • SDKs

API reference

Broadcasts

How these fit together: the Broadcasts guide.

List broadcasts

get/v1/broadcasts

Lists broadcasts, newest first, with their counts.

Filter by status. Each broadcast carries its configuration and counts of where its recipients stand; the recipients themselves are never listed — read who a broadcast reached message by message with GET /v1/messages. A key lists the broadcasts of its own mode only.

Access: an organization key with the broadcasts:read scope.

Query parameters

  • limitinteger

    How many items to return.

  • cursorstring

    The nextCursor of the previous page. Omit for the first page.

  • statusstring

    One ofdraftscheduledrunningpausedcompletedcancelledfailed

Response 200PublicBroadcastPage

  • dataPublicBroadcast[]Required

    Its fields are listed under Get broadcast

  • nextCursorstring | nullRequired

    Pass back as cursor for the next page; null on the last.

Errors

Request
curl 'https://api.trovacast.com/v1/broadcasts' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "data": [
    {
      "audience": {
        "attributes": [
          {
            "key": "city_zone",
            "value": "north"
          }
        ],
        "contactIdCount": 1,
        "excludeMessagedWithinHours": 1,
        "stages": [
          "STAGES"
        ],
        "tagMode": "any",
        "tags": [
          "TAGS"
        ],
        "teamCount": 1
      },
      "cancelledAt": "2026-11-05T10:00:00.000Z",
      "channel": "whatsapp",
      "completedAt": "2026-11-05T10:00:00.000Z",
      "counts": {
        "cancelled": 1,
        "delivered": 1,
        "failed": 1,
        "pending": 1,
        "queued": 1,
        "read": 1,
        "recipients": 1,
        "sending": 1,
        "sent": 1,
        "skipped": 1
      },
      "createdAt": "2026-11-05T10:00:00.000Z",
      "dailyCap": 1,
      "description": "DESCRIPTION",
      "endsAt": "2026-11-05T10:00:00.000Z",
      "estimatedCostMinor": 1,
      "holdReason": "TIER_LIMIT",
      "id": "ID",
      "livemode": true,
      "maxPerSecond": 1,
      "name": "Diwali offer",
      "object": "broadcast",
      "pausedAt": "2026-11-05T10:00:00.000Z",
      "scheduledAt": "2026-11-05T10:00:00.000Z",
      "senderIds": [
        "SENDER_IDS"
      ],
      "senderStrategy": "single",
      "sendingWindow": {
        "days": [
          1,
          2,
          3,
          4,
          5
        ],
        "end": "21:00",
        "start": "09:00"
      },
      "startedAt": "2026-11-05T10:00:00.000Z",
      "status": "draft",
      "statusReason": "TEMPLATE_NOT_APPROVED",
      "template": {
        "category": "MARKETING",
        "id": "ID",
        "language": "en",
        "name": "diwali_offer"
      },
      "timezone": "Asia/Kolkata",
      "updatedAt": "2026-11-05T10:00:00.000Z",
      "variables": [
        {
          "fallback": "FALLBACK",
          "field": "displayName",
          "key": "KEY",
          "source": "literal",
          "value": "VALUE",
          "variable": "var1"
        }
      ]
    }
  ],
  "nextCursor": "NEXT_CURSOR"
}

Create broadcast

post/v1/broadcasts

Sends an approved template (WhatsApp, SMS or email) to an audience of contacts, now or at a set time.

Creates the broadcast and starts it (running), or schedules it (scheduled) when scheduledAt is more than a minute out; its channel is its template’s. Every gate — the template, a number or channel that can send, an audience with someone reachable in it, the wallet against the estimate — is judged before anything is written, so a refusal leaves nothing behind; consent and billing are applied per recipient as it sends, and who it reached is read message by message with GET /v1/messages. Send an Idempotency-Key: a retry is answered with the first broadcast, never a second one. The main refusals are 409 AUDIENCE_EMPTY (with the counts by reason), 409 TEMPLATE_NOT_SENDABLE, 409 NO_SENDER_AVAILABLE, 422 AUDIENCE_TOO_LARGE and 402 BILLING_INSUFFICIENT_CREDIT.

Access: an organization key with the broadcasts:write scope.

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Request body

  • audiencePublicBroadcastAudienceInputRequired

    6 fields of audience
    • allContactsboolean

      Every contact of the organization (still only those with WhatsApp consent receive it). Required to send with no other filter; not combined with one.

    • attributesAudienceCustomFieldEquals[]

      Custom attributes (attributes on POST /v1/contacts) equal to these values; every clause must hold.

      at most 10 items

      2 fields of attributes
      • keystringRequired

      • valuestringRequired

    • contactIdsstring[]

      These contacts (at most 10000). An id that is not one of the organization's contacts matches nothing.

      at most 10000 items

    • excludeMessagedWithinHoursinteger

      Leave out contacts sent a WhatsApp message within this many hours.

      1–720

    • tagModestring

      any: at least one tag; all: every tag.

      One ofanyall

      default "any"

    • tagsstring[]

      Contacts carrying any (or all, tagMode) of these tags, exact match — the contact tags of the console and imports.

      at most 20 items

  • dailyCapinteger

    At most this many sends in any 24 hours.

    1–1000000

  • descriptionstring

    at most 1000 characters

  • endsAtstring (date-time)

    Stop at this time: recipients not reached by then are skipped (EXPIRED). After the start.

  • maxPerSecondinteger

    Messages per second, under the deployment’s ceiling (BROADCAST_MAX_MPS).

    1–1000default 20

  • namestringRequired

    2–160 characters

  • scheduledAtstring (date-time)

    Start later: scheduled until then. Omitted, past, or within the next minute: it starts now (running).

  • senderIdsstring[]

    The WhatsApp numbers to send from (numbers[].senderId on GET /v1/whatsapp/account). Omitted: the default number.

    at most 20 items

  • senderStrategystring

    single sends from one number (the first senderId); rotate spreads recipients over all of them.

    One ofsinglerotate

    default "single"

  • sendingWindowCallingWindow

    The hours it may send, in timezone. Omitted: the deployment default. Outside them it waits.

    3 fields of sendingWindow
    • daysinteger[]

      ISO weekdays the window applies on (1 = Monday). Omit for every day.

    • endstringRequired

      Exclusive local end (24h). Earlier than start means the window wraps midnight.

    • startstringRequired

      Inclusive local start (24h).

  • templatePublicMessageTemplateSelectorRequired

    An approved WhatsApp MARKETING or UTILITY template, by id or by name + language.

    3 fields of template
    • idstring (uuid)

      The template’s id. Or name it by name + language.

    • languagestring

      at most 16 characters

    • namestring

      at most 160 characters

  • timezonestring

    The IANA timezone of sendingWindow.

    at most 64 charactersdefault "Asia/Kolkata"

  • variablesPublicBroadcastVariableInput[]

    Every template variable, bound once. Omit for a template without variables.

    at most 20 items

    6 fields of variables
    • fallbackstring

      Used when the contact has no usable value. Without one, such a contact is skipped (MISSING_VARIABLE).

      at most 256 characters

    • fieldstring

      contact_field: one of these — never the phone number, the email address or notes.

      One ofdisplayNamefirstNamecompanyjobTitlecitystatepreferredLanguageleadSourceexternalReference

    • keystring

      custom_field: the attribute’s name. A name that announces a way to reach the contact (phone, email, WhatsApp, notes) is refused.

    • sourcestringRequired

      literal: the same value for everyone; contact_field: a contact field (field); custom_field: a custom attribute (key).

      One ofliteralcontact_fieldcustom_field

    • valuestring

      literal: the value (for a media header, a public https link).

      at most 2048 characters

    • variablestringRequired

      The template variable (its variables entry on GET /v1/templates/:id).

Response 201PublicBroadcast

Its fields are listed under Get broadcast.

Errors

Request
curl -X POST 'https://api.trovacast.com/v1/broadcasts' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H 'Idempotency-Key: broadcast-diwali-2026' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Diwali offer",
  "template": {
    "name": "diwali_offer",
    "language": "en"
  },
  "audience": {
    "tags": [
      "vip"
    ]
  },
  "variables": [
    {
      "variable": "var1",
      "source": "contact_field",
      "field": "firstName",
      "fallback": "there"
    }
  ]
}'
Response 201 (json)
{
  "audience": {
    "attributes": [
      {
        "key": "city_zone",
        "value": "north"
      }
    ],
    "contactIdCount": 1,
    "excludeMessagedWithinHours": 1,
    "stages": [
      "STAGES"
    ],
    "tagMode": "any",
    "tags": [
      "TAGS"
    ],
    "teamCount": 1
  },
  "cancelledAt": "2026-11-05T10:00:00.000Z",
  "channel": "whatsapp",
  "completedAt": "2026-11-05T10:00:00.000Z",
  "counts": {
    "cancelled": 1,
    "delivered": 1,
    "failed": 1,
    "pending": 1,
    "queued": 1,
    "read": 1,
    "recipients": 1,
    "sending": 1,
    "sent": 1,
    "skipped": 1
  },
  "createdAt": "2026-11-05T10:00:00.000Z",
  "dailyCap": 1,
  "description": "DESCRIPTION",
  "endsAt": "2026-11-05T10:00:00.000Z",
  "estimatedCostMinor": 1,
  "holdReason": "TIER_LIMIT",
  "id": "ID",
  "livemode": true,
  "maxPerSecond": 1,
  "name": "Diwali offer",
  "object": "broadcast",
  "pausedAt": "2026-11-05T10:00:00.000Z",
  "scheduledAt": "2026-11-05T10:00:00.000Z",
  "senderIds": [
    "SENDER_IDS"
  ],
  "senderStrategy": "single",
  "sendingWindow": {
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "end": "21:00",
    "start": "09:00"
  },
  "startedAt": "2026-11-05T10:00:00.000Z",
  "status": "draft",
  "statusReason": "TEMPLATE_NOT_APPROVED",
  "template": {
    "category": "MARKETING",
    "id": "ID",
    "language": "en",
    "name": "diwali_offer"
  },
  "timezone": "Asia/Kolkata",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "variables": [
    {
      "fallback": "FALLBACK",
      "field": "displayName",
      "key": "KEY",
      "source": "literal",
      "value": "VALUE",
      "variable": "var1"
    }
  ]
}

Get broadcast

get/v1/broadcasts/{broadcastId}

Retrieves a broadcast and where its recipients stand.

Its configuration, status — with statusReason when it is paused, failed or ended early, and holdReason while a running broadcast sent nothing on its last pass (throttled, a tier limit, its daily cap, the wallet) — and the counts of its recipients by outcome. A key reads the broadcasts of its own mode only.

Access: an organization key with the broadcasts:read scope.

Path parameters

  • broadcastIdstringRequired

Response 200PublicBroadcast

Show the 28 fields
  • audiencePublicBroadcastAudienceRequired

    7 fields of audience
    • attributesPublicBroadcastAttribute[]Required

      2 fields of attributes
      • keystringRequired

      • valuestringRequired

    • contactIdCountintegerRequired

      How many contacts were named by id (audience.contactIds); the ids are not echoed.

    • excludeMessagedWithinHoursinteger | nullRequired

    • stagesstring[]Required

      Lifecycle stages, for a broadcast made in the console (lower case). Empty for one made through the API.

    • tagModestring | nullRequired

      One ofanyall

    • tagsstring[]Required

    • teamCountintegerRequired

      How many console teams the audience is limited to. 0 for one made through the API.

  • cancelledAtstring (date-time) | nullRequired

  • channelstringRequired

    The template’s channel: a WhatsApp, SMS (DLT) or email template broadcasts the same way.

    One ofwhatsappsmsemail

  • completedAtstring (date-time) | nullRequired

  • countsPublicBroadcastCountsRequired

    10 fields of counts
    • cancelledintegerRequired

      Never sent: the broadcast was cancelled.

    • deliveredintegerRequired

    • failedintegerRequired

    • pendingintegerRequired

      Not dispatched yet.

    • queuedintegerRequired

    • readintegerRequired

    • recipientsintegerRequired

      Everyone in the audience snapshot.

    • sendingintegerRequired

    • sentintegerRequired

    • skippedintegerRequired

      Never sent: no opt-in, opted out, blocked, a missing variable, undeliverable, or the end time passed first.

  • createdAtstring (date-time)Required

  • dailyCapinteger | nullRequired

  • descriptionstring | nullRequired

  • endsAtstring (date-time) | nullRequired

  • estimatedCostMinorinteger | nullRequired

    Estimated at launch: eligible recipients × the plan’s rate, in minor units of the wallet’s currency.

  • holdReasonstring | nullRequired

    Why a running broadcast sent nothing on its last pass (cleared once it sends again): THROTTLED, INTERACTIVE_BACKLOG, TIER_LIMIT, DAILY_CAP or a BILLING_* code.

  • idstring (uuid)Required

  • livemodebooleanRequired

    False when a test-mode (tc_test_…) key created it: it went to a sandbox, never to a real provider, and was never billed.

  • maxPerSecondintegerRequired

  • namestringRequired

  • objectstringRequired

    One ofbroadcast

  • pausedAtstring (date-time) | nullRequired

  • scheduledAtstring (date-time) | nullRequired

  • senderIdsstring[]Required

    The WhatsApp numbers it sends from (senderIds). Empty: the default number.

  • senderStrategystringRequired

    One ofsinglerotate

  • sendingWindowPublicBroadcastSendingWindow | nullRequired

    The hours it may send, in timezone. Null: the deployment default.

    3 fields of sendingWindow
    • daysinteger[]Required

    • endstringRequired

    • startstringRequired

  • startedAtstring (date-time) | nullRequired

  • statusstringRequired

    scheduled → running ⇄ paused → completed, or cancelled, or failed. draft only for a console draft.

    One ofdraftscheduledrunningpausedcompletedcancelledfailed

  • statusReasonstring | nullRequired

    Why it is paused, failed, or ended early: OPERATOR, TEMPLATE_NOT_APPROVED, CHANNEL_UNAVAILABLE, NO_HEALTHY_SENDER, TEMPLATE_DELETED, AUDIENCE_TOO_LARGE, EXPIRED, VARIABLES_INVALID.

  • templatePublicBroadcastTemplate | nullRequired

    4 fields of template
    • categorystringRequired

    • idstring (uuid)Required

    • languagestringRequired

    • namestringRequired

  • timezonestringRequired

  • updatedAtstring (date-time)Required

  • variablesPublicBroadcastVariable[]Required

    6 fields of variables
    • fallbackstring | nullRequired

    • fieldstring | nullRequired

      One ofdisplayNamefirstNamecompanyjobTitlecitystatepreferredLanguageleadSourceexternalReference

    • keystring | nullRequired

    • sourcestringRequired

      One ofliteralcontact_fieldcustom_field

    • valuestring | nullRequired

    • variablestringRequired

Errors

Request
curl 'https://api.trovacast.com/v1/broadcasts/BROADCAST_ID' \
  -H "Authorization: Bearer $TROVACAST_API_KEY"
Response 200 (json)
{
  "audience": {
    "attributes": [
      {
        "key": "city_zone",
        "value": "north"
      }
    ],
    "contactIdCount": 1,
    "excludeMessagedWithinHours": 1,
    "stages": [
      "STAGES"
    ],
    "tagMode": "any",
    "tags": [
      "TAGS"
    ],
    "teamCount": 1
  },
  "cancelledAt": "2026-11-05T10:00:00.000Z",
  "channel": "whatsapp",
  "completedAt": "2026-11-05T10:00:00.000Z",
  "counts": {
    "cancelled": 1,
    "delivered": 1,
    "failed": 1,
    "pending": 1,
    "queued": 1,
    "read": 1,
    "recipients": 1,
    "sending": 1,
    "sent": 1,
    "skipped": 1
  },
  "createdAt": "2026-11-05T10:00:00.000Z",
  "dailyCap": 1,
  "description": "DESCRIPTION",
  "endsAt": "2026-11-05T10:00:00.000Z",
  "estimatedCostMinor": 1,
  "holdReason": "TIER_LIMIT",
  "id": "ID",
  "livemode": true,
  "maxPerSecond": 1,
  "name": "Diwali offer",
  "object": "broadcast",
  "pausedAt": "2026-11-05T10:00:00.000Z",
  "scheduledAt": "2026-11-05T10:00:00.000Z",
  "senderIds": [
    "SENDER_IDS"
  ],
  "senderStrategy": "single",
  "sendingWindow": {
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "end": "21:00",
    "start": "09:00"
  },
  "startedAt": "2026-11-05T10:00:00.000Z",
  "status": "draft",
  "statusReason": "TEMPLATE_NOT_APPROVED",
  "template": {
    "category": "MARKETING",
    "id": "ID",
    "language": "en",
    "name": "diwali_offer"
  },
  "timezone": "Asia/Kolkata",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "variables": [
    {
      "fallback": "FALLBACK",
      "field": "displayName",
      "key": "KEY",
      "source": "literal",
      "value": "VALUE",
      "variable": "var1"
    }
  ]
}

Cancel broadcast

post/v1/broadcasts/{broadcastId}/cancel

Cancels a scheduled, running or paused broadcast.

Stops it for good: recipients not yet sent to are cancelled and its messages still queued fail with failure.code BROADCAST_CANCELLED; what was already sent stays sent. Cancelling a cancelled broadcast answers it as it is. Refused with 409 BROADCAST_INVALID_STATE once it has completed or failed. Audited against the key (broadcast.cancelled).

Access: an organization key with the broadcasts:write scope.

Path parameters

  • broadcastIdstringRequired

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Response 200PublicBroadcast

Its fields are listed under Get broadcast.

Errors

Request
curl -X POST 'https://api.trovacast.com/v1/broadcasts/BROADCAST_ID/cancel' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response 200 (json)
{
  "audience": {
    "attributes": [
      {
        "key": "city_zone",
        "value": "north"
      }
    ],
    "contactIdCount": 1,
    "excludeMessagedWithinHours": 1,
    "stages": [
      "STAGES"
    ],
    "tagMode": "any",
    "tags": [
      "TAGS"
    ],
    "teamCount": 1
  },
  "cancelledAt": "2026-11-05T10:00:00.000Z",
  "channel": "whatsapp",
  "completedAt": "2026-11-05T10:00:00.000Z",
  "counts": {
    "cancelled": 1,
    "delivered": 1,
    "failed": 1,
    "pending": 1,
    "queued": 1,
    "read": 1,
    "recipients": 1,
    "sending": 1,
    "sent": 1,
    "skipped": 1
  },
  "createdAt": "2026-11-05T10:00:00.000Z",
  "dailyCap": 1,
  "description": "DESCRIPTION",
  "endsAt": "2026-11-05T10:00:00.000Z",
  "estimatedCostMinor": 1,
  "holdReason": "TIER_LIMIT",
  "id": "ID",
  "livemode": true,
  "maxPerSecond": 1,
  "name": "Diwali offer",
  "object": "broadcast",
  "pausedAt": "2026-11-05T10:00:00.000Z",
  "scheduledAt": "2026-11-05T10:00:00.000Z",
  "senderIds": [
    "SENDER_IDS"
  ],
  "senderStrategy": "single",
  "sendingWindow": {
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "end": "21:00",
    "start": "09:00"
  },
  "startedAt": "2026-11-05T10:00:00.000Z",
  "status": "draft",
  "statusReason": "TEMPLATE_NOT_APPROVED",
  "template": {
    "category": "MARKETING",
    "id": "ID",
    "language": "en",
    "name": "diwali_offer"
  },
  "timezone": "Asia/Kolkata",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "variables": [
    {
      "fallback": "FALLBACK",
      "field": "displayName",
      "key": "KEY",
      "source": "literal",
      "value": "VALUE",
      "variable": "var1"
    }
  ]
}

Pause broadcast

post/v1/broadcasts/{broadcastId}/pause

Pauses a running broadcast.

Its messages still waiting in the send queue are taken back, and a resume sends them afresh. Pausing a paused broadcast answers it as it is, so a retry converges. Refused with 409 BROADCAST_INVALID_STATE for a broadcast that is not running (a scheduled one included: cancel it instead). Audited against the key (broadcast.paused).

Access: an organization key with the broadcasts:write scope.

Path parameters

  • broadcastIdstringRequired

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Response 200PublicBroadcast

Its fields are listed under Get broadcast.

Errors

Request
curl -X POST 'https://api.trovacast.com/v1/broadcasts/BROADCAST_ID/pause' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response 200 (json)
{
  "audience": {
    "attributes": [
      {
        "key": "city_zone",
        "value": "north"
      }
    ],
    "contactIdCount": 1,
    "excludeMessagedWithinHours": 1,
    "stages": [
      "STAGES"
    ],
    "tagMode": "any",
    "tags": [
      "TAGS"
    ],
    "teamCount": 1
  },
  "cancelledAt": "2026-11-05T10:00:00.000Z",
  "channel": "whatsapp",
  "completedAt": "2026-11-05T10:00:00.000Z",
  "counts": {
    "cancelled": 1,
    "delivered": 1,
    "failed": 1,
    "pending": 1,
    "queued": 1,
    "read": 1,
    "recipients": 1,
    "sending": 1,
    "sent": 1,
    "skipped": 1
  },
  "createdAt": "2026-11-05T10:00:00.000Z",
  "dailyCap": 1,
  "description": "DESCRIPTION",
  "endsAt": "2026-11-05T10:00:00.000Z",
  "estimatedCostMinor": 1,
  "holdReason": "TIER_LIMIT",
  "id": "ID",
  "livemode": true,
  "maxPerSecond": 1,
  "name": "Diwali offer",
  "object": "broadcast",
  "pausedAt": "2026-11-05T10:00:00.000Z",
  "scheduledAt": "2026-11-05T10:00:00.000Z",
  "senderIds": [
    "SENDER_IDS"
  ],
  "senderStrategy": "single",
  "sendingWindow": {
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "end": "21:00",
    "start": "09:00"
  },
  "startedAt": "2026-11-05T10:00:00.000Z",
  "status": "draft",
  "statusReason": "TEMPLATE_NOT_APPROVED",
  "template": {
    "category": "MARKETING",
    "id": "ID",
    "language": "en",
    "name": "diwali_offer"
  },
  "timezone": "Asia/Kolkata",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "variables": [
    {
      "fallback": "FALLBACK",
      "field": "displayName",
      "key": "KEY",
      "source": "literal",
      "value": "VALUE",
      "variable": "var1"
    }
  ]
}

Resume broadcast

post/v1/broadcasts/{broadcastId}/resume

Resumes a paused broadcast.

Re-gated like a launch: the template must still be approved, a number must be able to send and the wallet must cover what is left — refused otherwise with 409 TEMPLATE_NOT_SENDABLE, NO_SENDER_AVAILABLE or WHATSAPP_NOT_CONNECTED, or 402 BILLING_INSUFFICIENT_CREDIT. Resuming a running broadcast answers it as it is; any other broadcast that is not paused is refused with 409 BROADCAST_INVALID_STATE. Audited against the key (broadcast.resumed).

Access: an organization key with the broadcasts:write scope.

Path parameters

  • broadcastIdstringRequired

Headers

  • Idempotency-Keystring

    Makes the request safe to retry: a repeat with the same key and the same body returns the stored success (with Idempotent-Replayed: true) instead of running again; a 4xx stores nothing. A 5xx is stored and replayed to every retry with the same key (Idempotent-Replayed: true): the first attempt may have taken effect, so check before retrying with a new key — except the errors that provably changed nothing (503 MESSAGING_TRANSPORT, 503 WHATSAPP_CONNECT_UNAVAILABLE; see https://trovacast.com/developers/idempotency), which store nothing, so a retry with the same key runs again. 1–255 visible ASCII characters; kept for 24 hours.

Response 200PublicBroadcast

Its fields are listed under Get broadcast.

Errors

Request
curl -X POST 'https://api.trovacast.com/v1/broadcasts/BROADCAST_ID/resume' \
  -H "Authorization: Bearer $TROVACAST_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response 200 (json)
{
  "audience": {
    "attributes": [
      {
        "key": "city_zone",
        "value": "north"
      }
    ],
    "contactIdCount": 1,
    "excludeMessagedWithinHours": 1,
    "stages": [
      "STAGES"
    ],
    "tagMode": "any",
    "tags": [
      "TAGS"
    ],
    "teamCount": 1
  },
  "cancelledAt": "2026-11-05T10:00:00.000Z",
  "channel": "whatsapp",
  "completedAt": "2026-11-05T10:00:00.000Z",
  "counts": {
    "cancelled": 1,
    "delivered": 1,
    "failed": 1,
    "pending": 1,
    "queued": 1,
    "read": 1,
    "recipients": 1,
    "sending": 1,
    "sent": 1,
    "skipped": 1
  },
  "createdAt": "2026-11-05T10:00:00.000Z",
  "dailyCap": 1,
  "description": "DESCRIPTION",
  "endsAt": "2026-11-05T10:00:00.000Z",
  "estimatedCostMinor": 1,
  "holdReason": "TIER_LIMIT",
  "id": "ID",
  "livemode": true,
  "maxPerSecond": 1,
  "name": "Diwali offer",
  "object": "broadcast",
  "pausedAt": "2026-11-05T10:00:00.000Z",
  "scheduledAt": "2026-11-05T10:00:00.000Z",
  "senderIds": [
    "SENDER_IDS"
  ],
  "senderStrategy": "single",
  "sendingWindow": {
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "end": "21:00",
    "start": "09:00"
  },
  "startedAt": "2026-11-05T10:00:00.000Z",
  "status": "draft",
  "statusReason": "TEMPLATE_NOT_APPROVED",
  "template": {
    "category": "MARKETING",
    "id": "ID",
    "language": "en",
    "name": "diwali_offer"
  },
  "timezone": "Asia/Kolkata",
  "updatedAt": "2026-11-05T10:00:00.000Z",
  "variables": [
    {
      "fallback": "FALLBACK",
      "field": "displayName",
      "key": "KEY",
      "source": "literal",
      "value": "VALUE",
      "variable": "var1"
    }
  ]
}