Cakemail icon

Cakemail

Interact with Cakemail API

Email → Render

AI-generated

Summary

Render a submitted email to preview its content and layout.

Inputs

  • accountId — Optional: Specify an account ID for multi-tenant operations. If not provided, uses the authenticated account.
  • emailId (required) — The ID of the submitted email.
  • renderOptions — Options for rendering the email, including:
  • As Submitted: Render the original submitted content (boolean).
  • Tracking: Enable tracking in the rendered email (boolean).

Output shape

a rendered HTML version of the submitted email

Returned data includes the rendered HTML content of the email.

Examples

Example 1: Previewing an email before sending it to recipients.

Set the required emailId to the submitted email ID and adjust renderOptions to control tracking settings.

Discussion