curl --request POST \
--url https://crm.wachat.net/api/v1/broadcasts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"template_id": 123,
"group_id": 123,
"device_id": 123,
"schedule_at": "<string>",
"timezone": "<string>",
"recipients": [
123
]
}
'import requests
url = "https://crm.wachat.net/api/v1/broadcasts"
payload = {
"name": "<string>",
"template_id": 123,
"group_id": 123,
"device_id": 123,
"schedule_at": "<string>",
"timezone": "<string>",
"recipients": [123]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
template_id: 123,
group_id: 123,
device_id: 123,
schedule_at: '<string>',
timezone: '<string>',
recipients: [123]
})
};
fetch('https://crm.wachat.net/api/v1/broadcasts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://crm.wachat.net/api/v1/broadcasts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'template_id' => 123,
'group_id' => 123,
'device_id' => 123,
'schedule_at' => '<string>',
'timezone' => '<string>',
'recipients' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://crm.wachat.net/api/v1/broadcasts"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"template_id\": 123,\n \"group_id\": 123,\n \"device_id\": 123,\n \"schedule_at\": \"<string>\",\n \"timezone\": \"<string>\",\n \"recipients\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://crm.wachat.net/api/v1/broadcasts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"template_id\": 123,\n \"group_id\": 123,\n \"device_id\": 123,\n \"schedule_at\": \"<string>\",\n \"timezone\": \"<string>\",\n \"recipients\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crm.wachat.net/api/v1/broadcasts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"template_id\": 123,\n \"group_id\": 123,\n \"device_id\": 123,\n \"schedule_at\": \"<string>\",\n \"timezone\": \"<string>\",\n \"recipients\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
"<unknown>"
],
"meta": {
"broadcast_ids": "<string>",
"devices_count": "<string>"
}
}{
"message": "<string>",
"errors": {}
}Create broadcasts
Creates and dispatches a broadcast to contacts or groups using a message or approved template. Use it for one-to-many delivery when you need recipient-level status tracking.
curl --request POST \
--url https://crm.wachat.net/api/v1/broadcasts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"template_id": 123,
"group_id": 123,
"device_id": 123,
"schedule_at": "<string>",
"timezone": "<string>",
"recipients": [
123
]
}
'import requests
url = "https://crm.wachat.net/api/v1/broadcasts"
payload = {
"name": "<string>",
"template_id": 123,
"group_id": 123,
"device_id": 123,
"schedule_at": "<string>",
"timezone": "<string>",
"recipients": [123]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
template_id: 123,
group_id: 123,
device_id: 123,
schedule_at: '<string>',
timezone: '<string>',
recipients: [123]
})
};
fetch('https://crm.wachat.net/api/v1/broadcasts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://crm.wachat.net/api/v1/broadcasts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'template_id' => 123,
'group_id' => 123,
'device_id' => 123,
'schedule_at' => '<string>',
'timezone' => '<string>',
'recipients' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://crm.wachat.net/api/v1/broadcasts"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"template_id\": 123,\n \"group_id\": 123,\n \"device_id\": 123,\n \"schedule_at\": \"<string>\",\n \"timezone\": \"<string>\",\n \"recipients\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://crm.wachat.net/api/v1/broadcasts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"template_id\": 123,\n \"group_id\": 123,\n \"device_id\": 123,\n \"schedule_at\": \"<string>\",\n \"timezone\": \"<string>\",\n \"recipients\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crm.wachat.net/api/v1/broadcasts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"template_id\": 123,\n \"group_id\": 123,\n \"device_id\": 123,\n \"schedule_at\": \"<string>\",\n \"timezone\": \"<string>\",\n \"recipients\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
"<unknown>"
],
"meta": {
"broadcast_ids": "<string>",
"devices_count": "<string>"
}
}{
"message": "<string>",
"errors": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Create a broadcast — send one template to a list of contacts and/or a contact group. Scramble reads these rules to document the request body.
Mirrors the input keys the existing BroadcastsController::store accepts
(broadcast_name / template_id / contacts[] / groups[] / device_id /
schedule_type+send_date+send_time / timezone), exposed under public-facing
names. At least one of recipients or group_id is required; provide
schedule_at to schedule for later, omit it to send now.
Broadcast label shown in the dashboard. Required.
255Approved WaTemplate id to send to every recipient. Required.
Contact-group id — every member is added as a recipient.
Sending device id (optional — defaults to the workspace's primary device).
When to send — ISO 8601 / parseable datetime. Omit to send immediately.
64IANA timezone for schedule_at (e.g. Asia/Kolkata). Defaults to UTC.
64Recipient contact ids. Required unless group_id is given.
