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.
| Pack | Marketing |
| Version | v1 (latest) |
| URN | urn:postware:marketing:campaign |
| Identity | identifiers |
| Status categories | draft, scheduled, sending, sent, paused, cancelled, archived |
Fields
| Field | Type | Req | Notes |
|---|---|---|---|
name | string | yes | the internal name; recipients see the subject |
channel | enum(email| | yes | the same values as Message.channel, so a Campaign and the Messages about it agree; default email |
kind | enum(broadcast| | yes | broadcast = 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 |
status | Status(draft| | yes | default map[category:draft] |
subject | string | no | |
preview_text | string | no | the line shown after the subject in an inbox |
from | Participant | no | the sender name and address recipients see |
reply_to | Participant | no | |
body | text | no | plain text or Markdown; a source's design format stays in source.payload |
body_html | text | no | |
audiences | Ref<Audience>[] | no | |
excluded_audiences | Ref<Audience>[] | no | members of these are left out of the send |
scheduled_at | datetime | no | |
sent_at | datetime | no | required once status is sent |
parent | Ref<Campaign> | no | the group Campaign this send belongs to |
sequence | Ref<Sequence> | no | the Sequence this send is a step of |
utm | object | no | the tracking values added to links in the send; {source?: string, medium?: string, campaign?: string, term?: string, content?: string} |
stats | object | no | totals 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.