Skip to content

Templates API

Render a template

POSThttps://email.growthdept.ai/api/template-render

Renders the template's HTML, text and AMP with the given context. Drag-and-drop templates are compiled first.

The request body can be up to 5 MB.

Rate limits

Burst: 3/s

Steady: 60/m

Tier S. See rate limits for how requests are counted.

Scopes

templates:read

Operation id

render_template The same operation as in Klaviyo's API. OpenAPI document

Query parameters

array of strings

Attributes of template resources to return.

Sparse fieldsets guide

Pick values to add them to the request:

Body

Send application/vnd.api+json or application/json.

object

  • dataobjectrequired

    data: 3 fields
    • typestringrequired

      template
    • idstringrequired

    • attributesobjectrequired

      attributes: 1 field
      • contextobjectrequired

Edit the example. The code samples use what you type here.

Headers

stringrequireddefault 2026-10-15

API revision, YYYY-MM-DD. This server implements 2026-10-15.

Revisions guide

Responses

201Success

Response body

object

  • dataobjectrequired

    data: 4 fields
    • typestringrequired

      template
    • idstringrequired

    • attributesobjectrequired

      attributes: 8 fields
      • namestringrequired

      • editor_typestringrequired

      • htmlstringrequired

      • textstringcan be null

      • ampstringcan be null

      • createdstring (date-time)can be null

      • updatedstring (date-time)can be null

      • screenshot_urlstringcan be null

    • linksobjectrequired

      links: 1 field
      • selfstring (uri)required

  • linksobject

    links: 1 field
    • selfstring (uri)required

  • metaobject

4XXClient error

Response body

object

  • errorsarray of objectsrequired

    errors: 8 fields
    • idstringrequired

    • statusintegerrequired

    • codestringrequired

    • titlestringrequired

    • detailstringrequired

    • sourceobject

      source: 2 fields
      • pointerstring

      • parameterstring

    • linksobject

    • metaobject

See status codes for each code.

5XXServer error

Response body

object

  • errorsarray of objectsrequired

    errors: 8 fields
    • idstringrequired

    • statusintegerrequired

    • codestringrequired

    • titlestringrequired

    • detailstringrequired

    • sourceobject

      source: 2 fields
      • pointerstring

      • parameterstring

    • linksobject

    • metaobject