List templates
Lists saved email templates for the authenticated company, optionally filtered by label. Templates are the company's saved email bodies: standalone templates plus the bodies behind campaigns and transactional emails, so dashboard-designed emails appear here too. A campaign's emailId points at its entry in this list, and any template ID can be passed as templateId when creating a campaign. Bodies are kept when their campaign or transactional email is deleted. Results are newest first and paginated: 50 per page by default, up to 100. Page with offset while pagination.hasMore is true.
Query parameters
Optional label name filter. Only templates assigned this label are returned.
Templates per page. Values above 100 are clamped to 100.
Templates to skip before returning results.
Response
Templates returned
Example response
{
"success": true,
"templates": [
{
"id": "email_abc123",
"name": "[Template] Welcome",
"subject": "Welcome!",
"emailPreset": "branded",
"labels": [
"edm",
"template"
]
}
],
"pagination": {
"limit": 50,
"count": 50,
"total": 137,
"hasMore": true
}
}