Create an Audience
curl --request POST \
--url https://api.monaco.com/v1/audiences \
--header 'Content-Type: application/json' \
--data '
{
"name": "Q2 Enterprise Prospects",
"contact_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"filters": [
{
"condition": "is",
"field": "account_id",
"value": "550e8400-e29b-41d4-a716-446655440000"
}
],
"excluded_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"source_audience_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.monaco.com/v1/audiences"
payload = {
"name": "Q2 Enterprise Prospects",
"contact_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"filters": [
{
"condition": "is",
"field": "account_id",
"value": "550e8400-e29b-41d4-a716-446655440000"
}
],
"excluded_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"source_audience_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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: 'Q2 Enterprise Prospects',
contact_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
filters: [
{
condition: 'is',
field: 'account_id',
value: '550e8400-e29b-41d4-a716-446655440000'
}
],
excluded_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
source_audience_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.monaco.com/v1/audiences', 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/audiences",
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' => 'Q2 Enterprise Prospects',
'contact_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'filters' => [
[
'condition' => 'is',
'field' => 'account_id',
'value' => '550e8400-e29b-41d4-a716-446655440000'
]
],
'excluded_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'source_audience_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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/audiences"
payload := strings.NewReader("{\n \"name\": \"Q2 Enterprise Prospects\",\n \"contact_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filters\": [\n {\n \"condition\": \"is\",\n \"field\": \"account_id\",\n \"value\": \"550e8400-e29b-41d4-a716-446655440000\"\n }\n ],\n \"excluded_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"source_audience_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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/audiences")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Q2 Enterprise Prospects\",\n \"contact_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filters\": [\n {\n \"condition\": \"is\",\n \"field\": \"account_id\",\n \"value\": \"550e8400-e29b-41d4-a716-446655440000\"\n }\n ],\n \"excluded_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"source_audience_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/audiences")
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\": \"Q2 Enterprise Prospects\",\n \"contact_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filters\": [\n {\n \"condition\": \"is\",\n \"field\": \"account_id\",\n \"value\": \"550e8400-e29b-41d4-a716-446655440000\"\n }\n ],\n \"excluded_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"source_audience_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "aud_abc123",
"name": "Q2 Enterprise Prospects",
"type": "static",
"status": "active",
"contact_count": 2,
"created_at": "2026-05-11T10:30:00Z",
"updated_at": "2026-05-11T10:30:00Z"
},
"meta": {
"timestamp": "2026-05-11T10:30:00Z"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found"
}
}Audiences
Create an Audience
Creates a new audience, optionally seeded with contacts — either an explicit contact_ids list or a filters query over the contacts field schemas (optionally narrowed by excluded_ids or source_audience_id).
Audiences can be shared across campaigns.
POST
/
v1
/
audiences
Create an Audience
curl --request POST \
--url https://api.monaco.com/v1/audiences \
--header 'Content-Type: application/json' \
--data '
{
"name": "Q2 Enterprise Prospects",
"contact_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"filters": [
{
"condition": "is",
"field": "account_id",
"value": "550e8400-e29b-41d4-a716-446655440000"
}
],
"excluded_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"source_audience_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.monaco.com/v1/audiences"
payload = {
"name": "Q2 Enterprise Prospects",
"contact_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"filters": [
{
"condition": "is",
"field": "account_id",
"value": "550e8400-e29b-41d4-a716-446655440000"
}
],
"excluded_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"source_audience_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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: 'Q2 Enterprise Prospects',
contact_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
filters: [
{
condition: 'is',
field: 'account_id',
value: '550e8400-e29b-41d4-a716-446655440000'
}
],
excluded_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
source_audience_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.monaco.com/v1/audiences', 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/audiences",
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' => 'Q2 Enterprise Prospects',
'contact_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'filters' => [
[
'condition' => 'is',
'field' => 'account_id',
'value' => '550e8400-e29b-41d4-a716-446655440000'
]
],
'excluded_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'source_audience_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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/audiences"
payload := strings.NewReader("{\n \"name\": \"Q2 Enterprise Prospects\",\n \"contact_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filters\": [\n {\n \"condition\": \"is\",\n \"field\": \"account_id\",\n \"value\": \"550e8400-e29b-41d4-a716-446655440000\"\n }\n ],\n \"excluded_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"source_audience_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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/audiences")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Q2 Enterprise Prospects\",\n \"contact_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filters\": [\n {\n \"condition\": \"is\",\n \"field\": \"account_id\",\n \"value\": \"550e8400-e29b-41d4-a716-446655440000\"\n }\n ],\n \"excluded_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"source_audience_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/audiences")
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\": \"Q2 Enterprise Prospects\",\n \"contact_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"filters\": [\n {\n \"condition\": \"is\",\n \"field\": \"account_id\",\n \"value\": \"550e8400-e29b-41d4-a716-446655440000\"\n }\n ],\n \"excluded_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"source_audience_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "aud_abc123",
"name": "Q2 Enterprise Prospects",
"type": "static",
"status": "active",
"contact_count": 2,
"created_at": "2026-05-11T10:30:00Z",
"updated_at": "2026-05-11T10:30:00Z"
},
"meta": {
"timestamp": "2026-05-11T10:30:00Z"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found"
}
}Body
application/json
Name of the audience to create
Example:
"Q2 Enterprise Prospects"
Optional list of contact IDs to add to the audience on creation. Provide either contact_ids or filters, not both.
Maximum array length:
10000- FilterRule · object[]
- FilterExpression · object
Show child attributes
Show child attributes
Contact IDs to exclude from the filtered set. Only used with filters.
Maximum array length:
10000When set with filters, restricts the selected contacts to current members of this audience.