POST /executeexecutes the workflow and returns JSON by default.POST /validatevalidates workflow source and returns validation diagnostics.POST /formatformats workflow source and returns canonical output.
POST /execute switches to Server-Sent Events when the request includes Accept: text/event-stream.
Request body
/execute response
Successful responses return the workflow output block as JSON.
/execute streaming response
When Accept: text/event-stream is set, /execute responds with text/event-stream. A typical stream contains lifecycle events, agent events, tool/MCP events, and a final completion event.
workflow_completed as the terminal success event and workflow_failed as the terminal failure event.
Streaming responses include an x-superwire-run-id response header. If the client connection drops unintentionally, reconnect with GET /execute/{run_id}/events and pass the last received SSE event id with the Last-Event-ID header.
To intentionally stop backend work for a running stream, call:
Security notes
- Do not log raw request bodies in production because
secretscontains provider and MCP credentials. - Prefer short-lived API keys or internal credentials when possible.
- Keep
.wiresource free of hardcoded secrets.