Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2023-01-24/reference/get_templates.md. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2023-01-24

You're reading the reference for API revision 2023-01-24. The latest revision is 2026-10-15. See this page in the latest revision.

Get Templates

GEThttps://a.klaviyo.com/api/templates/

Get all templates in an account. Filter to request a subset of all templates. Templates can be sorted by the following fields, in ascending and descending order: id, name, created, updated Returns a maximum of 20 results per page.

Revision header
revision: 2023-01-24required
Scopes
Templates Read
Rate limits
Burst: 10/sSteady: 150/m

Query parameters

  • fields[template]#string[]

    For more information please visit API overview

    Allowed values:
    • company_id
    • name
    • editor_type
    • html
    • text
    • created
    • updated
  • filter#string

    For more information please visit API overview
    Allowed field(s)/operator(s):
    id: any, equals
    name: any, equals
    created: equals, greater-or-equal, greater-than, less-or-equal, less-than
    updated: equals, greater-or-equal, greater-than, less-or-equal, less-than

  • page[cursor]#string

    For more information please visit API overview

  • sort#string

    For more information please visit API overview

    Allowed values:
    • created
    • -created
    • id
    • -id
    • name
    • -name
    • updated
    • -updated

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2023-01-24

Responses

200

Content type: application/json

  • data#object[]required
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • template
    • id#stringrequired

      The ID of template

    • attributes#objectrequired
      Show 7 fields
      • company_id#stringrequired

        The ID of the company the template belongs to

        Example: COMPANY_ID

      • name#stringrequired

        The name of the template

      • editor_type#stringrequired

        editor_type has a fixed set of values:

        • SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template
        • SIMPLE: A rich text editor template
        • CODE: A custom HTML template
        • USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor
      • html#stringrequired

        The rendered HTML of the template

      • text#string

        The template plain_text

      • created#string<date-time>

        The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

        Example: 2022-11-08T00:00:00

      • updated#string<date-time>

        The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

        Example: 2022-11-08T00:00:00

4XXClient Error

Content type: application/json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string