API Docs / Operations / Content Blocks / Render Content Block

Render Content Block

POST /tenants/{tenant}/contentblocks/{code}/render

Renders a content block's body HTML with Liquid tokens resolved using the provided template variables. When includeEmailBranding is true, wraps the result with the tenant's email header, footer, and design theme. Returns the rendered HTML string.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

code* path string
{
  "data": {
    "title": "string",
    "subtitle": "string",
    "secondarySubtitle": "string",
    "postalAddress": "string",
    "addressee": "string"
  },
  "includeEmailBranding": false
}

Responses

200 OK
401 Unauthorized – Invalid or missing API key
404 Not Found