All six operations use POST /public-api/publicapi.v1.ContentTemplate/. They
require the creator’s settings read access and exact API scopes. Operational
content-template access alone is insufficient; these are not the problem or
work-order template discovery contracts.
Email list/get require email_template:read, document list/get
document_template:read, and advanced-task definition list/get
advanced_task_definition:read. The last is distinct from advanced_task:read
for external task instances.
List method
Detail method
Kind
ListEmailTemplates
GetEmailTemplate
Versioned email templates
ListDocumentTemplates
GetDocumentTemplate
Versioned document templates
ListAdvancedTaskDefinitions
GetAdvancedTaskDefinition
Live, unversioned advanced-task definitions
Lists accept:
{ "query": "Inspection", "pageSize": 25 }
query is an optional trimmed, literal case-insensitive name substring, maximum
200 characters. There is no regex syntax. Page size defaults to 25, maximum
100. Results are ordered by stable ID. Continue with nextAfterId as afterId,
keeping the query unchanged; omit optional afterId rather than sending an empty
UUID. Detail takes {"id":"<template-or-definition-id>"}.
Lists return templates; detail returns template. Name is capped at 200
characters; description at 200 in lists and 2,000 in detail. Check
metadataTruncated. No email source, document layout/configuration, selectors,
filters, checklist bodies, or execution configuration is returned.
Email/document metadata includes versioned, hasDraft, optional
currentPublication, and hasUnpublishedChanges. The latter compares draft
source/configuration with the publication, not names/descriptions. Document
templates additionally have numbered draft revision metadata. No publication
means an unpublished draft, not a ready-to-send or ready-to-generate template.
Advanced-task definitions instead expose taskType and checklistItemCount;
they are not drafts and have no publication lifecycle. These endpoints do not
create definitions or execute tasks. Use the separate external task-instance
API for supported instance completion work.
Defaults to 25; at most 100. Results are ordered by stable ID.
after_id
optional string
query
string
Literal, case-insensitive name substring. Keep unchanged when paging.
ContentTemplateListResponse
Field
Type
templates
repeated ContentTemplate
next_after_id
optional string
Related Types
ContentTemplate
Field
Type
Description
id
string
kind
ContentTemplateKind
name
string
Name is bounded to 200 characters; description to 200 in lists, 2000 in detail.
description
string
metadata_truncated
bool
created_at
int64
updated_at
int64
versioned
bool
Email/document templates have editable drafts and optional publication. Advanced-task definitions are live, unversioned settings, not draft templates.
has_draft
bool
has_unpublished_changes
bool
Draft source/config differs from current publication, or nothing is published. Does not compare names/descriptions. Always false for unversioned definitions.
current_publication
ContentTemplatePublication
current_draft_revision_id
optional string
Only document templates have numbered draft revisions.
current_draft_revision_number
optional int32
task_type
string
Only advanced-task definitions: checklist, flow_event, workflow, external, permission, or customer_filter. No filters, selectors or execution config.
Name is bounded to 200 characters; description to 200 in lists, 2000 in detail.
description
string
metadata_truncated
bool
created_at
int64
updated_at
int64
versioned
bool
Email/document templates have editable drafts and optional publication. Advanced-task definitions are live, unversioned settings, not draft templates.
has_draft
bool
has_unpublished_changes
bool
Draft source/config differs from current publication, or nothing is published. Does not compare names/descriptions. Always false for unversioned definitions.
current_publication
ContentTemplatePublication
current_draft_revision_id
optional string
Only document templates have numbered draft revisions.
current_draft_revision_number
optional int32
task_type
string
Only advanced-task definitions: checklist, flow_event, workflow, external, permission, or customer_filter. No filters, selectors or execution config.
Defaults to 25; at most 100. Results are ordered by stable ID.
after_id
optional string
query
string
Literal, case-insensitive name substring. Keep unchanged when paging.
ContentTemplateListResponse
Field
Type
templates
repeated ContentTemplate
next_after_id
optional string
Related Types
ContentTemplate
Field
Type
Description
id
string
kind
ContentTemplateKind
name
string
Name is bounded to 200 characters; description to 200 in lists, 2000 in detail.
description
string
metadata_truncated
bool
created_at
int64
updated_at
int64
versioned
bool
Email/document templates have editable drafts and optional publication. Advanced-task definitions are live, unversioned settings, not draft templates.
has_draft
bool
has_unpublished_changes
bool
Draft source/config differs from current publication, or nothing is published. Does not compare names/descriptions. Always false for unversioned definitions.
current_publication
ContentTemplatePublication
current_draft_revision_id
optional string
Only document templates have numbered draft revisions.
current_draft_revision_number
optional int32
task_type
string
Only advanced-task definitions: checklist, flow_event, workflow, external, permission, or customer_filter. No filters, selectors or execution config.
Name is bounded to 200 characters; description to 200 in lists, 2000 in detail.
description
string
metadata_truncated
bool
created_at
int64
updated_at
int64
versioned
bool
Email/document templates have editable drafts and optional publication. Advanced-task definitions are live, unversioned settings, not draft templates.
has_draft
bool
has_unpublished_changes
bool
Draft source/config differs from current publication, or nothing is published. Does not compare names/descriptions. Always false for unversioned definitions.
current_publication
ContentTemplatePublication
current_draft_revision_id
optional string
Only document templates have numbered draft revisions.
current_draft_revision_number
optional int32
task_type
string
Only advanced-task definitions: checklist, flow_event, workflow, external, permission, or customer_filter. No filters, selectors or execution config.
Defaults to 25; at most 100. Results are ordered by stable ID.
after_id
optional string
query
string
Literal, case-insensitive name substring. Keep unchanged when paging.
ContentTemplateListResponse
Field
Type
templates
repeated ContentTemplate
next_after_id
optional string
Related Types
ContentTemplate
Field
Type
Description
id
string
kind
ContentTemplateKind
name
string
Name is bounded to 200 characters; description to 200 in lists, 2000 in detail.
description
string
metadata_truncated
bool
created_at
int64
updated_at
int64
versioned
bool
Email/document templates have editable drafts and optional publication. Advanced-task definitions are live, unversioned settings, not draft templates.
has_draft
bool
has_unpublished_changes
bool
Draft source/config differs from current publication, or nothing is published. Does not compare names/descriptions. Always false for unversioned definitions.
current_publication
ContentTemplatePublication
current_draft_revision_id
optional string
Only document templates have numbered draft revisions.
current_draft_revision_number
optional int32
task_type
string
Only advanced-task definitions: checklist, flow_event, workflow, external, permission, or customer_filter. No filters, selectors or execution config.
Name is bounded to 200 characters; description to 200 in lists, 2000 in detail.
description
string
metadata_truncated
bool
created_at
int64
updated_at
int64
versioned
bool
Email/document templates have editable drafts and optional publication. Advanced-task definitions are live, unversioned settings, not draft templates.
has_draft
bool
has_unpublished_changes
bool
Draft source/config differs from current publication, or nothing is published. Does not compare names/descriptions. Always false for unversioned definitions.
current_publication
ContentTemplatePublication
current_draft_revision_id
optional string
Only document templates have numbered draft revisions.
current_draft_revision_number
optional int32
task_type
string
Only advanced-task definitions: checklist, flow_event, workflow, external, permission, or customer_filter. No filters, selectors or execution config.