Cakemail icon

Cakemail

Interact with Cakemail API

Template → Render

AI-generated

Summary

Render a specified template with optional merge data for personalized content.

Inputs

  • accountId — Optional: Specify an account ID for multi-tenant operations. If not provided, uses the authenticated account.
  • templateId (required) — ID of the template to be rendered.
  • additionalFields — Additional optional fields including merge data for template rendering.

Output shape

a rendered template as HTML content

The operation returns the rendered HTML of the specified template using provided merge variables.

Examples

Example 1: Rendering a template to personalize email content based on user data

Set templateId to the target template ID and provide optional mergeData for personalization.

Discussion