Skip to content

Templates API

Clone a template

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

Copies a template into the library. Without a name the copy is called "<name> (copy)".

The request body can be up to 5 MB.

Rate limits

Burst: 75/s

Steady: 750/m

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

Scopes

templates:write

Operation id

clone_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

    • attributesobject

      attributes: 1 field
      • namestringcan be null

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