Entité · campaign_email_templates
Campaign Email Template Schema
Champs
Campaign Email Template Schema
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.
name
1–200 caractères
description
max. 2000 caractèresnullable
subject
1–500 caractères
htmlContent
max. 200000 caractères
contentMode
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.
Valeurs
RICH_TEXTRAW_HTMLnullable
tiptapContent
nullable
fromEmail
max. 320 caractèresnullable
tags
Par défaut : []
isSystem
System-provided templates cannot be edited or deleted.
Par défaut : falselecture seule
Aucun champ ne correspond au filtre.
Endpoints standard
Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :
GET /api/v1/campaign_email_templates— Liste, paginée et filtrableGET /api/v1/campaign_email_templates/<id>— Une entitéPOST /api/v1/campaign_email_templates— CréerPATCH /api/v1/campaign_email_templates/<id>— Mise à jour partielleDELETE /api/v1/campaign_email_templates/<id>— Suppression logiqueGET /api/v1/campaign_email_templates/<id>/timeline— Audit et activités