Create audience from campaign
Creates an audience from the recipients of a previous campaign that had one outcome, to send them a follow-up campaign. The members are a snapshot taken when the request runs: later receipts, reads or replies on the source campaign do not change the audience. Numbers on the team’s opt-out list are left out and counted in optedOutCount; each member keeps the template variables it had on the source campaign. Outcomes: delivered (the device confirmed delivery), not_delivered (sent, with no delivery confirmation), read, not_read (sent and not read, including sends never delivered), replied, not_replied (sent and no reply was attributed), and failed (confirmed failed sends; sends whose outcome is uncertain, such as a timeout waiting for WhatsApp, are excluded). Read outcomes depend on the recipient’s read receipts. 404 means the campaign is not in your team (or not in projectId when given); 409 means no recipient that is not opted out has the outcome, and nothing is created.
Requires a team API key with campaigns:manage. Project tokens are not accepted.
Authorizations
Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.
Body
Human-readable name for this resource.
Value constraints
1 - 200The campaign whose recipients are selected.
Value constraints
Specifies outcome for this schema.
Allowed values
delivered, not_delivered, read, not_read, replied, not_replied, failed Optional. When given, the campaign must belong to this project.
Value constraints
Response
Success
Structured data carried by this object.