Skip to main content

List

Retrieve a list of templates with pagination options using the default context.

Parameters

*ListOptions
Pagination options for the list request.

Returns

Returns a *ListTemplatesResponse containing the list of templates.

Example


ListWithContext

Retrieve a list of templates with custom context and pagination options.

Parameters

context.Context
required
Context for the request, useful for timeouts and cancellation.
*ListOptions
Pagination options for the list request.

Returns

Returns a *ListTemplatesResponse containing the list of templates.

Example


Types

ListTemplatesResponse

Response from listing templates.
string
The object type, always “list”.
[]*TemplateListItem
Array of template items.
bool
Indicates whether there are more templates available beyond the current page.

TemplateListItem

Represents a template in a list response.
string
The unique identifier of the template.
string
The name of the template.
string
The status of the template (e.g., “draft”, “published”).
*string
ISO 8601 timestamp of when the template was published. Null if not published.
string
ISO 8601 timestamp of when the template was created.
string
ISO 8601 timestamp of when the template was last updated.
string
The unique alias of the template.