curl --request POST \
--url https://api.monaco.com/v1/campaigns/ \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"audience_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"distribution": {
"mode": "<string>",
"sender_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"percentages": [
{
"sender_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percentage": 1
}
]
},
"end_date": "2026-12-31",
"prioritized": false,
"rules_of_engagement": {
"max_contacts_in_sequence": {
"enabled": true,
"max_contacts": 3
}
},
"autopilot_settings": {
"sender_rates": [
{
"sender_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"daily_rate_target": 123
}
]
}
}
'import requests
url = "https://api.monaco.com/v1/campaigns/"
payload = {
"name": "<string>",
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"audience_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"distribution": {
"mode": "<string>",
"sender_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"percentages": [
{
"sender_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percentage": 1
}
]
},
"end_date": "2026-12-31",
"prioritized": False,
"rules_of_engagement": { "max_contacts_in_sequence": {
"enabled": True,
"max_contacts": 3
} },
"autopilot_settings": { "sender_rates": [
{
"sender_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"daily_rate_target": 123
}
] }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
template_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
audience_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
distribution: {
mode: '<string>',
sender_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
percentages: [{sender_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', percentage: 1}]
},
end_date: '2026-12-31',
prioritized: false,
rules_of_engagement: {max_contacts_in_sequence: {enabled: true, max_contacts: 3}},
autopilot_settings: {
sender_rates: [{sender_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', daily_rate_target: 123}]
}
})
};
fetch('https://api.monaco.com/v1/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://api.monaco.com/v1/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>',
'template_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'audience_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'distribution' => [
'mode' => '<string>',
'sender_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'percentages' => [
[
'sender_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'percentage' => 1
]
]
],
'end_date' => '2026-12-31',
'prioritized' => false,
'rules_of_engagement' => [
'max_contacts_in_sequence' => [
'enabled' => true,
'max_contacts' => 3
]
],
'autopilot_settings' => [
'sender_rates' => [
[
'sender_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'daily_rate_target' => 123
]
]
]
]),
CURLOPT_HTTPHEADER => [
"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://api.monaco.com/v1/campaigns/"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"template_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"audience_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"distribution\": {\n \"mode\": \"<string>\",\n \"sender_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"percentages\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"percentage\": 1\n }\n ]\n },\n \"end_date\": \"2026-12-31\",\n \"prioritized\": false,\n \"rules_of_engagement\": {\n \"max_contacts_in_sequence\": {\n \"enabled\": true,\n \"max_contacts\": 3\n }\n },\n \"autopilot_settings\": {\n \"sender_rates\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_rate_target\": 123\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.monaco.com/v1/campaigns/")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"template_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"audience_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"distribution\": {\n \"mode\": \"<string>\",\n \"sender_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"percentages\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"percentage\": 1\n }\n ]\n },\n \"end_date\": \"2026-12-31\",\n \"prioritized\": false,\n \"rules_of_engagement\": {\n \"max_contacts_in_sequence\": {\n \"enabled\": true,\n \"max_contacts\": 3\n }\n },\n \"autopilot_settings\": {\n \"sender_rates\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_rate_target\": 123\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/campaigns/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"template_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"audience_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"distribution\": {\n \"mode\": \"<string>\",\n \"sender_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"percentages\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"percentage\": 1\n }\n ]\n },\n \"end_date\": \"2026-12-31\",\n \"prioritized\": false,\n \"rules_of_engagement\": {\n \"max_contacts_in_sequence\": {\n \"enabled\": true,\n \"max_contacts\": 3\n }\n },\n \"autopilot_settings\": {\n \"sender_rates\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_rate_target\": 123\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cmp_abc123",
"name": "Q3 Enterprise Outbound",
"status": "active",
"prioritized": true,
"end_date": "2026-12-31",
"template_id": "seqt_789ghi",
"template_name": "Enterprise Onboarding",
"audiences": [
{
"id": "aud_abc123",
"name": "Enterprise West"
}
],
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
},
"meta": {
"timestamp": "2026-01-15T10:30:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Create a Campaign
Creates a campaign that enrolls the contacts of the given audiences onto a template, routing sends according to distribution.
distribution.mode selects how sends are routed:
percentage→ split sends acrosssender_idsby fixedpercentages(one entry per sender, summing to 100).account_owner→ route each contact’s sends to the owner of its account when that owner is one ofsender_ids; otherwise fall back tofallback_sender_id.fallback_sender_idis required in this mode and catches contacts whose account is unassigned or owned by a non-sender.
curl --request POST \
--url https://api.monaco.com/v1/campaigns/ \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"audience_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"distribution": {
"mode": "<string>",
"sender_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"percentages": [
{
"sender_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percentage": 1
}
]
},
"end_date": "2026-12-31",
"prioritized": false,
"rules_of_engagement": {
"max_contacts_in_sequence": {
"enabled": true,
"max_contacts": 3
}
},
"autopilot_settings": {
"sender_rates": [
{
"sender_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"daily_rate_target": 123
}
]
}
}
'import requests
url = "https://api.monaco.com/v1/campaigns/"
payload = {
"name": "<string>",
"template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"audience_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"distribution": {
"mode": "<string>",
"sender_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"percentages": [
{
"sender_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percentage": 1
}
]
},
"end_date": "2026-12-31",
"prioritized": False,
"rules_of_engagement": { "max_contacts_in_sequence": {
"enabled": True,
"max_contacts": 3
} },
"autopilot_settings": { "sender_rates": [
{
"sender_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"daily_rate_target": 123
}
] }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
template_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
audience_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
distribution: {
mode: '<string>',
sender_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
percentages: [{sender_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', percentage: 1}]
},
end_date: '2026-12-31',
prioritized: false,
rules_of_engagement: {max_contacts_in_sequence: {enabled: true, max_contacts: 3}},
autopilot_settings: {
sender_rates: [{sender_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', daily_rate_target: 123}]
}
})
};
fetch('https://api.monaco.com/v1/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://api.monaco.com/v1/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>',
'template_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'audience_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'distribution' => [
'mode' => '<string>',
'sender_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'percentages' => [
[
'sender_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'percentage' => 1
]
]
],
'end_date' => '2026-12-31',
'prioritized' => false,
'rules_of_engagement' => [
'max_contacts_in_sequence' => [
'enabled' => true,
'max_contacts' => 3
]
],
'autopilot_settings' => [
'sender_rates' => [
[
'sender_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'daily_rate_target' => 123
]
]
]
]),
CURLOPT_HTTPHEADER => [
"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://api.monaco.com/v1/campaigns/"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"template_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"audience_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"distribution\": {\n \"mode\": \"<string>\",\n \"sender_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"percentages\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"percentage\": 1\n }\n ]\n },\n \"end_date\": \"2026-12-31\",\n \"prioritized\": false,\n \"rules_of_engagement\": {\n \"max_contacts_in_sequence\": {\n \"enabled\": true,\n \"max_contacts\": 3\n }\n },\n \"autopilot_settings\": {\n \"sender_rates\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_rate_target\": 123\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.monaco.com/v1/campaigns/")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"template_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"audience_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"distribution\": {\n \"mode\": \"<string>\",\n \"sender_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"percentages\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"percentage\": 1\n }\n ]\n },\n \"end_date\": \"2026-12-31\",\n \"prioritized\": false,\n \"rules_of_engagement\": {\n \"max_contacts_in_sequence\": {\n \"enabled\": true,\n \"max_contacts\": 3\n }\n },\n \"autopilot_settings\": {\n \"sender_rates\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_rate_target\": 123\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/campaigns/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"template_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"audience_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"distribution\": {\n \"mode\": \"<string>\",\n \"sender_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"percentages\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"percentage\": 1\n }\n ]\n },\n \"end_date\": \"2026-12-31\",\n \"prioritized\": false,\n \"rules_of_engagement\": {\n \"max_contacts_in_sequence\": {\n \"enabled\": true,\n \"max_contacts\": 3\n }\n },\n \"autopilot_settings\": {\n \"sender_rates\": [\n {\n \"sender_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"daily_rate_target\": 123\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "cmp_abc123",
"name": "Q3 Enterprise Outbound",
"status": "active",
"prioritized": true,
"end_date": "2026-12-31",
"template_id": "seqt_789ghi",
"template_name": "Enterprise Onboarding",
"audiences": [
{
"id": "aud_abc123",
"name": "Enterprise West"
}
],
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
},
"meta": {
"timestamp": "2026-01-15T10:30:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Body
Name of the campaign; must be unique within the organization
"Q3 Enterprise Outbound"
ID of the template enrolled contacts are placed on
"550e8400-e29b-41d4-a716-446655440000"
IDs of the audiences whose contacts are enrolled in this campaign
1["550e8400-e29b-41d4-a716-446655440010"]
Split sends across named senders by fixed percentages that sum to 100.
- PercentageDistribution
- AccountOwnerDistribution
Show child attributes
Show child attributes
Date the campaign stops enrolling; must not be in the past
"2026-12-31"
Whether this campaign takes priority over non-prioritized campaigns
false
Per-rule overrides on the org's default rules of engagement
Show child attributes
Show child attributes
{
"max_contacts_in_sequence": { "enabled": true, "max_contacts": 3 }
}
Initial autopilot roster. Senders listed here auto-send up to their daily cap; senders in distribution but omitted here require manual approval per send. Omit to leave every sender supervised.
Show child attributes
Show child attributes