Cakemail icon

Cakemail

Interact with Cakemail API

Campaign → Render

AI-generated

Summary

Render the specified email campaign to preview its content.

Inputs

  • accountId — Optional: Specify an account ID for multi-tenant operations. If not provided, uses the authenticated account.
  • campaignId (required) — The ID of the campaign to render.

Output shape

the rendered HTML content of the campaign

Returns the HTML preview of the campaign. If the campaign ID is invalid or the rendering fails, an error will be returned.

Examples

Example 1: A user wants to see a preview of their email campaign with ID 1234.

Set campaignId to 1234 to retrieve the rendered content.

Discussion