List templates for the dashboard

Returns a paginated dashboard view that groups related channel templates into families and leaves standalone templates ungrouped.

GET
/v1/templates/dashboard

Returns a paginated dashboard view that groups related channel templates into families and leaves standalone templates ungrouped. Each row carries series, the last 14 days of daily email sends rendered from the template, oldest first; a family's series is the sum over its members.

x-api-key<token>

In: header

Query Parameters

page?string|null
limit?string|null
allowedChannels*|array<>
category?|null
channel?|null
status?|null
search?string|null
sortBy?|null
sortOrder?|null

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/templates/dashboard?allowedChannels=email"
{  "items": [    {      "kind": "family",      "id": "string",      "name": "string",      "members": [        {          "id": "string",          "name": "string",          "slug": "string",          "channel": "email",          "description": "string",          "category": "transactional",          "status": "draft",          "usageCount": 0,          "lastUsedAt": "string",          "workspaceRevision": "string",          "previewFixture": "string",          "createdAt": "string",          "updatedAt": "string"        }      ],      "usageCount": 0,      "lastUsedAt": "string",      "series": [        0      ],      "createdAt": "string",      "updatedAt": "string"    }  ],  "pagination": {    "page": 0,    "limit": 0,    "total": 0,    "totalPages": 0  }}

Related