Skip to main content
This endpoint is deprecated and will be removed on June 1, 2026. Please migrate to the new List Email Templates endpoint.

Why This Is Deprecated

This endpoint has been replaced with a clearer, more consistent API structure.

Use the New Endpoint Instead

New endpoint: GET /api/templates/email View new endpoint documentation →

Migration

The new endpoint provides more information and better filtering:

Old Response (This Endpoint)

{
  "templates": [
    {
      "uid": "abc123",
      "name": "Order Confirmation"
    }
  ]
}
{
  "data": [
    {
      "id": "tmpl_abc123",
      "name": "Order Confirmation",
      "subject": "Your order is confirmed",
      "status": "active",
      "category": "transactional",
      "createdAt": "2025-10-01T10:00:00Z",
      "variables": ["orderNumber", "customerName"]
    }
  ]
}
Benefits of new endpoint:
  • ✅ More template metadata
  • ✅ Status and category information
  • ✅ List of template variables
  • ✅ Timestamps for auditing
  • ✅ Consistent naming (id instead of uid)

Migration Deadline

This endpoint will be removed on June 1, 2026. Read the full migration guide →

Need Help?