---
title: "Get Templates"
description: "How to call Get Templates (GET /api/templates) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-01-15/reference/get_templates"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_templates"
operationId: "get_templates"
method: "GET"
endpoint: "https://a.klaviyo.com/api/templates"
authentication: "privateKey"
scopes: ["templates:read"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"fields":{"template":["name","editor_type","html","text","amp","created","updated"]},"sort":["created","-created","id","-id","name","-name","updated","-updated"],"pagination":{"style":"cursor"}}
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/templates/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_template.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_template.md","https://developers.klaviyo.com/en/v2025-01-15/reference/update_template.md","https://developers.klaviyo.com/en/v2025-01-15/reference/delete_template.md","https://developers.klaviyo.com/en/v2025-01-15/reference/render_template.md","https://developers.klaviyo.com/en/v2025-01-15/reference/clone_template.md"]
---

# Get Templates

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/reference/get_templates

```http
GET https://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 10 results per page.

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `templates:read`
- Rate limits: Burst: `10/s`, Steady: `150/m`

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/templates' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2025-01-15'
```

## Query parameters

- `fields[template]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md) Allowed values: `name`, `editor_type`, `html`, `text`, `amp`, `created`, `updated`
- `filter` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md)\
  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` Example: `equals(id,['example'])`
- `page[cursor]` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md)
- `sort` (string): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md) Allowed values: `created`, `-created`, `id`, `-id`, `name`, `-name`, `updated`, `-updated`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2025-01-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object[], required)
  - `type` (string, required): Allowed values: `template`
  - `id` (string, required): The ID of template
  - `attributes` (object, required)
    - `name` (string, required): The name of the template
    - `editor_type` (string, required): `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` (string, required): The rendered HTML of the template
    - `text` (string, nullable): The template plain_text
    - `amp` (string, nullable): The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at [Send AMP emails in Klaviyo](https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo.md)
    - `created` (string<date-time>, nullable): The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
    - `updated` (string<date-time>, nullable): The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm) Example: `2022-11-08T00:00:00+00:00`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (object)
  - `self` (string<uri>, required)
  - `first` (string<uri>)
  - `last` (string<uri>)
  - `prev` (string<uri>)
  - `next` (string<uri>)

#### Example response body

```json
{
  "data": [
    {
      "type": "template",
      "id": "string",
      "attributes": {
        "name": "string",
        "editor_type": "string",
        "html": "string",
        "text": "string",
        "amp": "string",
        "created": "2022-11-08T00:00:00+00:00",
        "updated": "2022-11-08T00:00:00+00:00"
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ],
  "links": {
    "self": "https://www.example.com",
    "first": "https://www.example.com",
    "last": "https://www.example.com",
    "prev": "https://www.example.com",
    "next": "https://www.example.com"
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
