Skip to main content
Version: v3New

List templates

GET 

/emails/locations/:locationId/templates

Get list of templates by location

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location ID

limit number

Number of templates to return

Possible values: >= 1 and <= 20

Default value:10
offset number

Number of templates to skip

Possible values: >= 0

Default value:0
search string

Search by template name

sortBy string

Field to sort by

Available optionsupdatedAt
sortOrder string

Sort direction

Available optionsascdesc
archived boolean

Return archived templates

Default value:false
folderId 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 optionsalltemplatesfolders
application/json

Success

Schema
    itemsobject[]required

    List of template and folder resources

    totalnumberrequired

    Total count of templates and folders

    traceIdstring

    Trace ID of the request