Skip to content

Get Contact Audience

Tool name: get-contact-audience

Reads one saved contact audience: its name, its conditions in the shape update-contact-audience takes, how many contacts match right now and which newsletters not yet sent address it -- null for an access without newsletter permission (customer support). The count is every matching contact; a newsletter reaches only the subscribed ones among them. Reads only.

Input schema

audienceIdinteger, >= 1required

ID of the audience, from list-contact-audiences

accountIdnull or integer, >= 1

User ID of the account; omit for the account of the access token

Default:null
Input example
{ "audienceId": 1, "accountId": null }

Output schema

accountIdintegerrequired
audienceIdintegerrequired
namestringrequired
filterobjectrequired
contactCountinteger or nullrequired
unsentNewslettersArray of objects or nullrequired
Output example
{ "accountId": 0, "audienceId": 0, "name": "string", "filter": { "channel": "any", "email": { "address": { "operator": "is", "value": "string" }, "statuses": [ "subscribed" ], "bounces": [ "not-bounced" ], "optInDate": { "operator": "on", "date": "string", "until": "string" }, "confirmationDate": { "operator": "on", "date": "string", "until": "string" } }, "sms": { "phoneNumber": { "operator": "is", "value": "string" }, "statuses": [ "subscribed" ], "bounces": [ "not-bounced" ], "subscriptionDate": { "operator": "on", "date": "string", "until": "string" } }, "tags": { "include": [ 1 ], "includeMatch": "all", "exclude": [ 1 ], "excludeMatch": "all" }, "customFields": [ { "fieldId": "string", "operator": "is-empty", "value": "string", "values": [ "string" ], "until": "string" } ] }, "contactCount": 0, "unsentNewsletters": [ { "newsletterId": 0, "name": "string", "channel": "email", "status": "draft" } ] }