Get Templates
GET {{baseUrl}}/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.
Rate limits:
Burst: 10/s
Steady: 150/m
Scopes:
templates:read
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
fields[template] | string | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | |
filter | string | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>id : any , equals <br>name : any , equals <br>created : equals , greater-or-equal , greater-than , less-or-equal , less-than <br>updated : equals , greater-or-equal , greater-than , less-or-equal , less-than | |
page[cursor] | string | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination | |
sort | string | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
revision | string | (Required) API endpoint revision (format: YYYY-MM-DD[.suffix]) | |
Accept | string |
RESPONSES
status: OK
{"data":[{"type":"template","id":"\u003cstring\u003e","attributes":{"company_id":"\u003cstring\u003e","name":"\u003cstring\u003e","editor_type":"\u003cstring\u003e","html":"\u003cstring\u003e","text":"\u003cstring\u003e","created":"\u003cdateTime\u003e","updated":"\u003cdateTime\u003e"},"links":{"self":"\u003curi\u003e"}},{"type":"template","id":"\u003cstring\u003e","attributes":{"company_id":"\u003cstring\u003e","name":"\u003cstring\u003e","editor_type":"\u003cstring\u003e","html":"\u003cstring\u003e","text":"\u003cstring\u003e","created":"\u003cdateTime\u003e","updated":"\u003cdateTime\u003e"},"links":{"self":"\u003curi\u003e"}}],"links":{"self":"\u003curi\u003e","first":"\u003curi\u003e","last":"\u003curi\u003e","prev":"\u003curi\u003e","next":"\u003curi\u003e"}}