Skip to main content
POST
Send transactional broadcast

Authorizations

Authorization
string
header
required

Bearer token authentication using your API key

Path Parameters

org_id
string
required

Org ID

broadcast_id
string
required

Broadcast ID

Body

Schema for firing one trigger on a transactional broadcast. Recipient identifier fields are at the root. Fans out across the broadcast templates to a single recipient.

contact_channel_id
string

Tier 1 (most specific): exact ContactChannel id. Skips contact resolution and channel-availability filter since the caller has chosen the channel.

contact_id
string

Tier 2: known Contact id. Channel is inferred per template at send time.

phone
string

Raw phone. When no contact is resolved by contact_channel_id/contact_id, it find-or-creates a contact by phone. When a contact is resolved, it overrides the phone used for this send only (the contact and its channels are not modified).

Maximum string length: 256
email
string

Raw email. When no contact is resolved by contact_channel_id/contact_id, it find-or-creates a contact by email. When a contact is resolved, it overrides the email used for this send only (the contact and its channels are not modified).

Maximum string length: 256
name
string

Optional display name override for this send only. Takes precedence over the resolved channel and contact name. Does not resolve or create a contact on its own and does not modify the contact.

Maximum string length: 256
subject
string

Replaces the configured subject on every email template of this broadcast, for this send only. Supports {{variable}} placeholders.

Maximum string length: 1000
body
string

Replaces the configured body (HTML) on every email template of this broadcast, for this send only. Supports {{variable}} placeholders.

Maximum string length: 524288
message
string

Replaces the configured message text on every SMS template of this broadcast, for this send only. Supports {{variable}} placeholders.

Maximum string length: 4000
reply_to
string

Replaces the configured reply-to address on every email template of this broadcast, for this send only. Supports {{variable}} placeholders.

Maximum string length: 512
variables
object

Per-recipient values by name: a template slot (a WhatsApp variable such as body_1 or body_customer_name, an email subject, an SMS message) or a {{name}} written in a template. A slot you omit goes out as configured in the channel editor.

template_ids
string[]

Optional subset of broadcast templates to fire. Omit to fire all templates on the broadcast.

Maximum string length: 128
background
boolean

When false (default), the call awaits the send and returns external_message_id per template. When true, the call enqueues and returns immediately.

Response

200 - application/json

Result of triggering a transactional broadcast. One BroadcastRecipient row per template fired.

recipients
object[]
required