Entidad · newsletter_campaigns
Newsletter Campaign Schema
Campos
Newsletter Campaign Schema
Schema for newsletter email campaigns with A/B testing support
name
1–200 caracteres
description
admite null
status
Valores
DRAFTSCHEDULEDSENDINGPAUSEDSENTCANCELLEDFAILEDValor por defecto: "DRAFT"
templateId
admite null
listIds
mín. 1 elementos
excludeListIds
Valor por defecto: []
subject
1–500 caracteres
htmlContent
mín. 1 caracteres
textContent
admite null
tiptapContent
admite null
fromName
máx. 200 caracteresadmite null
fromEmail
admite null
replyTo
admite null
emailAccountId
admite null
scheduledAt
admite null
sentAt
admite null
completedAt
admite null
trackingEnabled
Open pixel and click-redirect links are only added when this is literally true (consent under § 25 Abs. 1 TDDDG). Missing/false: no pixel, links unchanged, no open/click stats. Without it the automatic A/B winner pick (open/click rate) falls back to variant A.
Valor por defecto: false
abTest
admite null
enabled
Valor por defecto: false
testType
Valores
SUBJECTCONTENTFROM_NAMEvariantB
admite null
testPercentage
5 – 50Valor por defecto: 20
winnerCriteria
Valores
OPEN_RATECLICK_RATEValor por defecto: "OPEN_RATE"
waitHours
1 – 72Valor por defecto: 4
winner
Valores
ABadmite null
testStartedAt
admite null
winnerPickedAt
admite null
stats
admite null
totalRecipients
≥ 0Valor por defecto: 0
sent
≥ 0Valor por defecto: 0
delivered
≥ 0Valor por defecto: 0
opened
≥ 0Valor por defecto: 0
uniqueOpened
≥ 0Valor por defecto: 0
clicked
≥ 0Valor por defecto: 0
uniqueClicked
≥ 0Valor por defecto: 0
bounced
≥ 0Valor por defecto: 0
unsubscribed
≥ 0Valor por defecto: 0
complained
≥ 0Valor por defecto: 0
failed
≥ 0Valor por defecto: 0
tags
admite null
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/newsletter_campaigns— Lista, paginada y filtrableGET /api/v1/newsletter_campaigns/<id>— Una entidadPOST /api/v1/newsletter_campaigns— CrearPATCH /api/v1/newsletter_campaigns/<id>— Actualización parcialDELETE /api/v1/newsletter_campaigns/<id>— Eliminación lógicaGET /api/v1/newsletter_campaigns/<id>/timeline— Auditoría y actividades