Preview audience resolution
POST
Resolves an {audiences, contacts, exclude…} selection without saving it and returns the count and a sample.
bearerAuthheader
AuthorizationBearer <token>Mailly API key(Authorization: Bearer )
application/json- body
include?exclude?contacts?array<string>audiences?array<string>sampleLimit?numberSample size, default 20, max 100
[key: string]?unknownResolution result
application/json- response
success*booleanselection*count*numbersample*array<>directRecipientCount?numberincludedContactCount?numberexcludedContactCount?numberaudiences?array<>[key: string]?unknowncurl -X POST 'https://api.mailly.site/audiences/preview' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "success": true, "selection": { "property1": null, "property2": null }, "count": 0, "sample": [ { "property1": null, "property2": null } ], "directRecipientCount": 0, "includedContactCount": 0, "excludedContactCount": 0, "audiences": [ { "property1": null, "property2": null } ], "property1": null, "property2": null}