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)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "mailwizz-create-campaign",
"configured_props": {
"mailwizz": { "authProvisionId": "apn_xxxxxxx" },
"name": "Name",
"type": "Type"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "mailwizz",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "mailwizz-create-campaign",
arguments: {
name: "Name",
type: "Type",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| 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
- Source
- View on GitHub ↗