List
AI-generatedOverview
This node manages email templates in the Braze platform. It allows users to create new email templates, retrieve detailed information about existing templates, list all templates with filtering and pagination options, and update existing templates.
Common scenarios where this node is beneficial include:
- Automating the creation of marketing or transactional email templates.
- Fetching template details for auditing or synchronization purposes.
- Listing templates to display or process them in bulk, optionally filtered by modification date.
- Updating templates programmatically as part of a content management workflow.
For example, a marketing automation workflow could use this node to list all email templates modified after a certain date, then update some templates based on new branding guidelines.
Properties
| Name | Meaning |
|---|---|
| Modified After | Only return templates modified after this timestamp (ISO 8601 format) |
| Modified Before | Only return templates modified before this timestamp (ISO 8601 format) |
| Limit | Max number of results to return |
| Offset | Number of templates to skip for pagination |
These properties are used when performing the List operation to filter and paginate the returned email templates.
Output
The node outputs an array of JSON objects, each representing an email template or the result of the requested operation. The structure depends on the operation:
- List: Returns a JSON array of email templates matching the filters, including metadata such as template ID, name, subject, body, tags, and timestamps.
- Create: Returns the created email template's details.
- Get Info: Returns detailed information about a specific email template.
- Update: Returns the updated email template's details.
If an error occurs during execution, the output JSON includes an error field describing the issue, along with HTTP status code and Braze-specific error codes if available.
The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with the Braze API.
- Needs the Braze instance endpoint URL configured via credentials.
- Uses HTTP requests to communicate with Braze's REST API endpoints for email template management.
Troubleshooting
Common issues:
- Invalid or missing API key credential will cause authentication failures.
- Providing invalid template IDs for info or update operations will result in errors.
- Incorrect date formats for filtering may lead to no results or API errors.
- Exceeding rate limits imposed by Braze API can cause request failures.
Error messages:
- Errors from Braze API are captured and returned with descriptive messages.
- HTTP errors include status codes and Braze error codes to help diagnose issues.
- To resolve errors, verify API credentials, ensure correct input parameters, and check Braze API status.