← API reference
Query / workflows · scripting

getTemplate

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

Arguments

Template ID to fetch

Returns TemplateState

Scalar fields at a glance

handleString!
contentString!
descriptionString
currentVersionIdTemplateVersionID
↗ View the complete TemplateState type

Explore in a view

ScriptingWorkflow Authoring
View exact SDL
"""Fetch a template by ID. Requires template:read permission."""
getTemplate(
  """Template ID to fetch"""
  id: TemplateID!
): TemplateState @topic(names: ["workflows", "scripting"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.