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

KeyDatatypeRequiredDescription
fields[template]stringFor more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sparse-fieldsets
filterstringFor more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#filtering&lt;br&gt;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]stringFor more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#pagination
sortstringFor more information please visit https://developers.klaviyo.com/en/v2022-10-17/reference/api-overview#sorting

HEADERS

KeyDatatypeRequiredDescription
revisionstring(Required) API endpoint revision (format: YYYY-MM-DD[.suffix])
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;type&quot;:&quot;template&quot;,&quot;id&quot;:&quot;dolor sunt&quot;,&quot;attributes&quot;:{&quot;company_id&quot;:&quot;occaecat incididunt nulla aliquip&quot;,&quot;name&quot;:&quot;laborum ullamco ad Excepteur&quot;,&quot;editor_type&quot;:&quot;ullam&quot;,&quot;html&quot;:&quot;Ut ullamco&quot;,&quot;text&quot;:&quot;velit sint&quot;,&quot;created&quot;:&quot;2021-01-23T22:20:14.489Z&quot;,&quot;updated&quot;:&quot;2000-02-24T16:52:54.046Z&quot;},&quot;links&quot;:{&quot;self&quot;:&quot;https://hTNGnVJSWWMkNgGcFDhphgV.vixnXDV30+TV.RBh7b3JHqVlh3dBFDLe-TkWkDkU0oNtP7lwI4Ts0&quot;}},{&quot;type&quot;:&quot;template&quot;,&quot;id&quot;:&quot;amet incididunt qui Excepteur dolore&quot;,&quot;attributes&quot;:{&quot;company_id&quot;:&quot;sed in Duis ex dolor&quot;,&quot;name&quot;:&quot;laborum enim irure&quot;,&quot;editor_type&quot;:&quot;consectetur non tempor&quot;,&quot;html&quot;:&quot;sunt in&quot;,&quot;text&quot;:&quot;dolor aliqua Lorem&quot;,&quot;created&quot;:&quot;2010-02-05T16:55:47.959Z&quot;,&quot;updated&quot;:&quot;1956-11-26T19:47:20.197Z&quot;},&quot;links&quot;:{&quot;self&quot;:&quot;http://lJqqEvhJnzwXGIExHVLwwaYEGMzBg.yfbJiHqqb6JZE5JqQ3Q&quot;}}],&quot;links&quot;:{&quot;self&quot;:&quot;http://nMaZLRlN.vjbg9cAc2AmtWmNKDUW,SLAos+Fl9nRA9PYrJpZzY0nc&quot;,&quot;first&quot;:&quot;https://sadxkkdmRamAWPwldszWn.yprJQr+1XGgmujMh--YVpmoYSRE4Ef.p0jb44uV&quot;,&quot;last&quot;:&quot;http://UZJBeouifAHqTsLamjURIxLnHLCB.tcv4gV0DBtD+Vt44Qxx-FUTSnWjin.pLpnrMbU4EM&quot;,&quot;prev&quot;:&quot;http://rlOIsmhV.xqlk9q-tkP5xtGivV+WojSC5e5FpARy7bBwkrn3wIUyz9wAYT3&quot;,&quot;next&quot;:&quot;http://x.nwcPfWnKbDQHn0emdUnvKRY0SfOPqRDEJVHDarce&quot;}}