Create a campaign
Creates a campaign with its leads and starts it, or schedules it for startsAt. It calls from a phone number, calls on WhatsApp, or sends each lead a WhatsApp message template (channel). The policy is the one the workspace’s campaign settings give the agent on that channel, with the groups policy sends instead; it is fixed once the campaign exists. Calls wait for a calling window. A WhatsApp template is checked with Meta when the campaign is created and again when it starts. The key’s creator must have agreed to the outbound communications terms for the channel in the dashboard. A repeat with the same idempotency key, or with no key and the same body, within 24 hours returns the campaign it created with created false. Needs a Full access key.
curl --request POST \
--url https://app.cntillion.com/api/v2/campaigns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"agentId": "<string>",
"channel": {
"type": "phone",
"phoneLineId": "<string>",
"phoneLineIds": [
"<string>"
],
"ringingTimeoutSeconds": 60,
"answeringMachineDetection": true
},
"recipients": [],
"startsAt": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"branchId": "<string>",
"concurrencyLimit": 500,
"callsPerMinute": 20,
"allowedOverrides": [
"prompt",
"first_message",
"language",
"voice_id"
],
"policy": {
"timezone": "<string>",
"useRecipientTimezone": true,
"callingWindows": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
]
},
"keepOpen": false,
"idempotencyKey": "<string>"
}
'import requests
url = "https://app.cntillion.com/api/v2/campaigns"
payload = {
"name": "<string>",
"agentId": "<string>",
"channel": {
"type": "phone",
"phoneLineId": "<string>",
"phoneLineIds": ["<string>"],
"ringingTimeoutSeconds": 60,
"answeringMachineDetection": True
},
"recipients": [],
"startsAt": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"branchId": "<string>",
"concurrencyLimit": 500,
"callsPerMinute": 20,
"allowedOverrides": ["prompt", "first_message", "language", "voice_id"],
"policy": {
"timezone": "<string>",
"useRecipientTimezone": True,
"callingWindows": [
{
"weekdays": [3],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
]
},
"keepOpen": False,
"idempotencyKey": "<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>',
agentId: '<string>',
channel: {
type: 'phone',
phoneLineId: '<string>',
phoneLineIds: ['<string>'],
ringingTimeoutSeconds: 60,
answeringMachineDetection: true
},
recipients: [],
startsAt: '2023-11-07T05:31:56Z',
timezone: '<string>',
branchId: '<string>',
concurrencyLimit: 500,
callsPerMinute: 20,
allowedOverrides: ['prompt', 'first_message', 'language', 'voice_id'],
policy: {
timezone: '<string>',
useRecipientTimezone: true,
callingWindows: [{weekdays: [3], intervals: [{start: '<string>', end: '<string>'}]}]
},
keepOpen: false,
idempotencyKey: '<string>'
})
};
fetch('https://app.cntillion.com/api/v2/campaigns', 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://app.cntillion.com/api/v2/campaigns",
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>',
'agentId' => '<string>',
'channel' => [
'type' => 'phone',
'phoneLineId' => '<string>',
'phoneLineIds' => [
'<string>'
],
'ringingTimeoutSeconds' => 60,
'answeringMachineDetection' => true
],
'recipients' => [
],
'startsAt' => '2023-11-07T05:31:56Z',
'timezone' => '<string>',
'branchId' => '<string>',
'concurrencyLimit' => 500,
'callsPerMinute' => 20,
'allowedOverrides' => [
'prompt',
'first_message',
'language',
'voice_id'
],
'policy' => [
'timezone' => '<string>',
'useRecipientTimezone' => true,
'callingWindows' => [
[
'weekdays' => [
3
],
'intervals' => [
[
'start' => '<string>',
'end' => '<string>'
]
]
]
]
],
'keepOpen' => false,
'idempotencyKey' => '<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://app.cntillion.com/api/v2/campaigns"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"agentId\": \"<string>\",\n \"channel\": {\n \"type\": \"phone\",\n \"phoneLineId\": \"<string>\",\n \"phoneLineIds\": [\n \"<string>\"\n ],\n \"ringingTimeoutSeconds\": 60,\n \"answeringMachineDetection\": true\n },\n \"recipients\": [],\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"branchId\": \"<string>\",\n \"concurrencyLimit\": 500,\n \"callsPerMinute\": 20,\n \"allowedOverrides\": [\n \"prompt\",\n \"first_message\",\n \"language\",\n \"voice_id\"\n ],\n \"policy\": {\n \"timezone\": \"<string>\",\n \"useRecipientTimezone\": true,\n \"callingWindows\": [\n {\n \"weekdays\": [\n 3\n ],\n \"intervals\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ]\n }\n ]\n },\n \"keepOpen\": false,\n \"idempotencyKey\": \"<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://app.cntillion.com/api/v2/campaigns")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"agentId\": \"<string>\",\n \"channel\": {\n \"type\": \"phone\",\n \"phoneLineId\": \"<string>\",\n \"phoneLineIds\": [\n \"<string>\"\n ],\n \"ringingTimeoutSeconds\": 60,\n \"answeringMachineDetection\": true\n },\n \"recipients\": [],\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"branchId\": \"<string>\",\n \"concurrencyLimit\": 500,\n \"callsPerMinute\": 20,\n \"allowedOverrides\": [\n \"prompt\",\n \"first_message\",\n \"language\",\n \"voice_id\"\n ],\n \"policy\": {\n \"timezone\": \"<string>\",\n \"useRecipientTimezone\": true,\n \"callingWindows\": [\n {\n \"weekdays\": [\n 3\n ],\n \"intervals\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ]\n }\n ]\n },\n \"keepOpen\": false,\n \"idempotencyKey\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/campaigns")
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 \"agentId\": \"<string>\",\n \"channel\": {\n \"type\": \"phone\",\n \"phoneLineId\": \"<string>\",\n \"phoneLineIds\": [\n \"<string>\"\n ],\n \"ringingTimeoutSeconds\": 60,\n \"answeringMachineDetection\": true\n },\n \"recipients\": [],\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"branchId\": \"<string>\",\n \"concurrencyLimit\": 500,\n \"callsPerMinute\": 20,\n \"allowedOverrides\": [\n \"prompt\",\n \"first_message\",\n \"language\",\n \"voice_id\"\n ],\n \"policy\": {\n \"timezone\": \"<string>\",\n \"useRecipientTimezone\": true,\n \"callingWindows\": [\n {\n \"weekdays\": [\n 3\n ],\n \"intervals\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ]\n }\n ]\n },\n \"keepOpen\": false,\n \"idempotencyKey\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"name": "<string>",
"agentId": "<string>",
"agentName": "<string>",
"status": "active",
"variant": "simple",
"source": "dashboard",
"channel": {
"type": "phone",
"phoneLineId": "<string>",
"phoneNumber": "<string>",
"ringingTimeoutSeconds": 123,
"answeringMachineDetection": true,
"phoneLineIds": [
"<string>"
]
},
"policy": {
"timezone": "<string>",
"useRecipientTimezone": false,
"callingWindows": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"retries": {
"maxTotalCalls": 15,
"maxShortRetries": 14,
"maxCallbacks": 14,
"maxRedirects": 14,
"maxConsecutiveFailures": 15,
"retryDelaySeconds": 302400,
"intervalPlacement": "start",
"rotateStepSeconds": 43200
},
"dataCollection": {
"callbacks": true,
"redirects": true,
"doNotCall": true,
"mappings": [
{
"field": "<string>",
"variable": "<string>"
}
]
},
"followUpContext": {
"callType": true,
"previousConversationId": true,
"previousSummary": true,
"previousTranscript": true
}
},
"timezone": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"branchId": "<string>",
"concurrencyLimit": 123,
"callsPerMinute": 123,
"keepOpen": true,
"lastError": "<string>",
"counts": {
"leads": 123,
"finishedLeads": 123,
"openAttention": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"launchedAt": "2023-11-07T05:31:56Z",
"pausedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z"
},
"created": true,
"callingStartsAt": "2023-11-07T05:31:56Z",
"withinCallingWindow": true
}{
"data": {
"id": "<string>",
"name": "<string>",
"agentId": "<string>",
"agentName": "<string>",
"status": "active",
"variant": "simple",
"source": "dashboard",
"channel": {
"type": "phone",
"phoneLineId": "<string>",
"phoneNumber": "<string>",
"ringingTimeoutSeconds": 123,
"answeringMachineDetection": true,
"phoneLineIds": [
"<string>"
]
},
"policy": {
"timezone": "<string>",
"useRecipientTimezone": false,
"callingWindows": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"retries": {
"maxTotalCalls": 15,
"maxShortRetries": 14,
"maxCallbacks": 14,
"maxRedirects": 14,
"maxConsecutiveFailures": 15,
"retryDelaySeconds": 302400,
"intervalPlacement": "start",
"rotateStepSeconds": 43200
},
"dataCollection": {
"callbacks": true,
"redirects": true,
"doNotCall": true,
"mappings": [
{
"field": "<string>",
"variable": "<string>"
}
]
},
"followUpContext": {
"callType": true,
"previousConversationId": true,
"previousSummary": true,
"previousTranscript": true
}
},
"timezone": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"branchId": "<string>",
"concurrencyLimit": 123,
"callsPerMinute": 123,
"keepOpen": true,
"lastError": "<string>",
"counts": {
"leads": 123,
"finishedLeads": 123,
"openAttention": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"launchedAt": "2023-11-07T05:31:56Z",
"pausedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z"
},
"created": true,
"callingStartsAt": "2023-11-07T05:31:56Z",
"withinCallingWindow": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
Headers
Body
Response
A repeat of an earlier request.
curl --request POST \
--url https://app.cntillion.com/api/v2/campaigns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"agentId": "<string>",
"channel": {
"type": "phone",
"phoneLineId": "<string>",
"phoneLineIds": [
"<string>"
],
"ringingTimeoutSeconds": 60,
"answeringMachineDetection": true
},
"recipients": [],
"startsAt": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"branchId": "<string>",
"concurrencyLimit": 500,
"callsPerMinute": 20,
"allowedOverrides": [
"prompt",
"first_message",
"language",
"voice_id"
],
"policy": {
"timezone": "<string>",
"useRecipientTimezone": true,
"callingWindows": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
]
},
"keepOpen": false,
"idempotencyKey": "<string>"
}
'import requests
url = "https://app.cntillion.com/api/v2/campaigns"
payload = {
"name": "<string>",
"agentId": "<string>",
"channel": {
"type": "phone",
"phoneLineId": "<string>",
"phoneLineIds": ["<string>"],
"ringingTimeoutSeconds": 60,
"answeringMachineDetection": True
},
"recipients": [],
"startsAt": "2023-11-07T05:31:56Z",
"timezone": "<string>",
"branchId": "<string>",
"concurrencyLimit": 500,
"callsPerMinute": 20,
"allowedOverrides": ["prompt", "first_message", "language", "voice_id"],
"policy": {
"timezone": "<string>",
"useRecipientTimezone": True,
"callingWindows": [
{
"weekdays": [3],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
]
},
"keepOpen": False,
"idempotencyKey": "<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>',
agentId: '<string>',
channel: {
type: 'phone',
phoneLineId: '<string>',
phoneLineIds: ['<string>'],
ringingTimeoutSeconds: 60,
answeringMachineDetection: true
},
recipients: [],
startsAt: '2023-11-07T05:31:56Z',
timezone: '<string>',
branchId: '<string>',
concurrencyLimit: 500,
callsPerMinute: 20,
allowedOverrides: ['prompt', 'first_message', 'language', 'voice_id'],
policy: {
timezone: '<string>',
useRecipientTimezone: true,
callingWindows: [{weekdays: [3], intervals: [{start: '<string>', end: '<string>'}]}]
},
keepOpen: false,
idempotencyKey: '<string>'
})
};
fetch('https://app.cntillion.com/api/v2/campaigns', 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://app.cntillion.com/api/v2/campaigns",
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>',
'agentId' => '<string>',
'channel' => [
'type' => 'phone',
'phoneLineId' => '<string>',
'phoneLineIds' => [
'<string>'
],
'ringingTimeoutSeconds' => 60,
'answeringMachineDetection' => true
],
'recipients' => [
],
'startsAt' => '2023-11-07T05:31:56Z',
'timezone' => '<string>',
'branchId' => '<string>',
'concurrencyLimit' => 500,
'callsPerMinute' => 20,
'allowedOverrides' => [
'prompt',
'first_message',
'language',
'voice_id'
],
'policy' => [
'timezone' => '<string>',
'useRecipientTimezone' => true,
'callingWindows' => [
[
'weekdays' => [
3
],
'intervals' => [
[
'start' => '<string>',
'end' => '<string>'
]
]
]
]
],
'keepOpen' => false,
'idempotencyKey' => '<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://app.cntillion.com/api/v2/campaigns"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"agentId\": \"<string>\",\n \"channel\": {\n \"type\": \"phone\",\n \"phoneLineId\": \"<string>\",\n \"phoneLineIds\": [\n \"<string>\"\n ],\n \"ringingTimeoutSeconds\": 60,\n \"answeringMachineDetection\": true\n },\n \"recipients\": [],\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"branchId\": \"<string>\",\n \"concurrencyLimit\": 500,\n \"callsPerMinute\": 20,\n \"allowedOverrides\": [\n \"prompt\",\n \"first_message\",\n \"language\",\n \"voice_id\"\n ],\n \"policy\": {\n \"timezone\": \"<string>\",\n \"useRecipientTimezone\": true,\n \"callingWindows\": [\n {\n \"weekdays\": [\n 3\n ],\n \"intervals\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ]\n }\n ]\n },\n \"keepOpen\": false,\n \"idempotencyKey\": \"<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://app.cntillion.com/api/v2/campaigns")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"agentId\": \"<string>\",\n \"channel\": {\n \"type\": \"phone\",\n \"phoneLineId\": \"<string>\",\n \"phoneLineIds\": [\n \"<string>\"\n ],\n \"ringingTimeoutSeconds\": 60,\n \"answeringMachineDetection\": true\n },\n \"recipients\": [],\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"branchId\": \"<string>\",\n \"concurrencyLimit\": 500,\n \"callsPerMinute\": 20,\n \"allowedOverrides\": [\n \"prompt\",\n \"first_message\",\n \"language\",\n \"voice_id\"\n ],\n \"policy\": {\n \"timezone\": \"<string>\",\n \"useRecipientTimezone\": true,\n \"callingWindows\": [\n {\n \"weekdays\": [\n 3\n ],\n \"intervals\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ]\n }\n ]\n },\n \"keepOpen\": false,\n \"idempotencyKey\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/campaigns")
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 \"agentId\": \"<string>\",\n \"channel\": {\n \"type\": \"phone\",\n \"phoneLineId\": \"<string>\",\n \"phoneLineIds\": [\n \"<string>\"\n ],\n \"ringingTimeoutSeconds\": 60,\n \"answeringMachineDetection\": true\n },\n \"recipients\": [],\n \"startsAt\": \"2023-11-07T05:31:56Z\",\n \"timezone\": \"<string>\",\n \"branchId\": \"<string>\",\n \"concurrencyLimit\": 500,\n \"callsPerMinute\": 20,\n \"allowedOverrides\": [\n \"prompt\",\n \"first_message\",\n \"language\",\n \"voice_id\"\n ],\n \"policy\": {\n \"timezone\": \"<string>\",\n \"useRecipientTimezone\": true,\n \"callingWindows\": [\n {\n \"weekdays\": [\n 3\n ],\n \"intervals\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ]\n }\n ]\n },\n \"keepOpen\": false,\n \"idempotencyKey\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"name": "<string>",
"agentId": "<string>",
"agentName": "<string>",
"status": "active",
"variant": "simple",
"source": "dashboard",
"channel": {
"type": "phone",
"phoneLineId": "<string>",
"phoneNumber": "<string>",
"ringingTimeoutSeconds": 123,
"answeringMachineDetection": true,
"phoneLineIds": [
"<string>"
]
},
"policy": {
"timezone": "<string>",
"useRecipientTimezone": false,
"callingWindows": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"retries": {
"maxTotalCalls": 15,
"maxShortRetries": 14,
"maxCallbacks": 14,
"maxRedirects": 14,
"maxConsecutiveFailures": 15,
"retryDelaySeconds": 302400,
"intervalPlacement": "start",
"rotateStepSeconds": 43200
},
"dataCollection": {
"callbacks": true,
"redirects": true,
"doNotCall": true,
"mappings": [
{
"field": "<string>",
"variable": "<string>"
}
]
},
"followUpContext": {
"callType": true,
"previousConversationId": true,
"previousSummary": true,
"previousTranscript": true
}
},
"timezone": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"branchId": "<string>",
"concurrencyLimit": 123,
"callsPerMinute": 123,
"keepOpen": true,
"lastError": "<string>",
"counts": {
"leads": 123,
"finishedLeads": 123,
"openAttention": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"launchedAt": "2023-11-07T05:31:56Z",
"pausedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z"
},
"created": true,
"callingStartsAt": "2023-11-07T05:31:56Z",
"withinCallingWindow": true
}{
"data": {
"id": "<string>",
"name": "<string>",
"agentId": "<string>",
"agentName": "<string>",
"status": "active",
"variant": "simple",
"source": "dashboard",
"channel": {
"type": "phone",
"phoneLineId": "<string>",
"phoneNumber": "<string>",
"ringingTimeoutSeconds": 123,
"answeringMachineDetection": true,
"phoneLineIds": [
"<string>"
]
},
"policy": {
"timezone": "<string>",
"useRecipientTimezone": false,
"callingWindows": [
{
"weekdays": [
3
],
"intervals": [
{
"start": "<string>",
"end": "<string>"
}
]
}
],
"retries": {
"maxTotalCalls": 15,
"maxShortRetries": 14,
"maxCallbacks": 14,
"maxRedirects": 14,
"maxConsecutiveFailures": 15,
"retryDelaySeconds": 302400,
"intervalPlacement": "start",
"rotateStepSeconds": 43200
},
"dataCollection": {
"callbacks": true,
"redirects": true,
"doNotCall": true,
"mappings": [
{
"field": "<string>",
"variable": "<string>"
}
]
},
"followUpContext": {
"callType": true,
"previousConversationId": true,
"previousSummary": true,
"previousTranscript": true
}
},
"timezone": "<string>",
"startsAt": "2023-11-07T05:31:56Z",
"branchId": "<string>",
"concurrencyLimit": 123,
"callsPerMinute": 123,
"keepOpen": true,
"lastError": "<string>",
"counts": {
"leads": 123,
"finishedLeads": 123,
"openAttention": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"launchedAt": "2023-11-07T05:31:56Z",
"pausedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z"
},
"created": true,
"callingStartsAt": "2023-11-07T05:31:56Z",
"withinCallingWindow": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}