Submit workflows for async execution, simulate runs without a broker, list active and completed runs, stream events, and stop runs gracefully.
The Engine API is the core execution layer of Devset. You use it to submit compiled workflow definitions for asynchronous execution, simulate workflows locally without touching any broker, inspect the state of active or historical runs, and retrieve every event emitted during a run. All endpoints are relative to http://localhost:8082.
Submit a workflow for asynchronous execution. Devset compiles your workflow DSL, queues it internally, and returns a runId immediately. Use that ID with the other /engine/runs endpoints to track progress.
Simulate a workflow without dispatching any messages to a broker. Devset executes the workflow in-process and returns all events synchronously in a single response. Use this to validate payloads and stage logic before running against a live broker.
The fully-resolved message payload for this stage.
Use simulate before every deploy to a live environment. It catches payload construction errors and missing field references without producing any noise in your broker.
List all active and completed runs. The response groups runs into two buckets: active for runs that are still in progress and completed for runs that have reached a terminal state.Response — 200 OK
Retrieve the status of a single run by its ID. The response has the same shape as one element in the active or completed arrays returned by GET /engine/runs.Path parameters
Request a graceful stop for an active run. Devset transitions the run to STOPPING and allows any in-flight stage to complete before halting. The run status moves to STOPPED once it winds down. The response contains the updated run status at the time the stop was acknowledged.Path parameters
Poll GET /engine/runs/{runId} to confirm the run reaches STOPPED status.
Sending a stop request to a run that is already COMPLETED, FAILED, or STOPPED is a no-op. The run status will not change, and you will still receive a 202 response.