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
Request specific fields using sparse fieldsets.
Returns a maximum of 20 results per page. Results can be paginated with cursor-based pagination.
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/v2022-10-17/reference/api-overview#sparse-fieldsets | |
filter | string | For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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/v2022-10-17/reference/api-overview#pagination | |
sort | string | For more information please visit https://developers.klaviyo.com/en/v2022-10-17/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":"dolor sunt","attributes":{"company_id":"occaecat incididunt nulla aliquip","name":"laborum ullamco ad Excepteur","editor_type":"ullam","html":"Ut ullamco","text":"velit sint","created":"2021-01-23T22:20:14.489Z","updated":"2000-02-24T16:52:54.046Z"},"links":{"self":"https://hTNGnVJSWWMkNgGcFDhphgV.vixnXDV30+TV.RBh7b3JHqVlh3dBFDLe-TkWkDkU0oNtP7lwI4Ts0"}},{"type":"template","id":"amet incididunt qui Excepteur dolore","attributes":{"company_id":"sed in Duis ex dolor","name":"laborum enim irure","editor_type":"consectetur non tempor","html":"sunt in","text":"dolor aliqua Lorem","created":"2010-02-05T16:55:47.959Z","updated":"1956-11-26T19:47:20.197Z"},"links":{"self":"http://lJqqEvhJnzwXGIExHVLwwaYEGMzBg.yfbJiHqqb6JZE5JqQ3Q"}}],"links":{"self":"http://nMaZLRlN.vjbg9cAc2AmtWmNKDUW,SLAos+Fl9nRA9PYrJpZzY0nc","first":"https://sadxkkdmRamAWPwldszWn.yprJQr+1XGgmujMh--YVpmoYSRE4Ef.p0jb44uV","last":"http://UZJBeouifAHqTsLamjURIxLnHLCB.tcv4gV0DBtD+Vt44Qxx-FUTSnWjin.pLpnrMbU4EM","prev":"http://rlOIsmhV.xqlk9q-tkP5xtGivV+WojSC5e5FpARy7bBwkrn3wIUyz9wAYT3","next":"http://x.nwcPfWnKbDQHn0emdUnvKRY0SfOPqRDEJVHDarce"}}