curl --request POST \
--url https://messenger-public-api.cogfy.com/broadcasts \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"title": "Appointment reminder",
"template": {
"whatsAppId": "1234567890"
},
"phoneNumber": "5511999998888",
"scheduleDate": "2026-10-30T13:00:00Z",
"contacts": [
{
"phoneNumber": "5599888887777",
"variables": {
"NAME": "John"
}
},
{
"phoneNumber": "5599888886666",
"variables": {
"NAME": "Mary"
}
}
]
}
'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"type": "<string>",
"status": "<string>",
"scheduleDate": "2023-11-07T05:31:56Z",
"batchSize": 0,
"batchInterval": 0,
"allowedSendTimeStart": "<string>",
"allowedSendTimeEnd": "<string>",
"allowedSendTimeTimezone": "<string>",
"createDate": "2023-11-07T05:31:56Z",
"processedContacts": 0,
"totalBatches": 0
}Broadcasts
Create a new broadcast
Creates a broadcast for a phone number of the workspace.
The broadcast sends the approved WhatsApp template message provided in the request. Templates can reach recipients that never messaged the business or whose service window is closed.
Recipient source — exactly one of the following must be provided:
contactsQuery: filters contacts already registered in the workspace by tag. The broadcast is created with statuspendingand the recipients are resolved asynchronously; once resolved it moves toready(orscheduled).contacts: an explicit list of recipients sent in the request body, which does not require the contacts to be registered. The broadcast messages are created synchronously and the broadcast is returned already in statusready(orscheduled, whenscheduleDateis provided).
A broadcast in status ready is only sent after calling POST /broadcasts/{broadcastId}/send. A broadcast in status scheduled is sent automatically at scheduleDate.
POST
/
broadcasts
curl --request POST \
--url https://messenger-public-api.cogfy.com/broadcasts \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"title": "Appointment reminder",
"template": {
"whatsAppId": "1234567890"
},
"phoneNumber": "5511999998888",
"scheduleDate": "2026-10-30T13:00:00Z",
"contacts": [
{
"phoneNumber": "5599888887777",
"variables": {
"NAME": "John"
}
},
{
"phoneNumber": "5599888886666",
"variables": {
"NAME": "Mary"
}
}
]
}
'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"type": "<string>",
"status": "<string>",
"scheduleDate": "2023-11-07T05:31:56Z",
"batchSize": 0,
"batchInterval": 0,
"allowedSendTimeStart": "<string>",
"allowedSendTimeEnd": "<string>",
"allowedSendTimeTimezone": "<string>",
"createDate": "2023-11-07T05:31:56Z",
"processedContacts": 0,
"totalBatches": 0
}Body
application/json
Response
Broadcast created successfully
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))$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))$