Skip to main content
POST
Create broadcast

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
channel
enum<string>
required

Channel to send the broadcast over.

Available options:
omnichannel,
webchat,
messenger,
whatsapp,
zalo,
smtp,
telegram,
instagram,
threads,
tiktok,
api
subaction
enum<string>
required

Audience sub-action filter.

Available options:
allContacts,
messengerActiveContacts,
messengerTemplateMessage,
whatsappTemplateMessage,
whatsappWithin24Hours,
instagramActiveContacts,
telegramAllContacts,
tiktokActiveContacts
schedulesType
enum<string>
required

When to send: immediately (now) or at schedulesAt (future).

Available options:
now,
future
schedulesAt
string | null
required

ISO 8601 send time, required when schedulesType is future and not a draft.

contactFilter
object
required

Structured filter selecting the recipient audience. See contacts.listFilterFields.

flowId
string

Flow id (numeric string) to send. Provide this or templateId, not both.

Pattern: ^\d+$
templateId
string

WhatsApp template id (numeric string) to send. Provide this or flowId, not both.

Pattern: ^\d+$
integrationWhatsappId
string

WhatsApp integration id (numeric string) to send from.

Pattern: ^\d+$
integrationMessengerId
string

Messenger integration id (numeric string) to send from.

Pattern: ^\d+$
templateData
object

Parameters for the WhatsApp template, when sending a single-page broadcast.

buttons
object[]

Button overrides for the WhatsApp template.

targets
object[]

Per-page targets for a multi-page broadcast, each with its own template/flow.

inboxIds
string[]

Inbox ids (numeric strings) this broadcast sends from.

Pattern: ^\d+$
saveAsDraft
boolean

Save as a draft instead of scheduling/sending immediately.

Response

OK

name
string
required
status
enum<string>
required
Available options:
scheduled,
sent,
sending,
cancelled,
draft,
failed
schedulesType
enum<string>
required
Available options:
now,
future
schedulesAt
string<date-time>
required
contactCount
integer | null
required
Required range: -2147483648 <= x <= 2147483647
id
any
flowId
unknown