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

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