Skip to content
dimmiDocs

Workflows and integrations

Run a workflow's simulations

POST/api/v1/workflows/{workflow}/simulations/run

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the workflows:write ability

Path parameters

workflowstringrequired

Id of the workflow, starting with wf_, such as wf_01jx2m8k4t. Find it with GET /workflows.

Body

application/json
simulation_idsstring[] | null

The simulations to run (wfs_...); leave out to run every one.

Maximum items: 20

stream_idstring

An id you make up, at most 64 characters, so the run reports its progress live while it goes.

Maximum length: 64

versionstring

draft or live. Left out, it is draft.

Available options:draftlive

Response 200

OK
dataobject[] | nullrequired

The items of this page, as a list; empty when nothing matches.

Show child attributes
action_mocksanyrequired

What each mocked step answers instead of a real call, by step id, each with a status and a body: an HTTP request or run action step (also keyed by action id, aac_...) its response, an extract step the values by key, a classify step the path as path_id.

assertionsanyrequired

What must hold after the run, as a JSON array of checks.

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

draft_historyobjectrequired
Show child attributes
passedintegerrequired

How many of the counted runs passed.

Format: int64

runsobject[] | nullrequired

The counted runs, newest first.

Show child attributes
idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

passedbooleanrequired

true when every check of the run held.

ran_atstringrequired

When the run happened.

Format: date-time

statestringrequired

passing when every counted run passed, failing when none did, flaky in between.

Available options:passingflakyfailing

totalintegerrequired

How many runs are counted.

Format: int64

windowintegerrequired

The most runs a history counts: only the latest this many.

Format: int64

draft_resultanyrequired

How its last run on the draft went, as a JSON object with passed, ran_at, the trace of steps, the result of each check and, on a broken run, error. Null when it never ran there.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

live_historyobjectrequired
Show child attributes
passedintegerrequired

How many of the counted runs passed.

Format: int64

runsobject[] | nullrequired

The counted runs, newest first.

Show child attributes
idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

passedbooleanrequired

true when every check of the run held.

ran_atstringrequired

When the run happened.

Format: date-time

statestringrequired

passing when every counted run passed, failing when none did, flaky in between.

Available options:passingflakyfailing

totalintegerrequired

How many runs are counted.

Format: int64

windowintegerrequired

The most runs a history counts: only the latest this many.

Format: int64

live_resultanyrequired

How its last run on the live version went, as a JSON object with passed, ran_at, the trace of steps, the result of each check and, on a broken run, error. Null when it never ran there.

messagesanyrequired

The customer's messages, in order, as a JSON array.

namestringrequired

Name of the simulation, up to 120 characters.

objectstringrequired

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

personaanyrequired

The made-up customer, as a JSON object with fields such as name, email and attributes.

scenariostringrequired

Who the customer is and what they came for. The simulated customer answers from it.

simulated_atstring | nullrequired

The moment the simulation pretends it is. Null to run at the real time.

Format: date-time

source_conversation_idstring | nullrequired

Id of the real conversation the simulation was made from (conv_...). Null when written by hand.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

workflow_idstringrequired

Id of the workflow the simulation belongs to (wf_...).

linksobject

Addresses of related pages by name, such as next; left out when there are none.

metaobjectrequired
Show child attributes
next_cursorstring | nullrequired

Send it as cursor to read the next page; null on the last page.

per_pageintegerrequired

How many items a page holds at most, such as 25.

Format: int64

prev_cursorstring | nullrequired

Send it as cursor to read the page before; null on the first page.

totalinteger

How many items match in all; left out when the list does not count them.

Format: int64

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.