Skip to main content
GET
List templates

Authorizations

Authorization
string
header
required

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

Query Parameters

limit
integer
default:10

Number of templates per page, 1 to 50. Ignored when search is set.

Required range: 1 <= x <= 50
Example:

10

starting_after
string

Cursor for the next page: pass next_starting_after from the previous response.

Example:

"01956fbd-0eb1-72db-a565-82977a586084"

sort_order
enum<string>
default:desc

Sort order: "asc" (oldest first), "desc" (newest first). Ignored when search is set.

Available options:
asc,
desc
Example:

"desc"

Search templates by name prefix, ignoring case. A search returns one page of up to 50 matches with no cursor, and ignores limit, sort_order, starting_after and category.

Example:

"welcome"

category
enum<string>

Only list templates in this category.

Available options:
my-templates
Example:

"my-templates"

Response

One page of templates

items
Template · object[]
required

The list of Template

next_starting_after
null | string

The filter for getting the next items after this one, this could either be a UUID, a timestamp, on an email depending on the specific API