v5
OpenAPI 3.1.02026-07-31129337684.6 KBExecute Workflow
Execute a workflow interactively over standard HTTP POST.
First turn (run_id absent in request body): Starts a new interactive session, runs until pause/terminal, and returns a run_id the client must echo back on all subsequent requests.
Subsequent turns (run_id present): Resumes the paused session with new user input, runs until the next pause or terminal state.
Cancellation (run_id present, run_input.command = "stop"): Cancels the session, flushes state to MongoDB, returns status=CANCELLED.
Path parameters
Query parameters
Workflow version to run. Applies to the first turn only; subsequent turns always use the version from the initial turn.
Workflow version to run. Applies to the first turn only; subsequent turns always use the version from the initial turn.
Request body
Example request
{
"run_input": {
"workflow_id": "5eb7cf5a86d9755df3a6c593",
"workflow_run_id": "5eb7cf5a86d9755df3a6c593"
}
}Response
Successful Response