Create a scheduled message for a single contact
curl --request POST \
--url https://your-instance.example.com/api/campaigns/scheduled \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "Hi Jamie, just following up on our chat.",
"scheduleDate": "2026-05-19T14:30:00.000Z",
"contactId": "665f1a0c0e0a4b001a2c9f01",
"channelType": "sms",
"isAutopilot": false,
"isInternal": false
}
'import requests
url = "https://your-instance.example.com/api/campaigns/scheduled"
payload = {
"message": "Hi Jamie, just following up on our chat.",
"scheduleDate": "2026-05-19T14:30:00.000Z",
"contactId": "665f1a0c0e0a4b001a2c9f01",
"channelType": "sms",
"isAutopilot": False,
"isInternal": False
}
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({
message: 'Hi Jamie, just following up on our chat.',
scheduleDate: '2026-05-19T14:30:00.000Z',
contactId: '665f1a0c0e0a4b001a2c9f01',
channelType: 'sms',
isAutopilot: false,
isInternal: false
})
};
fetch('https://your-instance.example.com/api/campaigns/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://your-instance.example.com/api/campaigns/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([
'message' => 'Hi Jamie, just following up on our chat.',
'scheduleDate' => '2026-05-19T14:30:00.000Z',
'contactId' => '665f1a0c0e0a4b001a2c9f01',
'channelType' => 'sms',
'isAutopilot' => false,
'isInternal' => false
]),
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://your-instance.example.com/api/campaigns/scheduled"
payload := strings.NewReader("{\n \"message\": \"Hi Jamie, just following up on our chat.\",\n \"scheduleDate\": \"2026-05-19T14:30:00.000Z\",\n \"contactId\": \"665f1a0c0e0a4b001a2c9f01\",\n \"channelType\": \"sms\",\n \"isAutopilot\": false,\n \"isInternal\": false\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://your-instance.example.com/api/campaigns/scheduled")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"Hi Jamie, just following up on our chat.\",\n \"scheduleDate\": \"2026-05-19T14:30:00.000Z\",\n \"contactId\": \"665f1a0c0e0a4b001a2c9f01\",\n \"channelType\": \"sms\",\n \"isAutopilot\": false,\n \"isInternal\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/campaigns/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 \"message\": \"Hi Jamie, just following up on our chat.\",\n \"scheduleDate\": \"2026-05-19T14:30:00.000Z\",\n \"contactId\": \"665f1a0c0e0a4b001a2c9f01\",\n \"channelType\": \"sms\",\n \"isAutopilot\": false,\n \"isInternal\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Scheduled message created",
"data": {
"_id": "665f1a0c0e0a4b001a2c9f20",
"scheduleDate": "2026-05-19T14:30:00.000Z",
"status": "scheduled"
}
}{
"success": false,
"message": "Validation error",
"error": "name is required"
}{
"success": false,
"message": "Validation error",
"error": "name is required"
}{
"success": false,
"message": "Validation error",
"error": "name is required"
}Campaigns
Create a scheduled message for a single contact
Creates a single-contact scheduled message (a one-off campaign) that will be delivered at scheduleDate. Used by the conversation composer when a rep schedules a follow-up.
POST
/
api
/
campaigns
/
scheduled
Create a scheduled message for a single contact
curl --request POST \
--url https://your-instance.example.com/api/campaigns/scheduled \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "Hi Jamie, just following up on our chat.",
"scheduleDate": "2026-05-19T14:30:00.000Z",
"contactId": "665f1a0c0e0a4b001a2c9f01",
"channelType": "sms",
"isAutopilot": false,
"isInternal": false
}
'import requests
url = "https://your-instance.example.com/api/campaigns/scheduled"
payload = {
"message": "Hi Jamie, just following up on our chat.",
"scheduleDate": "2026-05-19T14:30:00.000Z",
"contactId": "665f1a0c0e0a4b001a2c9f01",
"channelType": "sms",
"isAutopilot": False,
"isInternal": False
}
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({
message: 'Hi Jamie, just following up on our chat.',
scheduleDate: '2026-05-19T14:30:00.000Z',
contactId: '665f1a0c0e0a4b001a2c9f01',
channelType: 'sms',
isAutopilot: false,
isInternal: false
})
};
fetch('https://your-instance.example.com/api/campaigns/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://your-instance.example.com/api/campaigns/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([
'message' => 'Hi Jamie, just following up on our chat.',
'scheduleDate' => '2026-05-19T14:30:00.000Z',
'contactId' => '665f1a0c0e0a4b001a2c9f01',
'channelType' => 'sms',
'isAutopilot' => false,
'isInternal' => false
]),
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://your-instance.example.com/api/campaigns/scheduled"
payload := strings.NewReader("{\n \"message\": \"Hi Jamie, just following up on our chat.\",\n \"scheduleDate\": \"2026-05-19T14:30:00.000Z\",\n \"contactId\": \"665f1a0c0e0a4b001a2c9f01\",\n \"channelType\": \"sms\",\n \"isAutopilot\": false,\n \"isInternal\": false\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://your-instance.example.com/api/campaigns/scheduled")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"Hi Jamie, just following up on our chat.\",\n \"scheduleDate\": \"2026-05-19T14:30:00.000Z\",\n \"contactId\": \"665f1a0c0e0a4b001a2c9f01\",\n \"channelType\": \"sms\",\n \"isAutopilot\": false,\n \"isInternal\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/campaigns/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 \"message\": \"Hi Jamie, just following up on our chat.\",\n \"scheduleDate\": \"2026-05-19T14:30:00.000Z\",\n \"contactId\": \"665f1a0c0e0a4b001a2c9f01\",\n \"channelType\": \"sms\",\n \"isAutopilot\": false,\n \"isInternal\": false\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Scheduled message created",
"data": {
"_id": "665f1a0c0e0a4b001a2c9f20",
"scheduleDate": "2026-05-19T14:30:00.000Z",
"status": "scheduled"
}
}{
"success": false,
"message": "Validation error",
"error": "name is required"
}{
"success": false,
"message": "Validation error",
"error": "name is required"
}{
"success": false,
"message": "Validation error",
"error": "name is required"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Scheduled message created
Show child attributes
Show child attributes
Example:
{
"_id": "665f1a0c0e0a4b001a2c9f10",
"organizationId": "64ee9a8b1e7f2a0011223344",
"name": "Q2 Lead Gen",
"message": "Hi {{firstName}}, are you still interested in a quote?",
"userIds": ["64ee9a8b1e7f2a0011223399"],
"scheduleDate": "2026-05-20T15:00:00.000Z",
"process": "64eea1110000000000000001",
"contactStatus": "New Lead",
"isAutopilot": false,
"type": "sms",
"status": "scheduled",
"createdBy": {
"_id": "64ee9a8b1e7f2a0011223399",
"fullName": "Alex Rep"
},
"failedUserIds": [],
"failedDetails": [],
"stats": {
"total": 250,
"sent": 0,
"failed": 0,
"successRate": "0%"
},
"createdAt": "2026-05-18T12:34:56.000Z",
"updatedAt": "2026-05-18T12:34:56.000Z"
}
⌘I