Actions17
Template → Get Many
AI-generatedOverview
This node interacts with the Klaviyo API to retrieve multiple Template resources. It supports pagination through a page cursor, sorting by various template attributes (such as creation date, ID, name, and update date), and filtering based on template fields or dates. Users can specify which template fields to return, enabling tailored data retrieval. This node is useful for scenarios where you need to list or search through multiple email or message templates stored in Klaviyo, such as for reporting, synchronization, or automation workflows.
Use Case Examples
- Retrieve all templates sorted by newest creation date to display in a dashboard.
- Fetch templates filtered by name or creation date to automate marketing campaigns.
- Paginate through templates using the page cursor to process large sets of templates in batches.
Properties
| Name | Meaning |
|---|---|
| Page Cursor | Used for pagination to specify the cursor for the page of results to retrieve. |
| Sort | Determines the order in which templates are returned, such as by creation date, ID, name, or update date, in ascending or descending order. |
| Filters | Allows filtering templates by specific fields (id, name) or by date fields (created, updated) with operators like equals, greater-than, less-than, etc. |
| Template Fields | Specifies which fields of the template to include in the response, such as name, editor type, HTML content, text content, AMP content, creation date, and update date. |
| Request Options | Additional request settings such as batching, SSL certificate validation, proxy configuration, and request timeout. |
Output
JSON
templates- Array of template objects retrieved from Klaviyo, each containing the requested fields such as name, editor type, HTML, text, AMP, created, and updated dates.pagination- Pagination information including the page cursor for fetching subsequent pages of templates.
Dependencies
- Klaviyo API key credential
Troubleshooting
- Ensure the API key credential is correctly configured and has permissions to access template data.
- Check that the page cursor value is valid when paginating; an invalid cursor may result in errors or empty results.
- Verify that filter values and date formats conform to expected API requirements to avoid request failures.
- If SSL issues occur, consider enabling the option to ignore SSL certificate validation, but be aware of security risks.
- Timeouts may occur if the server is slow to respond; adjust the timeout setting accordingly.