API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · campaign_email_templates

Campaign Email Template Schema

Schema ID
campaign_email_template
Collection
campaign_email_templates
Permissions
  • Readcampaign_email_template_view
  • Createcampaign_email_template_manage
  • Editcampaign_email_template_manage
  • Deletecampaign_email_template_manage

Fields

Campaign Email Template Schema

campaign_email_templates4 permissions

Reusable email content template for SEND_EMAIL / SEND_EMAIL_SEQUENCE campaign actions. Stores subject, HTML body and optional Tiptap JSON for round-tripping into the rich-text editor.

namestringrequired
1–200 characters
descriptionstringoptional
max 2000 charactersnullable
subjectstringrequired
1–500 characters
htmlContentstringrequired
max 200000 characters
contentModestringoptional

How the body is edited/rendered: RICH_TEXT round-trips through the Tiptap editor, RAW_HTML stores pasted markup verbatim (external email templates). Absent on legacy templates — consumers fall back to sniffing the markup.

RICH_TEXTRAW_HTML
nullable
tiptapContentobjectoptional
nullable
fromEmailstringoptional
max 320 charactersnullable
tagsstring[]optional
Default: []
isSystembooleanoptional

System-provided templates cannot be edited or deleted.

Default: falseread-only

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/campaign_email_templates — List, paginated + filterable
  • GET /api/v1/campaign_email_templates/<id> — Single entity
  • POST /api/v1/campaign_email_templates — Create
  • PATCH /api/v1/campaign_email_templates/<id> — Partial update
  • DELETE /api/v1/campaign_email_templates/<id> — Soft delete
  • GET /api/v1/campaign_email_templates/<id>/timeline — Audit + activities

Search