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. Content snapshots of code-managed transactional emails (created by sends with trackAs) are not listed and cannot be used as templateId. Results are newest first and paginated: 50 per page by default, up to 100. Page with offset while pagination.hasMore is true.

get/templates

Request

  • Base URL
    https://api.sequenzy.com/api/v1
  • URL
    https://api.sequenzy.com/api/v1/templates
  • Auth
    HTTP bearer

Query parameters

isTemplateboolean

Filter to reusable master designs (true) or everything else (false). Omit to list every body.

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

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • warning

      added the new undefined enum value to the // response property for the response status