Campaign Schema
Felder
Campaign Schema
Generic campaign (newsletter, sales outreach, tech rollout, …). Produces a dynamic work list of campaign_items from a segment query. See ADR 0040.
name
description
type
NEWSLETTERSALES_OUTREACHACCOUNT_REVIEWTECH_ROLLOUTRETENTIONUPSELLSURVEYCOMPLIANCEGENERICstatus
DRAFTREADYRUNNINGPAUSEDENDED_PENDING_TASKSCOMPLETEDARCHIVEDFAILEDownerId
assignedTeamId
memberIds
Ad-hoc team members of this campaign (internal user UUIDs). Independent of assignedTeamId, used for collaboration, task filtering and assignee strategies like RANDOM_MEMBER.
baseEntity
Schema id of the target entity (e.g. "party", "asset", "contact", "newsletter_subscriber").
segmentId
Reference to a reusable campaign_segment.
segmentQuery
Inline SegmentQuery tree. Used when no campaign_segment is referenced. See segment-evaluator.ts.
segmentMode
STATICDYNAMIC_PERIODICDYNAMIC_EVENTsegmentRefreshIntervalMin
Re-evaluation interval for DYNAMIC_PERIODIC mode (minutes).
onLeaveSegment
What happens to items whose target entity no longer matches the segment after refresh.
KEEPSKIPrecipientResolver
strategy
BY_FUNCTION_ROLEBY_RELATIONSHIP_FLAGEXPLICIT_CONTACTSALL_CONTACTSroles
FunctionRole slugs, evaluated in priority order.
sendToAllMatching
fallbackStrategy
PRIMARY_CONTACTCOMPANY_EMAILSKIPWARNrequireOptIn
optInCategories
emailField
workEmailprivateEmailanyAvailableexplicitContactIds
actions
id
type
SEND_EMAILSEND_EMAIL_SEQUENCESEND_NEWSLETTERCREATE_TASKCREATE_TICKETCREATE_OPPORTUNITYSTART_WORKFLOWWEBHOOKtrigger
ON_ITEM_CREATEDON_DEMANDDELAYEDCONDITIONALdelayHours
conditionsMode
ANDORnextIds
config
Type-specific config (subject/htmlContent for SEND_EMAIL, title/dueInDays for CREATE_TASK, etc.).
enabled
scheduledStartAt
scheduledEndAt
startedAt
completedAt
pausedAt
dailySendLimit
frequencyCapMinHours
approvalRequired
approvedBy
approvedAt
mandatoryVisibility
If true, user campaign-mute settings are ignored in /tasks (e.g. for compliance campaigns).
config
Type-specific config. For NEWSLETTER: { subject, htmlContent, tiptapContent, abTest, fromName, fromEmail, replyTo, emailAccountId, listIds, excludeListIds }.
stats
itemsTotal
itemsPending
itemsInProgress
itemsDone
itemsSkipped
itemsFailed
emailsSent
emailsDelivered
emailsOpened
emailsClicked
emailsBounced
emailsUnsubscribed
emailsComplained
tasksCreated
ticketsCreated
opportunitiesCreated
lastAggregatedAt
lastSegmentEvaluatedAt
tags
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/campaigns— Liste, paginiert + filterbarGET /api/v1/campaigns/<id>— Einzelne EntityPOST /api/v1/campaigns— AnlegenPATCH /api/v1/campaigns/<id>— Teil-UpdateDELETE /api/v1/campaigns/<id>— Soft-DeleteGET /api/v1/campaigns/<id>/timeline— Audit + Aktivitäten