Campaigns
Get the campaign settings
The workspace’s default lead policy and its overrides, which new campaigns take a copy of, with the version to send when replacing them.
GET
/
api
/
v2
/
campaign-settings
Get the campaign settings
curl --request GET \
--url https://app.cntillion.com/api/v2/campaign-settings \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.cntillion.com/api/v2/campaign-settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.cntillion.com/api/v2/campaign-settings', 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/campaign-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.cntillion.com/api/v2/campaign-settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.cntillion.com/api/v2/campaign-settings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/campaign-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"version": 123,
"settings": {
"defaultPolicy": {
"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
}
},
"whatsappVoice": {
"timezone": "<string>",
"useRecipientTimezone": true,
"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
}
},
"agentOverrides": [
{
"agentId": "<string>",
"timezone": "<string>",
"useRecipientTimezone": true,
"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
}
}
]
}
}
}{
"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
workspaceApiKeyworkspaceApiKeyHeader
⌘I
Get the campaign settings
curl --request GET \
--url https://app.cntillion.com/api/v2/campaign-settings \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.cntillion.com/api/v2/campaign-settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.cntillion.com/api/v2/campaign-settings', 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/campaign-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.cntillion.com/api/v2/campaign-settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.cntillion.com/api/v2/campaign-settings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/campaign-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"version": 123,
"settings": {
"defaultPolicy": {
"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
}
},
"whatsappVoice": {
"timezone": "<string>",
"useRecipientTimezone": true,
"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
}
},
"agentOverrides": [
{
"agentId": "<string>",
"timezone": "<string>",
"useRecipientTimezone": true,
"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
}
}
]
}
}
}{
"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>"
}
}