Skip to main content
Required scopes: marketing_templates_read Store must have one of: EMAIL_SMS, HSA, ORDER_TRACKING, RETURNS, TNPL, REVIEWS

Arguments

String
Forward pagination cursor — returns saved templates after it.
String
Backward pagination cursor — returns saved templates before it.
Which saved templates to include.
Int
Forward pagination: returns the first N saved templates (max 100, default 25). Use with after; mutually exclusive with last/before.
Int
Backward pagination: returns the last N saved templates (max 100, default 25). Use with before; mutually exclusive with first/after.
Boolean
Flips the order: weakest match, or oldest, first.
Defaults to RELEVANCE with text, CREATED_AT without. Relevance order can shift as saved templates change; use a date sort to page through every match stably.
String
Text to search for in the template name and subject, at most 200 characters. Omit to page through the filter’s matches.

Returns

A paginated list of SavedEmailTemplate items.

Example