Workflows API Reference
Programmatically create, deploy, and execute workflows.Base URL
Authentication
All requests require a Bearer token:Create & Deploy Workflow
Create a workflow and deploy it in a single call. Returns a webhook URL and secret.Endpoint
JSON
Response
webhookSecret is only returned once. Store it securely.
List Workflows
Endpoint
Response
Get Workflow
Endpoint
Response
Update Workflow
Endpoint
JSON
Delete Workflow
Endpoint
Deploy Workflow
Endpoint
Response
Undeploy Workflow
Endpoint
Execute via Webhook
Endpoint
| Header | Required | Description |
|---|---|---|
X-Webhook-Secret | Yes | The webhook secret from deployment |
Content-Type | Yes | application/json |
X-Callback-Url | No | URL to receive completion callback |
| Param | Default | Description |
|---|---|---|
mode | async | async (fire-and-forget) or sync (wait for result) |
timeout | 30000 | Sync mode timeout in milliseconds (max 300000) |
{{fieldName}} in templates.
JSON
Response (async)
Response (sync)
Execute (Authenticated)
Endpoint
JSON
List Executions
Endpoint
| Param | Default | Description |
|---|---|---|
limit | 50 | Max results |
status | all | Filter: RUNNING, SUCCEEDED, FAILED, TIMED_OUT, ABORTED |
Response
Get Execution Details
Endpoint
Response
Node Types
Trigger Node
Every workflow must have exactly one trigger node.JSON
Action Node
JSON
Condition Node
JSON
Template Syntax
| Pattern | Description | Example |
|---|---|---|
{{fieldName}} | Trigger input field | {{topic}} |
{{results.StepLabel.output}} | Previous step output | {{results.Search_Web.output}} |
{{results.StepLabel.output.field}} | Specific field | {{results.LLM.output.choices[0].message.content}} |
Search_Web
Error Responses
| Status | Description |
|---|---|
| 400 | Invalid request (missing fields, invalid JSON) |
| 401 | Missing or invalid API key / webhook secret |
| 403 | Insufficient permissions |
| 404 | Workflow not found |
| 500 | Internal server error |
Response