← API reference
Query / workflows · scripting

listTemplateVersions

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

Arguments

templateIdTemplateID!

Template ID to list versions for

firstInt

Number of items from the start

afterString

Cursor to start after

Returns TemplateVersionConnection!

Scalar fields at a glance

totalCountInt
↗ View the complete TemplateVersionConnection type

Explore in a view

ScriptingWorkflow Authoring
View exact SDL
"""
List versions of a template with pagination. Requires template:read permission.
"""
listTemplateVersions(
  """Template ID to list versions for"""
  templateId: TemplateID!
  """Number of items from the start"""
  first: Int
  """Cursor to start after"""
  after: String
): TemplateVersionConnection! @topic(names: ["workflows", "scripting"])

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