Workflows and integrations
Get a workflow simulation
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the workflows:read ability
Path parameters
workflowstringrequiredId of the workflow, starting with wf_, such as wf_01jx2m8k4t. Find it with GET /workflows.
simulationstringrequiredId of the AI agent simulation, starting with aias_, such as aias_01jx2m8k4t. Find it with GET /ai/agents/{agent}/simulations.
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
action_mocksanyrequiredWhat 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.
assertionsanyrequiredWhat must hold after the run, as a JSON array of checks.
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
draft_historyobjectrequiredShow child attributesHide child attributes
passedintegerrequiredHow many of the counted runs passed.
Format: int64
runsobject[] | nullrequiredThe counted runs, newest first.
Show child attributesHide child attributes
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
passedbooleanrequiredtrue when every check of the run held.
ran_atstringrequiredWhen the run happened.
Format: date-time
statestringrequiredpassing when every counted run passed, failing when none did, flaky in between.
Available options:passingflakyfailing
totalintegerrequiredHow many runs are counted.
Format: int64
windowintegerrequiredThe most runs a history counts: only the latest this many.
Format: int64
draft_resultanyrequiredHow 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.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
live_historyobjectrequiredShow child attributesHide child attributes
passedintegerrequiredHow many of the counted runs passed.
Format: int64
runsobject[] | nullrequiredThe counted runs, newest first.
Show child attributesHide child attributes
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
passedbooleanrequiredtrue when every check of the run held.
ran_atstringrequiredWhen the run happened.
Format: date-time
statestringrequiredpassing when every counted run passed, failing when none did, flaky in between.
Available options:passingflakyfailing
totalintegerrequiredHow many runs are counted.
Format: int64
windowintegerrequiredThe most runs a history counts: only the latest this many.
Format: int64
live_resultanyrequiredHow 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.
messagesanyrequiredThe customer's messages, in order, as a JSON array.
namestringrequiredName of the simulation, up to 120 characters.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
personaanyrequiredThe made-up customer, as a JSON object with fields such as name, email and attributes.
scenariostringrequiredWho the customer is and what they came for. The simulated customer answers from it.
simulated_atstring | nullrequiredThe moment the simulation pretends it is. Null to run at the real time.
Format: date-time
source_conversation_idstring | nullrequiredId of the real conversation the simulation was made from (conv_...). Null when written by hand.
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
workflow_idstringrequiredId of the workflow the simulation belongs to (wf_...).
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.