Skip to content
dimmiDocs

Broadcasts and series

Walk one person through a series

POST/api/v1/series/{series}/simulations/run

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the series:write ability

Path parameters

seriesstringrequired

Id of the series, starting with srs_, such as srs_01jx2m8k4t. Find it with GET /series.

Body

application/json
action_mocksobject

What 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_idstring

The contact to walk through (cnt_...); or leave out and describe a person.

Maximum length: 64

engagedstring[] | null

Whether they open, click or reply to the messages: opened, clicked or replied.

Maximum items: 3

eventsstring[] | null

Events the person does on the way, by name.

Maximum items: 20

personobject
Show child attributes
attributesobject

The made-up person's attributes, by key.

emailstring

The made-up person's email address.

Maximum length: 320

namestring

The made-up person's name.

Maximum length: 200

scenariostring

How 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

versionstring

draft or live. Left out, it is draft.

Available options:draftlive

Response 200

OK
dataobjectrequired
Show child attributes
actionsobject[] | nullrequired

The changes the journey would make, such as tags and attributes, in order.

Show child attributes
detailobject

What the change is, as an object.

kindstringrequired

What the step does, such as tag or set_attribute.

node_idstringrequired

Id of the step.

decisionsobject[] | nullrequired

With 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 attributes
beforeintegerrequired

The index in steps of the step this was asked before.

Format: int64

didbooleanrequired

true when the person did it.

whatstringrequired

What the series asked, in words, such as open the message "Welcome".

endstringrequired

How the journey ended: finished, goal, exited or still waiting.

enteredbooleanrequired

true when the person would enter the series.

goal_reachedbooleanrequired

true when the person would reach the series' goal.

messagesobject[] | nullrequired

The messages that would go out, in order.

Show child attributes
bodystringrequired

The message as written, variables unfilled.

kindstringrequired

How it would go out: email, chat, post or slack.

node_idstringrequired

Id of the step that sends it.

subjectstring

The email subject. Empty for other kinds.

tostring

Who would receive it.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

reasonstring

Why the person would not enter, or why the journey ended. Empty when nothing to say.

stepsobject[] | nullrequired

Each step the person would reach, in order, with the path it took.

Show child attributes
detailobject

A few facts the step kept, as an object.

kindstringrequired

What the step does, such as wait, condition or ai_path.

node_idstringrequired

Id of the step.

pathstring

The path the step took. Empty when it has one way on.

resultstringrequired

What the step did, as a short word.

skippedboolean

true when the step was a wait the simulation skipped.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.