Templates

email_render_template

Compile + render a template version with example (or given) props.

write email_render_template

Compile + render a template version with example (or given) props. THE authoring inner loop — returns html/text/subject and a 15-minute previewUrl on success (anyone with the link can view it). Open previewUrl in the client browser panel when available. Returns verbatim compile/render errors on failure. Saves a temporary HTML snapshot and creates a new bearer link on each call. Nothing is sent.

Parameters

ParameterTypeRequiredDescription
slugstringYes
versionintegerNo
propsobjectNo
projectIdstringNoTarget company (project id) — required on project-scoped tools. Call email_list_projects to enumerate companies.

On this page