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 20 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-01-24/reference/api-overview#sparse-fieldsets | |
filter | string | For more information please visit https://developers.klaviyo.com/en/v2023-01-24/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-01-24/reference/api-overview#pagination | |
sort | string | For more information please visit https://developers.klaviyo.com/en/v2023-01-24/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":"exercitation Excepteur","attributes":{"company_id":"COMPANY_ID","name":"nulla ex tem","editor_type":"in commodo e","html":"ullamco fugiat exercitation repr","text":"qui nulla enim sint fu","created":"2022-11-08T00:00:00","updated":"2022-11-08T00:00:00"},"links":{"self":"http://avpzNEbwKBUffxhnORToQWMrytajhI.uspAUjN2l"}},{"type":"template","id":"enim","attributes":{"company_id":"COMPANY_ID","name":"ipsum labore adipisicing","editor_type":"laborum ullamco","html":"veniam sed","text":"consectetur laboris","created":"2022-11-08T00:00:00","updated":"2022-11-08T00:00:00"},"links":{"self":"http://jzWaXxsCOPmdPcLvdHBHjwmI.skbnbMGu8gZ.T"}}],"links":{"self":"https://yURyEvgjnViQhPpGGRUr.ngvXqfqPY8jZPTWtXMVwCCiGjWQ2DEG0Gy5sBuITCzf9ubT","first":"http://FuhDwYnxztPwXVdsiwWeo.bovG3VO8WXBLHD","last":"https://ZXNaWhnfxlmjEUMxXFZiNvuib.dhkniAZRQQLOcLGI2GUAT356KJu1M-qkbF3g1sdJV","prev":"https://oJODQZjpJDksTFVCjOcUJqgJQD.wrwXCIxDY8uYxHaM.","next":"http://uwRwqOCJiRluxblgTUcwKPBdzmFV.dduhVx+UX5JDt0g1WU8ZKYWD78jbvRW+Ost+oCxWMKWKoABZqtBOPH5uv"}}