Skip to main content
TemplatesVersion: v3New

List templates

GET/emails/locations/{locationId}/templates

Get list of templates by location

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:emails/templates.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

locationIdstringrequired

Location ID

Example:ve9EPM428h8vShlRW1KT

Query Parameters

limitnumber

Number of templates to return

Possible values: >= 1 and <= 20

Default:10
Example:10
offsetnumber

Number of templates to skip

Possible values: >= 0

Default:0
Example:0
searchstring

Search by template name

Example:newsletter
sortBystring

Field to sort by

Available optionsupdatedAt
Example:updatedAt
sortOrderstring

Sort direction

Available optionsascdesc
Example:desc
archivedboolean

Return archived templates

Default:false
Example:false
folderIdstring

Folder to list templates from. Use 'root' for top-level listing.

Example:root
includestring

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 optionsalltemplatesfolders
Example:all

Response

Success

itemsobject[]required

List of template and folder resources

totalnumberrequired

Total count of templates and folders

Example:25
traceIdstring

Trace ID of the request

Example:019e4ef5-a65e-4198-8cf9-8e93dca9bda4