Entity · newsletter_campaigns
Newsletter Campaign Schema
Fields
Newsletter Campaign Schema
Schema for newsletter email campaigns with A/B testing support
name
1–200 characters
description
nullable
status
Values
DRAFTSCHEDULEDSENDINGPAUSEDSENTCANCELLEDFAILEDDefault: "DRAFT"
templateId
nullable
listIds
min 1 items
excludeListIds
Default: []
subject
1–500 characters
htmlContent
min 1 characters
textContent
nullable
tiptapContent
nullable
fromName
max 200 charactersnullable
fromEmail
nullable
replyTo
nullable
emailAccountId
nullable
scheduledAt
nullable
sentAt
nullable
completedAt
nullable
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.
Default: false
abTest
nullable
enabled
Default: false
testType
Values
SUBJECTCONTENTFROM_NAMEvariantB
nullable
testPercentage
5 – 50Default: 20
winnerCriteria
Values
OPEN_RATECLICK_RATEDefault: "OPEN_RATE"
waitHours
1 – 72Default: 4
winner
Values
ABnullable
testStartedAt
nullable
winnerPickedAt
nullable
stats
nullable
totalRecipients
≥ 0Default: 0
sent
≥ 0Default: 0
delivered
≥ 0Default: 0
opened
≥ 0Default: 0
uniqueOpened
≥ 0Default: 0
clicked
≥ 0Default: 0
uniqueClicked
≥ 0Default: 0
bounced
≥ 0Default: 0
unsubscribed
≥ 0Default: 0
complained
≥ 0Default: 0
failed
≥ 0Default: 0
tags
nullable
No fields match the filter.
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/newsletter_campaigns— List, paginated + filterableGET /api/v1/newsletter_campaigns/<id>— Single entityPOST /api/v1/newsletter_campaigns— CreatePATCH /api/v1/newsletter_campaigns/<id>— Partial updateDELETE /api/v1/newsletter_campaigns/<id>— Soft deleteGET /api/v1/newsletter_campaigns/<id>/timeline— Audit + activities