curl --request POST \
--url https://crm.wachat.net/api/v1/scheduled \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"run_at": "<string>",
"recipients": [
"<string>"
],
"message": "<string>",
"template_id": 123,
"device_id": 123,
"timezone": "<string>"
}
'import requests
url = "https://crm.wachat.net/api/v1/scheduled"
payload = {
"name": "<string>",
"run_at": "<string>",
"recipients": ["<string>"],
"message": "<string>",
"template_id": 123,
"device_id": 123,
"timezone": "<string>"
}
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>',
run_at: '<string>',
recipients: ['<string>'],
message: '<string>',
template_id: 123,
device_id: 123,
timezone: '<string>'
})
};
fetch('https://crm.wachat.net/api/v1/scheduled', 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/scheduled",
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>',
'run_at' => '<string>',
'recipients' => [
'<string>'
],
'message' => '<string>',
'template_id' => 123,
'device_id' => 123,
'timezone' => '<string>'
]),
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/scheduled"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"recipients\": [\n \"<string>\"\n ],\n \"message\": \"<string>\",\n \"template_id\": 123,\n \"device_id\": 123,\n \"timezone\": \"<string>\"\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/scheduled")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"recipients\": [\n \"<string>\"\n ],\n \"message\": \"<string>\",\n \"template_id\": 123,\n \"device_id\": 123,\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crm.wachat.net/api/v1/scheduled")
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 \"run_at\": \"<string>\",\n \"recipients\": [\n \"<string>\"\n ],\n \"message\": \"<string>\",\n \"template_id\": 123,\n \"device_id\": 123,\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
"<unknown>"
],
"meta": "<string>"
}{
"error": {
"code": "template_not_found",
"message": "Template not found in this workspace.",
"details": "<string>"
}
}{
"message": "<string>",
"errors": {}
}Create scheduled messages
Schedules a WhatsApp message, template, or flow send for a future time. Use the request timezone and send timestamp to control delivery timing; the response identifies the scheduled job for later tracking or cancellation.
curl --request POST \
--url https://crm.wachat.net/api/v1/scheduled \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"run_at": "<string>",
"recipients": [
"<string>"
],
"message": "<string>",
"template_id": 123,
"device_id": 123,
"timezone": "<string>"
}
'import requests
url = "https://crm.wachat.net/api/v1/scheduled"
payload = {
"name": "<string>",
"run_at": "<string>",
"recipients": ["<string>"],
"message": "<string>",
"template_id": 123,
"device_id": 123,
"timezone": "<string>"
}
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>',
run_at: '<string>',
recipients: ['<string>'],
message: '<string>',
template_id: 123,
device_id: 123,
timezone: '<string>'
})
};
fetch('https://crm.wachat.net/api/v1/scheduled', 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/scheduled",
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>',
'run_at' => '<string>',
'recipients' => [
'<string>'
],
'message' => '<string>',
'template_id' => 123,
'device_id' => 123,
'timezone' => '<string>'
]),
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/scheduled"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"recipients\": [\n \"<string>\"\n ],\n \"message\": \"<string>\",\n \"template_id\": 123,\n \"device_id\": 123,\n \"timezone\": \"<string>\"\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/scheduled")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"run_at\": \"<string>\",\n \"recipients\": [\n \"<string>\"\n ],\n \"message\": \"<string>\",\n \"template_id\": 123,\n \"device_id\": 123,\n \"timezone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crm.wachat.net/api/v1/scheduled")
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 \"run_at\": \"<string>\",\n \"recipients\": [\n \"<string>\"\n ],\n \"message\": \"<string>\",\n \"template_id\": 123,\n \"device_id\": 123,\n \"timezone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
"<unknown>"
],
"meta": "<string>"
}{
"error": {
"code": "template_not_found",
"message": "Template not found in this workspace.",
"details": "<string>"
}
}{
"message": "<string>",
"errors": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Schedule a WhatsApp send for later. Scramble reads these rules to document the request body. Mirrors the input keys the existing QueueController::scheduleMessage accepts (name / message / template_id / recipients / send_at / timezone / device_id), exposed under public-facing names. A template OR a message body is required.
Schedule label. Required.
255When to send — ISO 8601 / parseable datetime interpreted in timezone. Required.
64Recipient phone numbers in international format. At least one required.
132Body text (required unless a template_id is given). Max 4096 chars.
4096WaTemplate id to send instead of free text (optional).
Sending device id (optional — defaults to the workspace's connected device).
IANA timezone for run_at (e.g. Asia/Kolkata). Defaults to the workspace timezone.
64