List Templates
Changed onRetrieve a paginated list of templates in a workspace. Returns template metadata including name, slug, status, enabled channels, and per-channel variant counts.
Request
- Base URLhttps://management-api.suprsend.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Workspace slug (e.g., staging, production).
Query parameters
Return draft or live version of templates.
Number of results per page.
Offset for pagination.
Search by template name, slug or description.
Filter by template slugs, comma separated.
Response
Successfully retrieved list of templates
Example response
{
"meta": {
"count": 22,
"limit": 10
},
"results": [
{
"$schema": "https://schema.suprsend.com/template/v2/schema.json",
"name": "Order Confirmation Email",
"slug": "order-confirmation-email",
"enabled_channels": [
"email",
"inbox"
],
"status": "active"
}
]
}Changes
- breaking
for the
queryrequest parameterlimit, default value was changed from20to10 - breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response401 - warning
deleted the
queryrequest parameterq - info
added the new optional
queryrequest parametersearch - info
added the new optional
queryrequest parameterslugs
- breaking