Query / workflows · scripting
listTemplates
List templates with pagination and filtering. Requires template:list permission.
Arguments
firstIntNumber of items from the start
lastIntNumber of items from the end
afterStringCursor to start after
beforeStringCursor to start before
filterTemplateFilterInputFilter criteria
sort[TemplateSortInput!]Sort order
Returns TemplateConnection!
Explore in a view
View exact SDL
"""
List templates with pagination and filtering. Requires template:list permission.
"""
listTemplates(
"""Number of items from the start"""
first: Int
"""Number of items from the end"""
last: Int
"""Cursor to start after"""
after: String
"""Cursor to start before"""
before: String
"""Filter criteria"""
filter: TemplateFilterInput
"""Sort order"""
sort: [TemplateSortInput!]
): TemplateConnection! @topic(names: ["workflows", "scripting"])Schema reference describes the API contract. Actual access is checked by the platform for every operation.