Skip to main content
POST
Create a broadcast

Authorizations

apiKey
string
header
required

API key from Settings → API keys.

apiSecret
string
header
required

Secret shown once when the API key is created.

Path Parameters

accountId
string
required

Your Gallabox account ID. Must be the API key's own account. A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

Body

application/json
templateId
string
required

The approved template to send.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

sendMessageOnlyOptIn
boolean
required

true sends only to contacts who have opted in to marketing messages.

name
string
required

A name for the broadcast.

schduledType
enum<string>
required

NOW sends at once; DELAYED sends at schduledAt.

Available options:
NOW,
DELAYED,
REPEAT,
CANCELLED
segments
string[]

Segment IDs to send to.

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
bodyValues
string[]

Values for the template's body variables, in order.

headerValues
object

Media for a template with an image, video or document header.

buttonValues
object[]

Values for the template's dynamic buttons.

cardValues
object[]

Values for each card of a carousel template.

schduledAt
string<date-time>

When to send, for schduledType: DELAYED (ISO 8601).

ignoreLimit
boolean

true skips the check on how many broadcast messages the channel sent in the last 24 hours. The per-broadcast limit still applies.

replyTo
object

Who handles the conversation when a contact replies.

Response

The broadcast.

id
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

name
string
channelId
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

templateId
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

status
string

PENDING, CANCELLED, or the delivery status from stats.

schduledType
string
schduledAt
string<date-time>
contactCount
integer
createdAt
string<date-time>
stats
object