List templates
GET/emails/locations/:locationId/templates
Get list of templates by location
Request
Version stringrequired
API Version
Available options
v3locationId stringrequired
Location ID
limit number
Number of templates to return
Possible values: >= 1 and <= 20
Default value:
10offset number
Number of templates to skip
Possible values: >= 0
Default value:
0search string
Search by template name
sortBy string
Field to sort by
Available options
updatedAtsortOrder string
Sort direction
Available options
ascdescarchived boolean
Return archived templates
Default value:
falsefolderId string
Folder to list templates from. Use 'root' for top-level listing.
include string
Whether to include templates, folders, or both in the response. templates will return only templates, folders will return only folders, and all will return both.
Available options
alltemplatesfoldersSuccess
- application/json
- Schema
- Example (auto)
Schema
itemsobject[]required
List of template and folder resources
totalnumberrequired
Total count of templates and folders
traceIdstring
Trace ID of the request
{
"items": [
{
"id": "67f15c2ae99226d5bcccb8f3",
"name": "February Newsletter",
"type": "template"
}
],
"total": 25,
"traceId": "019e4ef5-a65e-4198-8cf9-8e93dca9bda4"
}