Campaigns
The campaigns API enables you to send out large volumes of fully personalized mail to a mailing list.
Create Campaign
List Campaigns
Update Campaign
Delete Campaign
Send Campaign
ModelsExpand Collapse
class Campaign: …Represents a bulk mail campaign.
Represents a bulk mail campaign.
status: Literal["drafting", "changes_required", "creating_orders", 4 more]Status of the campaign lifecycle.
Status of the campaign lifecycle.
cheque: Optional[Cheque]Inline cheque configuration for a campaign. All fields are optional since campaigns may be in a partial state during drafting.
Inline cheque configuration for a campaign. All fields are optional since campaigns may be in a partial state during drafting.
letter_settings: Optional[ChequeLetterSettings]Settings for the attached letter (e.g., color printing).
Settings for the attached letter (e.g., color printing).
ID of a template for an optional attached letter. Cannot be used with letterPDF.
The ID of the default sender contact to use for orders if not specified per recipient.
An optional string describing this resource. Will be visible in the API and the dashboard.
errors: Optional[List[Error]]A list of processing errors encountered, if any. Present when status is ‘changes_required’.
A list of processing errors encountered, if any. Present when status is ‘changes_required’.
letter: Optional[Letter]Inline letter configuration for a campaign. All fields are optional since campaigns may be in a partial state during drafting.
Inline letter configuration for a campaign. All fields are optional since campaigns may be in a partial state during drafting.
address_placement: Optional[AddressPlacement]Enum representing the placement of the address on the letter.
Enum representing the placement of the address on the letter.
envelope_type: Optional[Literal["standard_double_window", "flat"]]The type of envelope used for the letter.
The type of envelope used for the letter.
mailing_class: Optional[Literal["first_class", "standard_class", "express", 23 more]]Mailing class for the letter.
Mailing class for the letter.
paper: Optional[Union[Literal["standard", "premium_paper_letter_standard_white_70lb", "premium_paper_letter_standard_white_80lb"], str, null]]Premium paper selection (“standard” or a premium paper ID). If omitted, org default is used when configured; otherwise “standard”.
Premium paper selection (“standard” or a premium paper ID). If omitted, org default is used when configured; otherwise “standard”.
A temporary URL to preview the first rendered order, available once the campaign status is ‘draft’ or later.
postcard: Optional[Postcard]Inline postcard configuration for a campaign. All fields are optional since campaigns may be in a partial state during drafting.
Inline postcard configuration for a campaign. All fields are optional since campaigns may be in a partial state during drafting.
mailing_class: Optional[Literal["first_class", "standard_class", "express", 23 more]]Mailing class for the postcard.
Mailing class for the postcard.
paper: Optional[Union[Literal["standard", "premium_paper_heavy_1_glossy", "premium_paper_postcard_uv_glossy_ss", 2 more], str, null]]Premium paper selection (“standard” or a premium paper ID). If omitted, org default is used when configured; otherwise “standard”.
Premium paper selection (“standard” or a premium paper ID). If omitted, org default is used when configured; otherwise “standard”.
A temporary URL to download the processing report, available once the campaign is in the ready status.
self_mailer: Optional[SelfMailer]Inline self-mailer configuration for a campaign. All fields are optional since campaigns may be in a partial state during drafting.
Inline self-mailer configuration for a campaign. All fields are optional since campaigns may be in a partial state during drafting.
The scheduled date and time for the campaign to be sent.