Skip to content

Campaign

One send to one or more Audiences on a channel: a newsletter, an announcement, a text blast, or one step of a Sequence. Subject, sender, content, schedule, a status from draft to sent, and the totals the sender reported.

PackMarketing
Versionv1 (latest)
URNurn:postware:marketing:campaign
Identityidentifiers
Status categoriesdraft, scheduled, sending, sent, paused, cancelled, archived

Fields

FieldTypeReqNotes
namestringyesthe internal name; recipients see the subject
channelenum(email|chat|sms|phone|web|social|api|push|other)yesthe same values as Message.channel, so a Campaign and the Messages about it agree; default email
kindenum(broadcast|automated|group)yesbroadcast = one send to its audiences; automated = sent to each Person as they reach a Sequence step; group = holds other Campaigns and is not sent itself; default broadcast
statusStatus(draft|scheduled|sending|sent|paused|cancelled|archived)yesdefault map[category:draft]
subjectstringno
preview_textstringnothe line shown after the subject in an inbox
fromParticipantnothe sender name and address recipients see
reply_toParticipantno
bodytextnoplain text or Markdown; a source's design format stays in source.payload
body_htmltextno
audiencesRef<Audience>[]no
excluded_audiencesRef<Audience>[]nomembers of these are left out of the send
scheduled_atdatetimeno
sent_atdatetimenorequired once status is sent
parentRef<Campaign>nothe group Campaign this send belongs to
sequenceRef<Sequence>nothe Sequence this send is a step of
utmobjectnothe tracking values added to links in the send; {source?: string, medium?: string, campaign?: string, term?: string, content?: string}
statsobjectnototals as the sending tool reported them; a snapshot, not kept up to date by the server; {sent?: int, delivered?: int, unique_opens?: int, unique_clicks?: int, bounces?: int, unsubscribes?: int, complaints?: int, replies?: int}

Events

campaign.scheduled when status.category becomes scheduled; campaign.sent when status.category becomes sent.