← API reference
Query / workflows · scripting

getTemplateByHandle

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

Arguments

handleString!

Template handle 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 handle. Requires template:read permission."""
getTemplateByHandle(
  """Template handle to fetch"""
  handle: String!
): TemplateState @topic(names: ["workflows", "scripting"])

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