Create a new run (execute workflow)

Create a new run (execute workflow)

Execute a workflow version. Supports input overrides, partial execution, and auto-update of nodes.

POST/api/runs
Body
sessionIdstringrequired
promptstring
clientTurnIdstring
resumeboolean
modelIdstring
workflowIdstring
workflowNamestring
versionIdstring
checkpointVersionIdstring
vaultIdstring
spaceIdstring
workflowDataobject
workflowDataHashstring
lastRunIdstring
isScheduledboolean
lastRunStatusobject

editorModeenum

One of: workflow, app, agent, database

moduleContextobject

agentModeenumrequired

One of: agent, plan

focusedNodestring
focusedNodeContextobject
mentionedNodesstring[]
timezonestring
appContextstring
sandboxSessionIdstring
sandboxPreviewUrlstring
sandboxDatasetsobject[]

imageAttachmentsobject[]

fileAttachmentsobject[]

Request

curl
curl -X POST https://trickest.io/api/runs \
  -H "Authorization: Bearer $TRICKEST_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ }'

Responses

201Run created successfully
idstringrequired
workflow_idstringrequired
statusenumrequired

One of: PENDING, RUNNING, COMPLETED, FAILED, CANCELLED, STOPPED, ERROR, PARTIAL_SUCCESS, SCHEDULED, STOPPING

created_datestringrequired
finished_datestring
finishedboolean
completed_datestring
fleetstring
machinesobject
400Bad Request – validation error or malformed input
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

401Unauthorized – missing or expired token
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

403Forbidden – insufficient permissions
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

429Too Many Requests – rate limited
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

500Internal Server Error
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.