Questions to settle before a send
Every input an automation or a broadcast needs, as questions to ask the person, each with this account's options: for an automation, the starting event (tracked events with their properties and the Mixpanel events mapped to them), filters, the delay before the first text, the event that ends it, follow-ups, repeats (cooldown), who gets it, the message and link, the sender and the topic; for a broadcast, the audience, who to leave out, the message, when, the sender, the topic and a follow-up.
Query Parameters
- kindautomation, broadcast
automation (texts started by an event) or broadcast (one send to an audience). Default "automation".
Details
exclusions lists who never gets the text (opt-outs, topic unsubscribes, no opt-in for marketing, quiet hours, runs in progress, cooldown). gaps says what is missing (no number, no events yet, mapped events that never arrived).
Reads the account and changes nothing. Scope: contacts.
Responses
- 200JSON object
The plan
- 401Error
Missing, malformed, or revoked API key
- 402Error
Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged
- 429Error
Rate limit or quota exceeded
Response Fields
- objectcampaign_plan
- kindstring
- howstring
- questionsarray of object
- questions[].idstring
- questions[].askstring
- questions[].setsstring
- questions[].optionsarray of any
- questions[].defaultany
- questions[].whenstring
- exclusionsarray of string
- gapsarray of string
- contextobject
- console_urlstring
Errors
Every error has the same JSON shape, and request_id matches the X-Request-Id response header. Errors lists every code and what to do about it.
- 401
Missing, malformed, or revoked API key
- 402
Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged
- 429
Rate limit or quota exceeded