Skip to main content
POST

Authorizations

api-key
string
header
required

Body

application/json
title
string
required

Broadcast title, used for identification

Maximum string length: 100
phoneNumber
string
required

Id or phone number of the sender phone number

Minimum string length: 1
type
enum<string>
default:text

text sends a free-form text message. template sends an approved WhatsApp template message

Available options:
text,
template
content
string

Message content. Required when type is text

Maximum string length: 1024
template
object

Template specification. Required when type is template

contactsQuery
object

Filter for contacts already registered in the workspace. Mutually exclusive with contacts

contacts
object[]

Explicit list of recipients. Mutually exclusive with contactsQuery

Required array length: 1 - 10000 elements
scheduleDate
string

When provided, the broadcast is scheduled to be sent automatically at this date. Must be in the future

batchSize
integer
default:5

Number of messages sent per batch

Required range: 1 <= x <= 1000
batchInterval
integer
default:1

Interval in minutes between batches

Required range: 1 <= x <= 9007199254740991
allowedSendTimeStart
string
default:08:00

Start of the time window in which batches may be sent (HH:MM)

Pattern: ^([01]\d|2[0-3]):[0-5]\d$
allowedSendTimeEnd
string
default:18:00

End of the time window in which batches may be sent (HH:MM)

Pattern: ^([01]\d|2[0-3]):[0-5]\d$
allowedSendTimeTimezone
string
default:America/Sao_Paulo

IANA timezone used to evaluate the allowed send time window

whatsappApi
enum<string>
default:cloud_api

WhatsApp API used to deliver the messages

Available options:
cloud_api,
mm_api

Response

Broadcast created successfully

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
type
string
required
title
string | null
required
status
string | null
required

pending when the recipients still have to be resolved from contactsQuery, ready when the broadcast is ready to be sent and scheduled when it will be sent at scheduleDate

scheduleDate
string<date-time> | null
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
batchSize
integer | null
required
Required range: -9007199254740991 <= x <= 9007199254740991
batchInterval
integer | null
required
Required range: -9007199254740991 <= x <= 9007199254740991
allowedSendTimeStart
string | null
required
allowedSendTimeEnd
string | null
required
allowedSendTimeTimezone
string | null
required
createDate
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
processedContacts
integer | null

Number of contacts processed. Only returned when creating from an explicit contacts list

Required range: -9007199254740991 <= x <= 9007199254740991
totalBatches
integer | null

Number of batches the contacts were split into. Only returned when creating from an explicit contacts list

Required range: -9007199254740991 <= x <= 9007199254740991