Email endpoints sit under
/api/brands/{brand}/emails/ with moduleAccess:emails middleware. Authenticate with EF-Access-Key.List Emails
Results per page (1–100, default: 25)
Search by name or subject
newest, oldest, created_at, updated_atcURL
List Emails (Unpaginated)
Returns all emails with rendered HTML included (CSS is merged inline).Get Email
Email numeric ID or
code slugCreate Email
Email template name (max 256). Defaults to
"Untitled Email" if empty after validation.Email subject line (max 512)
Preheader / preview text (max 512)
Sender display name (max 256)
Sender email address (max 256)
Reply-to address (max 256)
Link this email to a specific automation
cURL
Update Email
name is required.
Delete Email
Get Builder Config
Retrieve the visual email builder config. Add?html=1 to get the rendered HTML version.
If
1, returns rendered HTML output instead of builder configcURL — get builder config
Save Builder Config
Builder config as a JSON string (not a JSON object — must be
JSON.stringify’d before sending)Raw HTML content
CSS styles
Comments data for the email template
cURL
Get Automation Variables
Lists the merge-tag variables available for use in this email’s content, based on the automation it belongs to.Notes
- The
configfield in the builderPOSTmust be sent as a JSON string (double-encoded), not a JSON object - Saving the builder config automatically regenerates inline CSS and the
inlineversion of the email - Use numeric IDs in the URL for
PUT/PATCH—codestrings only work forGET,show, andDELETE - The
allendpoint merges CSS inline into the HTML for direct use in rendering/preview contexts