Automation
Current release · Updated October 4, 2026
DryKraft Automation reference: methods, permissions, request fields, response shapes, examples and current limits. Read authentication and error handling first.
/api/automation/schedules/previewPreview scheduled times
Access: Workspace member · Success: 200
Computes five upcoming times without running actions. Same calculation as publication/dispatch. Interval mode is elapsed minutes; cron mode uses five fields and a named IANA timezone. One overdue occurrence runs after downtime; other missed times are skipped. Reactivation starts at the next future time.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
mode | interval | cron | No | Defaults interval |
intervalMinutes | integer | No | Required in interval mode Min 1. Max 525600. |
cron | string | No | Required in cron mode, five fields Max 120 characters. |
timezone | string | No | Required in cron mode, IANA timezone Max 80 characters. |
Response
| Field | Type | Required | Details |
|---|---|---|---|
next_runs | date-time[] | Yes | Min 5 items. Max 5 items. |
timezone | string | Yes | Selected timezone, or UTC for elapsed intervals |
curl --request POST \
--url 'https://app.drykraft.com/api/automation/schedules/preview' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{}'/api/automation/workflowsList general workflows
Access: Workspace member · Success: 200
Managed outreach workflows are excluded. Returns execution counts.
No request body is required.
Response
Workflow[].
curl --request GET \
--url 'https://app.drykraft.com/api/automation/workflows' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/subworkflowsFind callable published sub-workflows
Access: Workspace member · Success: 200
Current active published reusable versions in this workspace only, up to200 matching names. Managed Outreach and drafts excluded. Older selected immutable versions can remain pinned in a caller.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
search | string | No | Optional literal case-insensitive name substring Max 100 characters. |
No request body is required.
Response
object[].
curl --request GET \
--url 'https://app.drykraft.com/api/automation/subworkflows' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/error-workflowsFind published error workflows
Access: Workspace member · Success: 200
Current active published Error trigger versions in this workspace, up to200 matching names. Managed Outreach excluded. Selection pins exact version.
Query parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
search | string | No | Optional literal case-insensitive name substring Max 100 characters. |
No request body is required.
Response
object[].
curl --request GET \
--url 'https://app.drykraft.com/api/automation/error-workflows' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/workflowsCreate workflow draft
Access: Owner, admin or member · Success: 201
Starts with a manual trigger.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Name Max 100 characters. |
description | string | No | Default empty Max 1000 characters. |
Response
Use Workflow.
curl --request POST \
--url 'https://app.drykraft.com/api/automation/workflows' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<Name>"
}'/api/automation/workflows/{id}Save workflow draft
Access: Owner, admin or member · Success: 200
Draft shape validated here; publish performs graph validation. Managed outreach workflows cannot be changed here.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Name Max 100 characters. |
description | string | No | Default empty Max 1000 characters. |
draft | Graph | Yes |
Response
Use Workflow.
curl --request PUT \
--url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<Name>",
"draft": {
"nodes": [
{
"id": "<Unique nonempty node ID>",
"type": "workflow",
"position": {
"x": 1,
"y": 1
},
"data": {
"kind": "trigger.manual",
"label": "<Nonempty node label>"
}
}
],
"edges": []
}
}'/api/automation/workflows/{id}/publishPublish immutable version
Access: Owner or admin · Success: 200
Exactly one trigger, unique nodes, connected acyclic graph. Condition routes unique true/false handles; Switch routes one of1-10 ordered cases or default. At most one outgoing path per handle; other nodes have one path. List settings and safe paths validated. Search validates current workspace object/list/field rules; runtime resolves typed values. GraphQL validates endpoint/document/variables shape and outbound HTTP/GraphQL credentials must belong to this workspace. Endpoint owns GraphQL syntax/schema validation. Reusable workflows must connect every condition/Switch branch to Return values outside Loop item bodies. Calls validate typed mappings, current workspace/active child and exact immutable version, reject self/ancestor references and limit published trees to five levels/1000 calls. Child names/version numbers are server resolved. Optional trigger errorWorkflow pins a current-workspace active Error trigger version; self references and automatic Error trigger handlers are rejected. Activates workflow; future runs use this version.
No request body is required.
Response
object. id, workflow_id, version, graph, created_at
curl --request POST \
--url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/publish' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/workflows/{id}/statusActivate or pause workflow
Access: Owner or admin · Success: 200
Must already be published.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
status | active | paused | Yes | Workflow status |
Response
Use Workflow.
curl --request POST \
--url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/status' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"status": "active"
}'/api/automation/workflows/{id}/versionsRead published versions
Access: Workspace member · Success: 200
Latest version first.
No request body is required.
Response
object[]. id, workflow_id, version, graph, created_at
curl --request GET \
--url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/versions' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/workflows/{id}/webhookRead workflow hook URL
Access: Owner or admin · Success: 200
URL is a secret capability; null before creation. Never expose in public docs/logs.
No request body is required.
Response
| Field | Type | Required | Details |
|---|---|---|---|
url | string or null | No |
curl --request GET \
--url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/webhook' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/workflows/{id}/webhookCreate or rotate hook URL
Access: Owner or admin · Success: 200
Old token immediately stops working. Publish an active webhook trigger before receiving runs.
No request body is required.
Response
| Field | Type | Required | Details |
|---|---|---|---|
url | uri | No |
curl --request POST \
--url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/webhook' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/workflows/{id}/runRun published version
Access: Owner, admin or member · Success: 202
Returns an accepted execution; inspect history for outcome. Published version required. Worker enforces billing access. Sub-workflow trigger inputs must match the closed typed contract before creating a run. Error triggers cannot be started through this endpoint; test their source workflow.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
input | object | No | Object field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated. |
Response
Use Execution.
curl --request POST \
--url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/run' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{}'/api/automation/executionsList recent executions
Access: Workspace member · Success: 200
Latest 100, with workflow_name.
No request body is required.
Response
Execution[].
curl --request GET \
--url 'https://app.drykraft.com/api/automation/executions' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/executions/{id}Inspect execution
Access: Workspace member · Success: 200
Includes workflow name, saved version number, managed Outreach flag and latest 50 incoming/outgoing recovery receipts. One current state row per visited node and iteration_path, ordered by first start; retries update that row rather than storing every attempt. Node names/kinds use the immutable version. A child runtime.call links parent_id, node_id, iteration_path, root_id and ancestry. Server-owned runtime.error_workflow links the one automatically queued handler execution_id/version_id or a skipped reason; runtime.error_handler.source_id links its failed source and is inherited by handler sub-workflows to suppress recursive dispatch. Call node outputs link execution_id/version_id and returned output; caller waits durably, checks terminal child state about every2seconds and reuses the child binding on retry.
No request body is required.
Response
Use Execution.
| Field | Type | Required | Details |
|---|---|---|---|
current_iteration_path | string | No | Canonical JSON array of [Loop or Split step ID, zero-based item/branch index] pairs; empty outside scoped paths Max 1024 characters. |
workflow_name | string | No | Current workflow name |
version | integer | No | Saved published version number |
managed | boolean | No | Recovery must use Outreach controls |
recoveries | object[] | No | Max 50 items. |
nodes | object[] | No |
curl --request GET \
--url 'https://app.drykraft.com/api/automation/executions/00000000-0000-4000-8000-000000000001' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/executions/{id}/cancelCancel unfinished execution
Access: Owner, admin or member · Success: 200
Queued/running/waiting/retrying only. Cancels pending descendants by server-owned ancestry. Cannot recall an external side effect already accepted.
No request body is required.
Response
Use Execution.
curl --request POST \
--url 'https://app.drykraft.com/api/automation/executions/00000000-0000-4000-8000-000000000001/cancel' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/executions/{id}/retryRetry failed execution
Access: Owner, admin or member · Success: 200
Compatibility action: failed general workflows only, same execution/context/version and completed outputs. Clears terminal timing and records a retry receipt. Managed Outreach recovery is rejected. Prefer recover with a stable request UUID for ambiguous-response safety.
No request body is required.
Response
Use Execution.
curl --request POST \
--url 'https://app.drykraft.com/api/automation/executions/00000000-0000-4000-8000-000000000001/retry' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/executions/{id}/recoverReplay a failed step or rerun a saved version
Access: Owner, admin or member · Success: 202
Supply a stable UUID id. Identical retries return the same target execution without another dispatch; changed source/mode/node/iteration conflicts. Retry continues a failed execution from its saved position without node_id; completed outputs are reused. Replay requires node_id and, inside a Loop or Split branch, its exact iteration_path to identify the current failed step/item of a failed execution; keeps completed outputs, context, version, input and HTTP idempotency key. Rerun requires a terminal execution and no node_id; creates a new execution at the original version trigger with original input, even after newer publication or pause. Child full reruns are rejected; start a new family from the parent. Child retry/replay reuses its existing binding; after child recovery, continue the failed parent. All selected-path side effects can repeat. Check uncertain provider outcomes first. Managed Outreach is rejected. Current write role and billing remain required even on receipt replay.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
id | uuid | Yes | |
mode | rerun | replay | retry | Yes | Recovery type; retry continues from the saved position |
node_id | string | No | Required for replay; prohibited for rerun/retry Max 100 characters. |
iteration_path | string | No | Only replay: exact saved canonical JSON item path from execution details; omit/empty for a step outside Loops/Splits Max 1024 characters. |
Response
Use Execution.
curl --request POST \
--url 'https://app.drykraft.com/api/automation/executions/00000000-0000-4000-8000-000000000001/recover' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"id": "00000000-0000-4000-8000-000000000001",
"mode": "rerun"
}'/api/automation/credentialsList outbound credentials
Access: Owner or admin · Success: 200
Only id, name, provider and created_at are returned; value remains private.
No request body is required.
Response
object[]. id, name, provider, created_at
curl --request GET \
--url 'https://app.drykraft.com/api/automation/credentials' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'/api/automation/credentialsSave outbound credential
Access: Owner or admin · Success: 201
Encrypted per workspace; header is required when provider=header.
JSON request
| Field | Type | Required | Details |
|---|---|---|---|
name | string | Yes | Name Max 100 characters. |
provider | bearer | basic | header | Yes | Outbound HTTP authorization, not DryKraft API authentication |
value | string | Yes | Private value Max 5000 characters. |
header | string | No | Pattern: ^[a-zA-Z0-9-]+$. |
Response
object. id, name, provider, created_at
curl --request POST \
--url 'https://app.drykraft.com/api/automation/credentials' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<Name>",
"provider": "bearer",
"value": "<Private value>"
}'/api/automation/credentials/{id}Delete outbound credential
Access: Owner or admin · Success: 200
Existing workflows using it will need another credential.
No request body is required.
Response
Use OK.
curl --request DELETE \
--url 'https://app.drykraft.com/api/automation/credentials/00000000-0000-4000-8000-000000000001' \
--cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
MCP