latestSwagger 2.02026-08-10148196271.0 KB

afaab604b58c

templates

Get project templates

Get templates for a project. Use <code>page</code> and <code>pageSize</code> parameters to paginate results. If the unpaginated templates API is allowed for your project, then all templates are returned if no pagination parameters are provided. The unpaginated behavior is deprecated and may be removed in the future. <b>Rate limit</b>: 100 requests/second, per project.

get/api/templates

Query parameters

templateType'Base' | 'Blast' | 'Triggered' | 'Workflow'

Only retrieve templates associated with this template type

messageMedium'Email' | 'Push' | 'InApp' | 'SMS'

Only retrieve templates associated with this message medium

startDateTimestring date-time

Get templates created at or after this date time (yyyy-MM-dd HH:mm:ss [ZZ])

endDateTimestring date-time

Get templates created before this date time (yyyy-MM-dd HH:mm:ss [ZZ])

pageinteger

Page number (starting at 1).

pageSizeinteger

Number of results to return per page (defaults to 20, maximum of 1000).

sortstring

Field to sort templates by, with optional direction prefix. Use - for descending, + or no prefix for ascending. Templates can be sorted by id, name, createdAt, or updatedAt. Examples: -createdAt, +name, id

Response

successful operation