API reference
Broadcasts
How these fit together: the Broadcasts guide.
List broadcasts
get
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
limitintegerHow many items to return.
cursorstringThe
nextCursorof the previous page. Omit for the first page.statusstringOne of
draftscheduledrunningpausedcompletedcancelledfailed
Response 200PublicBroadcastPage
dataPublicBroadcast[]RequiredIts fields are listed under Get broadcast
nextCursorstring | nullRequiredPass back as
cursorfor the next page; null on the last.
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/broadcasts' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"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
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-KeystringMakes 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
audiencePublicBroadcastAudienceInputRequired6 fields of
audienceallContactsbooleanEvery 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 (
attributesonPOST /v1/contacts) equal to these values; every clause must hold.at most 10 items
2 fields of
attributeskeystringRequiredvaluestringRequired
contactIdsstring[]These contacts (at most 10000). An id that is not one of the organization's contacts matches nothing.
at most 10000 items
excludeMessagedWithinHoursintegerLeave out contacts sent a WhatsApp message within this many hours.
1–720
tagModestringany: at least one tag;all: every tag.One of
anyalldefault "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
dailyCapintegerAt most this many sends in any 24 hours.
1–1000000
descriptionstringat most 1000 characters
endsAtstring (date-time)Stop at this time: recipients not reached by then are skipped (
EXPIRED). After the start.maxPerSecondintegerMessages per second, under the deployment’s ceiling (
BROADCAST_MAX_MPS).1–1000default 20
namestringRequired2–160 characters
scheduledAtstring (date-time)Start later:
scheduleduntil then. Omitted, past, or within the next minute: it starts now (running).senderIdsstring[]The WhatsApp numbers to send from (
numbers[].senderIdonGET /v1/whatsapp/account). Omitted: the default number.at most 20 items
senderStrategystringsinglesends from one number (the firstsenderId);rotatespreads recipients over all of them.One of
singlerotatedefault "single"
sendingWindowCallingWindowThe hours it may send, in
timezone. Omitted: the deployment default. Outside them it waits.3 fields of
sendingWindowdaysinteger[]ISO weekdays the window applies on (1 = Monday). Omit for every day.
endstringRequiredExclusive local end (24h). Earlier than start means the window wraps midnight.
startstringRequiredInclusive local start (24h).
templatePublicMessageTemplateSelectorRequiredAn approved WhatsApp MARKETING or UTILITY template, by
idor byname+language.3 fields of
templateidstring (uuid)The template’s id. Or name it by
name+language.languagestringat most 16 characters
namestringat most 160 characters
timezonestringThe 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
variablesfallbackstringUsed when the contact has no usable value. Without one, such a contact is skipped (
MISSING_VARIABLE).at most 256 characters
fieldstringcontact_field: one of these — never the phone number, the email address or notes.One of
displayNamefirstNamecompanyjobTitlecitystatepreferredLanguageleadSourceexternalReferencekeystringcustom_field: the attribute’s name. A name that announces a way to reach the contact (phone, email, WhatsApp, notes) is refused.sourcestringRequiredliteral: the samevaluefor everyone;contact_field: a contact field (field);custom_field: a custom attribute (key).One of
literalcontact_fieldcustom_fieldvaluestringliteral: the value (for a media header, a public https link).at most 2048 characters
variablestringRequiredThe template variable (its
variablesentry onGET /v1/templates/:id).
Response 201PublicBroadcast
Its fields are listed under Get broadcast.
Errors
400VALIDATION_FAILED — a malformed request, an unnamed or contradictory audience, a variable left unbound (or bound to something the template does not have), an AUTHENTICATION template, an unknown timezone, an end before the start, or an unknown senderId.401API_KEY_INVALID — missing, unknown, revoked or expired key.402BILLING_INSUFFICIENT_CREDIT (the estimate exceeds the wallet less what running broadcasts still need), BILLING_SUBSCRIPTION_PAST_DUE, BILLING_SUBSCRIPTION_SUSPENDED or BILLING_SUBSCRIPTION_CANCELED — never in shadow mode.403ENTITLEMENT_MESSAGING_DISABLED — the organization does not have messaging. API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404TEMPLATE_NOT_FOUND — no such WhatsApp template.409TEMPLATE_NOT_SENDABLE (not approved, or deleted), WHATSAPP_NOT_CONNECTED, NO_SENDER_AVAILABLE (no chosen or default number can send: none, restricted or quality-RED), AUDIENCE_EMPTY (nobody in it can be sent to;audiencecarries the counts by reason), ORGANIZATION_NOT_ACTIVE; IDEMPOTENCY_KEY_IN_FLIGHT.422AUDIENCE_TOO_LARGE — it matches more contacts than one broadcast may reach (matched,limit); IDEMPOTENCY_KEY_REUSED.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).503BILLING_RATE_UNAVAILABLE — the plan prices no such message (never in shadow mode).
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"
}
]
}'{
"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
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 fieldsHide the fields
audiencePublicBroadcastAudienceRequired7 fields of
audienceattributesPublicBroadcastAttribute[]Required2 fields of
attributeskeystringRequiredvaluestringRequired
contactIdCountintegerRequiredHow many contacts were named by id (
audience.contactIds); the ids are not echoed.excludeMessagedWithinHoursinteger | nullRequiredstagesstring[]RequiredLifecycle stages, for a broadcast made in the console (lower case). Empty for one made through the API.
tagModestring | nullRequiredOne of
anyalltagsstring[]RequiredteamCountintegerRequiredHow many console teams the audience is limited to. 0 for one made through the API.
cancelledAtstring (date-time) | nullRequiredchannelstringRequiredThe template’s channel: a WhatsApp, SMS (DLT) or email template broadcasts the same way.
One of
whatsappsmsemailcompletedAtstring (date-time) | nullRequiredcountsPublicBroadcastCountsRequired10 fields of
countscancelledintegerRequiredNever sent: the broadcast was cancelled.
deliveredintegerRequiredfailedintegerRequiredpendingintegerRequiredNot dispatched yet.
queuedintegerRequiredreadintegerRequiredrecipientsintegerRequiredEveryone in the audience snapshot.
sendingintegerRequiredsentintegerRequiredskippedintegerRequiredNever sent: no opt-in, opted out, blocked, a missing variable, undeliverable, or the end time passed first.
createdAtstring (date-time)RequireddailyCapinteger | nullRequireddescriptionstring | nullRequiredendsAtstring (date-time) | nullRequiredestimatedCostMinorinteger | nullRequiredEstimated at launch: eligible recipients × the plan’s rate, in minor units of the wallet’s currency.
holdReasonstring | nullRequiredWhy 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)RequiredlivemodebooleanRequiredFalse when a test-mode (
tc_test_…) key created it: it went to a sandbox, never to a real provider, and was never billed.maxPerSecondintegerRequirednamestringRequiredobjectstringRequiredOne of
broadcastpausedAtstring (date-time) | nullRequiredscheduledAtstring (date-time) | nullRequiredsenderIdsstring[]RequiredThe WhatsApp numbers it sends from (
senderIds). Empty: the default number.senderStrategystringRequiredOne of
singlerotatesendingWindowPublicBroadcastSendingWindow | nullRequiredThe hours it may send, in
timezone. Null: the deployment default.3 fields of
sendingWindowdaysinteger[]RequiredendstringRequiredstartstringRequired
startedAtstring (date-time) | nullRequiredstatusstringRequiredscheduled→running⇄paused→completed, orcancelled, orfailed.draftonly for a console draft.One of
draftscheduledrunningpausedcompletedcancelledfailedstatusReasonstring | nullRequiredWhy 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 | nullRequired4 fields of
templatecategorystringRequiredidstring (uuid)RequiredlanguagestringRequirednamestringRequired
timezonestringRequiredupdatedAtstring (date-time)RequiredvariablesPublicBroadcastVariable[]Required6 fields of
variablesfallbackstring | nullRequiredfieldstring | nullRequiredOne of
displayNamefirstNamecompanyjobTitlecitystatepreferredLanguageleadSourceexternalReferencekeystring | nullRequiredsourcestringRequiredOne of
literalcontact_fieldcustom_fieldvaluestring | nullRequiredvariablestringRequired
Errors
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such broadcast.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault; retry with backoff (with the same Idempotency-Key on a write).
curl 'https://api.trovacast.com/v1/broadcasts/BROADCAST_ID' \
-H "Authorization: Bearer $TROVACAST_API_KEY"{
"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
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-KeystringMakes 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
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such broadcast.409BROADCAST_INVALID_STATE — its status does not allow this (e.g. pausing a completed broadcast); CONFLICT — it changed twice while this ran, retry. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/broadcasts/BROADCAST_ID/cancel' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"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
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-KeystringMakes 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
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.403API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such broadcast.409BROADCAST_INVALID_STATE — its status does not allow this (e.g. pausing a completed broadcast); CONFLICT — it changed twice while this ran, retry. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).
curl -X POST 'https://api.trovacast.com/v1/broadcasts/BROADCAST_ID/pause' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"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
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-KeystringMakes 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
400VALIDATION_FAILED — the request is malformed.401API_KEY_INVALID — missing, unknown, revoked or expired key.402BILLING_* — the wallet does not cover what is left to send (never in shadow mode).403ENTITLEMENT_MESSAGING_DISABLED — the organization does not have messaging. API_KEY_SCOPE_MISSING or API_KEY_KIND_MISMATCH — the key may not call this endpoint.404NOT_FOUND — no such broadcast.409TEMPLATE_NOT_SENDABLE, WHATSAPP_NOT_CONNECTED, NO_SENDER_AVAILABLE, ORGANIZATION_NOT_ACTIVE; BROADCAST_INVALID_STATE — its status does not allow this (e.g. pausing a completed broadcast); CONFLICT — it changed twice while this ran, retry. IDEMPOTENCY_KEY_IN_FLIGHT — the first request with this Idempotency-Key is still running (retry afterRetry-After); or CONFLICT.422IDEMPOTENCY_KEY_REUSED — this Idempotency-Key was used for a different request.429RATE_LIMITED — retry afterRetry-Afterseconds.500INTERNAL_ERROR — our fault. With an Idempotency-Key, every retry with that key replays this answer (Idempotent-Replayed: true).503BILLING_RATE_UNAVAILABLE — the plan prices no such message (never in shadow mode).
curl -X POST 'https://api.trovacast.com/v1/broadcasts/BROADCAST_ID/resume' \
-H "Authorization: Bearer $TROVACAST_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"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"
}
]
}