Browse documentation

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.

POST/api/automation/schedules/preview

Preview 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

FieldTypeRequiredDetails
modeinterval | cronNoDefaults interval
intervalMinutesintegerNoRequired in interval mode Min 1. Max 525600.
cronstringNoRequired in cron mode, five fields Max 120 characters.
timezonestringNoRequired in cron mode, IANA timezone Max 80 characters.

Response

FieldTypeRequiredDetails
next_runsdate-time[]Yes Min 5 items. Max 5 items.
timezonestringYesSelected timezone, or UTC for elapsed intervals
Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/automation/schedules/preview' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{}'
GET/api/automation/workflows

List general workflows

Access: Workspace member · Success: 200

Managed outreach workflows are excluded. Returns execution counts.

No request body is required.

Response

Workflow[].

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/automation/workflows' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
GET/api/automation/subworkflows

Find 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

ParameterTypeRequiredDetails
searchstringNoOptional literal case-insensitive name substring Max 100 characters.

No request body is required.

Response

object[].

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/automation/subworkflows' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
GET/api/automation/error-workflows

Find 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

ParameterTypeRequiredDetails
searchstringNoOptional literal case-insensitive name substring Max 100 characters.

No request body is required.

Response

object[].

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/automation/error-workflows' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/automation/workflows

Create workflow draft

Access: Owner, admin or member · Success: 201

Starts with a manual trigger.

JSON request

FieldTypeRequiredDetails
namestringYesName Max 100 characters.
descriptionstringNoDefault empty Max 1000 characters.

Response

Use Workflow.

Request shape (illustrative)
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>"
}'
PUT/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

FieldTypeRequiredDetails
namestringYesName Max 100 characters.
descriptionstringNoDefault empty Max 1000 characters.
draftGraphYes

Response

Use Workflow.

Request shape (illustrative)
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": []
  }
}'
POST/api/automation/workflows/{id}/publish

Publish 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

Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/publish' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/automation/workflows/{id}/status

Activate or pause workflow

Access: Owner or admin · Success: 200

Must already be published.

JSON request

FieldTypeRequiredDetails
statusactive | pausedYesWorkflow status

Response

Use Workflow.

Request shape (illustrative)
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"
}'
GET/api/automation/workflows/{id}/versions

Read published versions

Access: Workspace member · Success: 200

Latest version first.

No request body is required.

Response

object[]. id, workflow_id, version, graph, created_at

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/versions' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
GET/api/automation/workflows/{id}/webhook

Read 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

FieldTypeRequiredDetails
urlstring or nullNo
Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/webhook' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/automation/workflows/{id}/webhook

Create 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

FieldTypeRequiredDetails
urluriNo
Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/automation/workflows/00000000-0000-4000-8000-000000000001/webhook' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/automation/workflows/{id}/run

Run 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

FieldTypeRequiredDetails
inputobjectNoObject 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.

Request shape (illustrative)
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 '{}'
GET/api/automation/executions

List recent executions

Access: Workspace member · Success: 200

Latest 100, with workflow_name.

No request body is required.

Response

Execution[].

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/automation/executions' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
GET/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.

FieldTypeRequiredDetails
current_iteration_pathstringNoCanonical JSON array of [Loop or Split step ID, zero-based item/branch index] pairs; empty outside scoped paths Max 1024 characters.
workflow_namestringNoCurrent workflow name
versionintegerNoSaved published version number
managedbooleanNoRecovery must use Outreach controls
recoveriesobject[]No Max 50 items.
nodesobject[]No
Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/automation/executions/00000000-0000-4000-8000-000000000001' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/automation/executions/{id}/cancel

Cancel 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.

Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/automation/executions/00000000-0000-4000-8000-000000000001/cancel' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/automation/executions/{id}/retry

Retry 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.

Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/automation/executions/00000000-0000-4000-8000-000000000001/retry' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/automation/executions/{id}/recover

Replay 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

FieldTypeRequiredDetails
iduuidYes
modererun | replay | retryYesRecovery type; retry continues from the saved position
node_idstringNoRequired for replay; prohibited for rerun/retry Max 100 characters.
iteration_pathstringNoOnly replay: exact saved canonical JSON item path from execution details; omit/empty for a step outside Loops/Splits Max 1024 characters.

Response

Use Execution.

Request shape (illustrative)
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"
}'
GET/api/automation/credentials

List 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

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/automation/credentials' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/automation/credentials

Save outbound credential

Access: Owner or admin · Success: 201

Encrypted per workspace; header is required when provider=header.

JSON request

FieldTypeRequiredDetails
namestringYesName Max 100 characters.
providerbearer | basic | headerYesOutbound HTTP authorization, not DryKraft API authentication
valuestringYesPrivate value Max 5000 characters.
headerstringNo Pattern: ^[a-zA-Z0-9-]+$.

Response

object. id, name, provider, created_at

Request shape (illustrative)
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>"
}'
DELETE/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.

Request shape (illustrative)
curl --request DELETE \
  --url 'https://app.drykraft.com/api/automation/credentials/00000000-0000-4000-8000-000000000001' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'