Broadcasts and series
Walk one person through a series
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the series:write ability
Path parameters
seriesstringrequiredId of the series, starting with srs_, such as srs_01jx2m8k4t. Find it with GET /series.
Body
application/jsonaction_mocksobjectWhat extract and run action steps answer instead of the AI or the action, keyed by step id or action id (aac_...): a status and a body. An extract step's body holds the values by key; a run action step's body is the action's result, and a status outside 2xx takes the failed path.
contact_idstringThe contact to walk through (cnt_...); or leave out and describe a person.
Maximum length: 64
engagedstring[] | nullWhether they open, click or reply to the messages: opened, clicked or replied.
Maximum items: 3
eventsstring[] | nullEvents the person does on the way, by name.
Maximum items: 20
personobjectShow child attributesHide child attributes
attributesobjectThe made-up person's attributes, by key.
emailstringThe made-up person's email address.
Maximum length: 320
namestringThe made-up person's name.
Maximum length: 200
scenariostringHow the person behaves, in words, such as opens every email but never clicks. The AI reads it to say whether they open, click, reply or do an event each time the series asks, in place of events and engaged.
Maximum length: 2000
versionstringdraft or live. Left out, it is draft.
Available options:draftlive
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
actionsobject[] | nullrequiredThe changes the journey would make, such as tags and attributes, in order.
Show child attributesHide child attributes
detailobjectWhat the change is, as an object.
kindstringrequiredWhat the step does, such as tag or set_attribute.
node_idstringrequiredId of the step.
decisionsobject[] | nullrequiredWith a scenario, what the person did each time the series asked whether they open, click, reply or do an event. Empty without a scenario.
Show child attributesHide child attributes
beforeintegerrequiredThe index in steps of the step this was asked before.
Format: int64
didbooleanrequiredtrue when the person did it.
whatstringrequiredWhat the series asked, in words, such as open the message "Welcome".
endstringrequiredHow the journey ended: finished, goal, exited or still waiting.
enteredbooleanrequiredtrue when the person would enter the series.
goal_reachedbooleanrequiredtrue when the person would reach the series' goal.
messagesobject[] | nullrequiredThe messages that would go out, in order.
Show child attributesHide child attributes
bodystringrequiredThe message as written, variables unfilled.
kindstringrequiredHow it would go out: email, chat, post or slack.
node_idstringrequiredId of the step that sends it.
subjectstringThe email subject. Empty for other kinds.
tostringWho would receive it.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
reasonstringWhy the person would not enter, or why the journey ended. Empty when nothing to say.
stepsobject[] | nullrequiredEach step the person would reach, in order, with the path it took.
Show child attributesHide child attributes
detailobjectA few facts the step kept, as an object.
kindstringrequiredWhat the step does, such as wait, condition or ai_path.
node_idstringrequiredId of the step.
pathstringThe path the step took. Empty when it has one way on.
resultstringrequiredWhat the step did, as a short word.
skippedbooleantrue when the step was a wait the simulation skipped.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.