Skip to main content

E-mail layouts

The HTML frame (header, footer, branding) wrapped around the text of the rule's e-mails. The html_body must contain the {{content}} placeholder, where the message goes.

CommandHTTPDescription
email-layouts listGET /v1/email-layoutsList email layouts
email-layouts createPOST /v1/email-layoutsCreate email layout

Examples​

--params carries query, path and header parameters (id, page, filters, X-Workspace-Id); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.

# List layouts
kobana dunning email-layouts list

# Create a default layout
kobana dunning email-layouts create \
--json '{"name": "Layout institucional", "html_body": "<html><body><header>ACME</header>{{content}}</body></html>", "is_default": true}'

Next steps​