API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · newsletter_campaigns

Newsletter Campaign Schema

Schema-ID
newsletter_campaign
Collection
newsletter_campaigns
Permissions
  • Lezennewsletter_campaign_view
  • Aanmakennewsletter_campaign_create
  • Wijzigennewsletter_campaign_edit
  • Verwijderennewsletter_campaign_delete

Velden

Newsletter Campaign Schema

newsletter_campaigns4 permissions

Schema for newsletter email campaigns with A/B testing support

namestringvereist
1–200 tekens
descriptionstringoptioneel
nullable
statusstringvereist
DRAFTSCHEDULEDSENDINGPAUSEDSENTCANCELLEDFAILED
Default: "DRAFT"
templateIduuidoptioneel
nullable
listIdsuuid[]vereist
min. 1 items
excludeListIdsuuid[]optioneel
Default: []
subjectstringvereist
1–500 tekens
htmlContentstringvereist
min. 1 tekens
textContentstringoptioneel
nullable
tiptapContentobjectoptioneel
nullable
fromNamestringoptioneel
max. 200 tekensnullable
fromEmailemailoptioneel
nullable
replyToemailoptioneel
nullable
emailAccountIduuidoptioneel
nullable
scheduledAtdatetimeoptioneel
nullable
sentAtdatetimeoptioneel
nullable
completedAtdatetimeoptioneel
nullable
trackingEnabledbooleanoptioneel

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
abTestobjectoptioneel
nullable
enabledbooleanoptioneel
Default: false
testTypestringoptioneel
SUBJECTCONTENTFROM_NAME
variantBobjectoptioneel
nullable
subjectstringoptioneel
max. 500 tekensnullable
htmlContentstringoptioneel
nullable
fromNamestringoptioneel
max. 200 tekensnullable
testPercentageintegeroptioneel
5 – 50Default: 20
winnerCriteriastringoptioneel
OPEN_RATECLICK_RATE
Default: "OPEN_RATE"
waitHoursintegeroptioneel
1 – 72Default: 4
winnerstringoptioneel
AB
nullable
variantAStatsobjectoptioneel
nullable
sentintegeroptioneel
Default: 0
openedintegeroptioneel
Default: 0
clickedintegeroptioneel
Default: 0
variantBStatsobjectoptioneel
nullable
sentintegeroptioneel
Default: 0
openedintegeroptioneel
Default: 0
clickedintegeroptioneel
Default: 0
testStartedAtdatetimeoptioneel
nullable
winnerPickedAtdatetimeoptioneel
nullable
statsobjectoptioneel
nullable
totalRecipientsintegeroptioneel
≥ 0Default: 0
sentintegeroptioneel
≥ 0Default: 0
deliveredintegeroptioneel
≥ 0Default: 0
openedintegeroptioneel
≥ 0Default: 0
uniqueOpenedintegeroptioneel
≥ 0Default: 0
clickedintegeroptioneel
≥ 0Default: 0
uniqueClickedintegeroptioneel
≥ 0Default: 0
bouncedintegeroptioneel
≥ 0Default: 0
unsubscribedintegeroptioneel
≥ 0Default: 0
complainedintegeroptioneel
≥ 0Default: 0
failedintegeroptioneel
≥ 0Default: 0
tagsstring[]optioneel
nullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/newsletter_campaigns — Lijst, gepagineerd + filterbaar
  • GET /api/v1/newsletter_campaigns/<id> — Enkele entity
  • POST /api/v1/newsletter_campaigns — Aanmaken
  • PATCH /api/v1/newsletter_campaigns/<id> — Gedeeltelijke update
  • DELETE /api/v1/newsletter_campaigns/<id> — Soft-delete
  • GET /api/v1/newsletter_campaigns/<id>/timeline — Audit + activiteiten

Zoeken