16ad4f8e3d97

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-10244143882.9 KB
Templates

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.

get/templates

Query parameters

labelstring

Optional label name filter. Only templates assigned this label are returned.

limitinteger

Templates per page. Values above 100 are clamped to 100.

offsetinteger

Templates to skip before returning results.

Response

Templates returned

successboolean
companyIdstring
emailLocalizationConfigobject

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
  }
}