Email endpoints sit under
/api/brands/{brand}/emails/ with moduleAccess:emails middleware. Authenticate with EF-Access-Key.List Emails
cURL
List Emails (Unpaginated)
Returns all emails with rendered HTML included (CSS is merged inline).Get Email
Create Email
Email template name (max 256). Defaults to
"Untitled Email" if empty after validation.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.
cURL — get builder config
Save Builder Config
Builder config as a JSON string (not a JSON object — must be
JSON.stringify’d before sending)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