View as Markdown
Mailwizz icon

Mailwizz ACTION

Create Campaign

Create a new campaign. See the docs here
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Mailwizz account once, then configure and run Create Campaign from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "mailwizz-create-campaign",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mailwizz: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    type: "Type",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Campaign inputs
Property Type Description
name Name string
Campaign name.
Required
type Type string
Campaign type. Default is regular.
Optional
fromName From Name string
The campaign from name.
Required
fromEmail From Email string
The campaign from email address.
Required
subject Subject string
The campaign subject.
Optional
toName To Name string
The subscriber for which we record the bounce.
Required
replyTo Reply To string
The reply-to email address of the campaign.
Required
sendAt Send At string
This will use the timezone which customer selected.
Required
listId List UID string
The list uid to which this campaign will be sent.
Required Dynamic
segmentId Segment UID string
Narrow down the campaign recipients.
Optional Dynamic
templateId Template UID string
Template unique id from MailWizz.
Required Dynamic
inlineCSS Inline CSS boolean
Accept inline css
Optional
plainText Plain Text string
Do not send to autogenerate as default.
Optional
autoPlainText Auto Plain Text boolean
Generate plain text template.
Optional
urlTracking URL Tracking boolean
Enable/Disable url tracking.
Optional
jsonFeed JSON Feed boolean
Enable/Disable JSON feed.
Optional
xmlFeed XML Feed boolean
Enable/Disable XML feed.
Optional
plainTextEmail Plain Text Email boolean
Enable/Disable the plain text email.
Optional
emailStats Email Stats string
A valid email address where the stats will be sent.
Optional
autoresponderEvent Autoresponder Event string
The event that is sent after subscribe or after opening the campaign.
Optional
autoresponderTimeUnit Autoresponder Time Unit string
The unit that the autoresponder will be based on.
Optional
autoresponderTimeValue Autoresponder Time Value integer
The unit time value.
Optional
autoresponderOpenCampaignId Autoresponder Open Campaign Id string
ID of the campaign, only if event is AFTER-CAMPAIGN-OPEN.
Optional Dynamic
cronjob Cron Job string
If this campaign is advanced recurring, you can set a cron job style frequency.
Optional
cronjobEnabled Cron Job Enabled boolean
Enable/Disable cron job frequency.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
mailwizz-create-campaign
Version
0.0.3
App
Mailwizz
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes