← API reference
SCHEMA VIEW

Workflow Authoring

Workflow definitions, versions, triggers, executions and expression validation.

Open workbench ↗Download SDL ↓AI context →

76 operations · complete schema 165 KB

Query

magicQuery

Executes a Magic Query string and returns the predefined query's JSON result. On a bad noun or parameter, returns a structured error whose 'extensions' carry 'code', 'actionable_message', and 'suggestions' for self-correction.

→
Query

getMagicQuerySchema

Returns the input JSON Schema and output introspection for a Magic Query noun, so consumers (especially LLMs) can learn its contract before calling magicQuery.

→
Query

listMagicQueries

Lists every available Magic Query noun with a short description and its options — the discovery entry point.

→
Query

getMagicQueryGraphQL

Resolves a Magic Query string to the real GraphQL operation and variables it runs, so consumers can graduate from the façade to raw GraphQL. Does not execute.

→
Query

listDataChangeEventTopics

List all valid data change event topics, grouped by resource. Requires authentication.

→
Query

generateDefaultDataQuery

Generate a default GraphQL data query for an event topic. Returns a query string with all scalar fields for the resource, or null if the topic has no matching query. The query uses $id as the variable for the resource ID.

→
Query

ping

Health check endpoint

→
Query

analyzeWorkflowSource

Compile XML and analyze shared workflow contracts without executing operations; JSON analysis result

→
Query

getWorkflow

Fetch a single workflow by ID. Requires workflow:read permission.

→
Query

listWorkflows

List workflows with pagination. Requires workflow:list permission.

→
Query

getWorkflowVersionSource

Read authoritative workflow XML for IaC, including canonical exports of legacy versions

→
Query

getWorkflowVersion

Fetch a single workflow version by ID. Requires workflow:read permission.

→
Query

listWorkflowVersions

List workflow versions with pagination. Requires workflow:list permission.

→
Query

getWorkflowSchema

Get the JSON Schema for workflow definitions. Can be used with Zod or other validation libraries. Requires workflow:read permission.

→
Query

workflowTrigger

Get a workflow trigger by ID. Requires workflow:read permission.

→
Query

workflowTriggers

List all triggers for a workflow. Requires workflow:list permission.

→
Query

allWorkflowTriggers

List all triggers for the current tenant. Requires workflow:list permission.

→
Query

getExecution

Fetch a single workflow execution by ID. Requires workflow:read permission.

→
Query

listExecutions

List workflow executions with pagination. Requires workflow:list permission.

→
Query

getExecutionSteps

Fetch all steps for a workflow execution. Requires workflow:read permission.

→
Query

workflowExecutionRuntimeManagement

Inspect the exact workflow runner authority and audited recovery revision. Requires workflow:read permission.

→
Query

workflowRunStats

Aggregate a workflow's runs over a time window: totals by status, duration percentiles, time buckets and per-node outcomes. Requires workflow:list permission.

→
Query

workflowRunHealth

Run health of every workflow in the tenant that has a run since `since` or a run currently waiting: failures in the window, waiting runs and the latest run's status. Requires workflow:list permission.

→
Query

listExecutionLogs

List execution log entries for a given context, newest first

→
Query

queryProgressPoints

Query progress tracking points with time range and dimensional filters, keyset-paginated in descending timestamp order. Requires progressPoint:list permission.

→
Query

latestProgress

Get the most recent progress snapshot for an operation. Requires progressPoint:read permission.

→
Query

iacSchema

The infrastructure-only view of this schema, for declarative tooling. Contains only annotated resources and the types they reach.

→
Query

iacValidate

Validate an infrastructure artifact. Pure and side-effect free; safe to alias many times in one document.

→
Query

iacGuides

Every authoring guide, for a tool that syncs them to a folder. Intended for `schema pull` to call once and write to disk, not for an agent to call while authoring — a file can be grepped and re-read in part, where a response arrives whole.

→
Query

helpChapters

List human-facing manual chapters from the running deployment.

→
Query

helpChapter

Read a chapter of the current published manual edition.

→
Query

searchHelp

Search human-facing manuals using shared semantic and text retrieval.

→
Query

schemaAuthoringCatalog

Compiler-owned vocabulary for the standalone XML JSON Schema dialect, including native form annotations.

→
Query

compileSchemaXML

Compile standalone XML schema syntax into JSON Schema without persisting it; host restrictions apply when embedded.

→
Query

renderSchemaXML

Render JSON Schema as native XML without dropping unsupported keywords or changing a saved document.

→
Query

iacSchemaDocument

Fetch the JSON Schema document a SCHEMA-kind validator references, for declarative tooling.

→
Query

productionSnapshot

Read production resources with batched evidence. Also requires workCenter:read; cell, operation, progress and job permissions are checked independently.

→
Query

getTemplate

Fetch a template by ID. Requires template:read permission.

→
Query

getTemplateByHandle

Fetch a template by handle. Requires template:read permission.

→
Query

listTemplates

List templates with pagination and filtering. Requires template:list permission.

→
Query

getTemplateVersion

Fetch one template version by ID. Requires template:read permission.

→
Query

listTemplateVersions

List versions of a template with pagination. Requires template:read permission.

→
Mutation

createWorkflow

Create a new workflow. Requires workflow:write permission.

→
Mutation

updateWorkflow

Update an existing workflow. Requires workflow:write permission.

→
Mutation

deleteWorkflow

Delete a workflow and all its versions. Requires workflow:delete permission.

→
Mutation

deleteWorkflowVersion

Delete one version from a workflow's authoring history. Fails when the workflow is active and this is the version it runs — deactivate it or activate another version first. Requires workflow:delete permission.

→
Mutation

deleteWorkflowVersionIfExists

Idempotent workflow version cleanup; retains the active-version protection

→
Mutation

createWorkflowVersionFromSource

Create an immutable workflow version from XML; validation is shared with all authoring paths. Does not activate it.

→
Mutation

createWorkflowVersion

Create a new version of a workflow. Requires workflow:write permission.

→
Mutation

setActiveVersion

Set the active version of a workflow. Requires workflow:write permission.

→
Mutation

exportWorkflow

Export a workflow version to YAML or JSON. Requires workflow:read permission.

→
Mutation

importWorkflow

Import a workflow from YAML or JSON, creating a new version. Requires workflow:write permission.

→
Mutation

validateWorkflow

Validate a workflow definition without importing it. Requires workflow:read permission.

→
Mutation

createWorkflowTrigger

Create a new workflow trigger

→
Mutation

updateWorkflowTrigger

Update an existing workflow trigger

→
Mutation

deleteWorkflowTrigger

Delete a workflow trigger

→
Mutation

enableWorkflowTrigger

Enable a workflow trigger

→
Mutation

disableWorkflowTrigger

Disable a workflow trigger

→
Mutation

executeWorkflow

Start a new workflow execution. Requires workflow:execute permission.

→
Mutation

cancelExecution

Cancel a running workflow execution. Requires workflow:execute permission.

→
Mutation

resumeWorkflowExecution

Resume a workflow execution that is waiting for an external signal. Requires workflow:execute permission.

→
Mutation

reconcileWorkflowExecutionRuntime

Record authenticated, audited evidence that the exact predecessor process has terminated before workflow recovery. Requires workflow:reconcileRuntime permission.

→
Mutation

resolveNodeOutputSchema

Resolve the best-effort JSON Schema for a node's output given its config — SwiftLua-inferred for script-backed kinds, falling back to the kind's static declared schema. Requires workflow:read permission.

→
Mutation

validateJinja

Statically validate a workflow expression (parse + filter-name check) without evaluating it. Safe to call from editors on every keystroke.

→
Mutation

recordProgressPoints

Record one or more progress tracking data points. Up to 10,000 points per request. Requires progressPoint:write permission.

→
Mutation

upsertTemplate

Create or update a template. Requires template:write permission.

→
Mutation

createTemplate

Create a new template. Requires template:write permission.

→
Mutation

updateTemplate

Update a template. Only provided fields are changed. Requires template:write permission.

→
Mutation

deleteTemplate

Delete a template and all its versions. Requires template:delete permission.

→
Mutation

validateTemplate

Validate template syntax without saving. Requires template:read permission.

→
Mutation

publishTemplateVersion

Publish current template content as a new version. Requires template:write permission.

→
Mutation

deleteTemplateVersion

Delete one version from a template's history. Fails when the version is the one the template is currently published at. Requires template:write permission.

→
Mutation

restoreTemplateVersion

Restore template content from a previous version. Requires template:write permission.

→
Mutation

renderTemplate

Render a template with context data. Requires template:execute permission.

→
Subscription

dataChangeEvents

Subscribe to real-time data change events. Requires read permission on each requested resource.

→
Subscription

executionLogStream

Stream execution log entries as they are written for a given context. Requires integrationInstance:read.

→