You can create a new audience by making a POST request to https://api.intercom.io/audiences.
Requires the read_write_audiences OAuth scope.
Intercom API version.
If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.
The request payload for creating an audience.
The predicates that define which contacts belong to the audience.
[ { "attribute": "company.name", "type": "string", "comparison": "contains", "value": "Acme" } ]
Role-based predicates that further filter audience membership by contact role. Defaults to all three contact roles when omitted.
[ { "attribute": "role", "type": "role", "comparison": "in", "value": [ … ] } ]
- The production API serverhttps://api.intercom.io/audiences
- The european API serverhttps://api.eu.intercom.io/audiences
- The australian API serverhttps://api.au.intercom.io/audiences
curl -i -X POST \
https://api.intercom.io/audiences \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: 2.17' \
-d '{
"name": "VIP Customers",
"predicates": [
{
"attribute": "company.name",
"type": "string",
"comparison": "contains",
"value": "Acme"
}
],
"role_predicates": [
{
"attribute": "role",
"type": "role",
"comparison": "in",
"value": [
"user_role",
"contact_role",
"visitor_role"
]
}
]
}'Audience created
An audience represents a group of contacts that can be targeted by Fin.
The name of the audience. Returned HTML-escaped, for example & as &.
The predicates that define which contacts belong to the audience.
[ { "attribute": "company.name", "type": "string", "comparison": "contains", "value": "Acme" } ]
Role-based predicates that further filter audience membership by contact role.
[ { "attribute": "role", "type": "role", "comparison": "in", "value": [ … ] } ]
{ "type": "audience", "id": "789", "name": "VIP Customers", "predicates": [ { … } ], "role_predicates": [ { … } ], "created_at": 1717200000, "updated_at": 1717200000 }