Required scopes: marketing_templates_read
Arguments
Forward pagination cursor — returns items after it. Pass an edges[].cursor or pageInfo.endCursor from a previous page.
Backward pagination cursor — returns items before it. Pass an edges[].cursor or pageInfo.startCursor from a previous page.
Forward pagination: returns the first N items (max 100, default 25). Use with after; mutually exclusive with last/before.
Backward pagination: returns the last N items (max 100, default 25). Use with before; mutually exclusive with first/after.
Which key to sort by (defaults to the first key, newest-first). Combine with reverse to flip direction.
Case-insensitive substring match on the template name. At most 200 characters.
Reverses the sort direction selected by orderBy (or its default).
Only include templates for this trigger.
Returns
A paginated list of SmsTemplate items.
The list of edges (each a node plus its pagination cursor).
Opaque cursor for this item; pass to after/before to page from here.
The item at this edge.
Whether links in the body are shortened at send time.
The SMS body as authored, before per-recipient substitution.
When the template was created.
Images sent with the message as MMS, in order. Dynamic product images and contact cards set in the editor are not listed.
The template’s legacy Mongo ObjectId (24-char hex) from before the CockroachDB migration.
The merchant-facing name of the template.
The trigger context this template is valid for. Immutable after create. UNKNOWN when the stored trigger is not modeled in this API version.
When the template was last edited.
The nodes in this page, without the edge/cursor wrapper — a convenience over edges.
Whether links in the body are shortened at send time.
The SMS body as authored, before per-recipient substitution.
When the template was created.
Images sent with the message as MMS, in order. Dynamic product images and contact cards set in the editor are not listed.
The template’s legacy Mongo ObjectId (24-char hex) from before the CockroachDB migration.
The merchant-facing name of the template.
The trigger context this template is valid for. Immutable after create. UNKNOWN when the stored trigger is not modeled in this API version.
When the template was last edited.
Pagination metadata for the current page.
Cursor of the last edge in this page; pass to after to page forward.
Whether more items exist after this page (drives forward pagination with first/after).
Whether more items exist before this page (drives backward pagination with last/before).
Cursor of the first edge in this page; pass to before to page backward.
Example