← API reference
SCHEMA VIEW

Journeys and Workspaces

Journey and workspace definitions and their versions.

Open workbench ↗Download SDL ↓AI context →

56 operations · complete schema 106 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

analyzeJourneySource

Compile Journey XML without saving or executing steps.

→
Query

getJourney

Fetch a single journey by ID, if the caller may see it.

→
Query

getJourneyByHandle

Fetch a journey by its stable handle (deep links / anchored launches), if the caller may see it.

→
Query

listJourneys

List the caller's visible journey library (own personal + their teams' + instance).

→
Query

getJourneyVersion

Fetch one journey version by ID. Returns null when the journey is not visible to the caller, and when the version is still an open draft and the caller is not its author — matching what `listJourneyVersions` would show.

→
Query

listJourneyVersions

List all versions of a journey, newest first (authoring history), if the caller may see it.

→
Query

analyzeWorkspaceSource

Analyze Workspace XML and Lua without saving, executing handlers or querying business data. Requires Workspace authoring permission.

→
Query

getWorkspace

Fetch a single workspace by ID, if the caller may see it.

→
Query

getWorkspaceByHandle

Fetch a workspace by its stable handle (deep links / anchored launches), if the caller may see it.

→
Query

listWorkspaces

List the caller's visible workspace library (own personal + their teams' + instance).

→
Query

getWorkspaceSource

Author-only XML/Lua source envelope for one Workspace version. Compiler artifacts remain internal.

→
Query

loadWorkspaceData

Runs a declared read-only Lua loader on the current published Workspace version; returns JSON.

→
Query

getWorkspaceVersion

Fetch one workspace version by ID. Returns null when the workspace is not visible to the caller, and when the version is still an open draft and the caller is not its author — matching what `listWorkspaceVersions` would show.

→
Query

listWorkspaceVersions

List all versions of a workspace, newest first (authoring history), if the caller may see it.

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

→
Mutation

deleteJourneyVersionIfExists

Delete a journey version using native authorization, succeeding when it is already absent for parent-owned cascade cleanup.

→
Mutation

createJourneyFromSource

Compile authoritative Journey XML and create a journey using native scope-dependent authorization.

→
Mutation

updateJourneyFromSource

Apply a revision-checked Journey XML or visibility edit while preserving fields omitted by the caller.

→
Mutation

createJourneyVersionFromSource

Compile Journey XML into a new draft version under an existing journey, preserving prior versions.

→
Mutation

upsertJourney

Create a journey or overwrite its open draft. PERSONAL is self-service; TEAM/INSTANCE require journey:write.

→
Mutation

createJourney

Create a new journey. PERSONAL is self-service; TEAM/INSTANCE require journey:write.

→
Mutation

updateJourney

Patch an existing journey — only provided fields are changed. Owner for PERSONAL, else journey:write.

→
Mutation

publishJourney

Promote a named draft version of a journey to the live published version. Other open drafts are left untouched. Owner for PERSONAL, else journey:write.

→
Mutation

createJourneyVersion

Create a new draft version of a journey. Always mints a new version rather than amending an open draft, so several drafts may be open at once. Owner for PERSONAL, else journey:write.

→
Mutation

deleteJourneyVersion

Delete one version from a journey's authoring history. Fails when the version is the one the journey is currently published at — delete the journey itself to remove that. Owner for PERSONAL, else journey:write.

→
Mutation

deleteJourney

Delete a journey and all its versions. Owner for PERSONAL, else journey:write.

→
Mutation

upsertWorkspace

Create a workspace or overwrite its open draft. PERSONAL is self-service; TEAM/INSTANCE require workspace:write.

→
Mutation

createWorkspace

Create a new workspace. PERSONAL is self-service; TEAM/INSTANCE require workspace:write.

→
Mutation

updateWorkspaceSource

Revision-checked Workspace authoring update using native authorization and validation.

→
Mutation

updateWorkspace

Update a workspace. Only provided fields are changed. Owner for PERSONAL, else workspace:write.

→
Mutation

invokeWorkspaceAction

Runs a declared Lua action as the caller on the current published Workspace version; returns JSON.

→
Mutation

publishWorkspace

Promote a named draft version of a workspace to the live published version. Other open drafts are left untouched. Owner for PERSONAL, else workspace:write.

→
Mutation

createWorkspaceVersionSnapshot

Create an immutable source snapshot for reviewed publication. Parent edits create another draft instead of changing this version. Uses native Workspace authorization and validation.

→
Mutation

createWorkspaceVersion

Create a new draft version of a workspace. Always mints a new version rather than amending an open draft, so several drafts may be open at once. Owner for PERSONAL, else workspace:write.

→
Mutation

deleteWorkspaceVersionIfExists

Idempotent cleanup retaining native scope authorization and published-version protection

→
Mutation

deleteWorkspaceVersion

Delete one version from a workspace's authoring history. Fails when the version is the one the workspace is currently published at — delete the workspace itself to remove that. Owner for PERSONAL, else workspace:write.

→
Mutation

deleteWorkspace

Delete a workspace and all its versions. Owner for PERSONAL, else workspace:write.

→
Mutation

validateJourneyDefinition

Validate a journey definition through the full two-tier pipeline (Tier-1 SurfaceKit + Tier-2 live-schema GraphQL) WITHOUT persisting it. Returns the full diagnostic list. Requires journey:write. Returns success:false with an explanatory diagnostic when the live schema is unavailable — unlike write mutations, this mutation never silently skips Tier-2.

→
Mutation

validateWorkspaceDefinition

Validate a workspace definition through the full two-tier pipeline (Tier-1 SurfaceKit + Tier-2 live-schema GraphQL) WITHOUT persisting it. Returns the full diagnostic list. Requires workspace:write. Returns success:false with an explanatory diagnostic when the live schema is unavailable — unlike write mutations, this mutation never silently skips Tier-2.

→
Subscription

dataChangeEvents

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

→