Mailchimp
App · Email Marketing · 9 actions
Manage your Mailchimp audiences, members, and email campaigns.
Actions
| Action | What it does |
|---|---|
| Add member to audience | Add or subscribe a contact to a Mailchimp audience. |
| Create a Mailchimp audience | Create a new Mailchimp audience with contact and sender defaults. |
| Create a Mailchimp campaign | Create a new campaign for a given audience. |
| List Mailchimp audiences | List your Mailchimp audiences. |
| Remove member from audience | Remove a subscriber from a Mailchimp audience. |
| Send a Mailchimp campaign | Send a campaign that is ready to be delivered. |
| Set Mailchimp campaign content | Set the HTML and/or plain-text content of a campaign so it is ready to send. |
| Tag a Mailchimp member | Create a tag and apply it to a subscriber. |
| Update member status | Update the subscription status of a member in an audience. |
Add member to audience
Add or subscribe a contact to a Mailchimp audience.
Inputs
- Audience ID
list_idtextRequired - The ID of the Mailchimp audience.
- Email
emailtextRequired - Subscriber email
- Subscription status
statustext - Whether the contact is subscribed now, or pending until they confirm via email.One of:
subscribed,pending(Pending (send a confirmation email first)),unsubscribed,cleaned(Cleaned (invalid or bounced)). Default:subscribed. - First name
first_nametext - First name
- Last name
last_nametext - Last name
Outputs
email_addresstext- Member's email address
idtext- Member ID (MD5 hash of lowercase email address)
statustext- Subscription status
unique_email_idtext- Unique identifier for this email address
Example output
{
"email_address": "user@example.com",
"id": "abc123xyz789",
"status": "subscribed",
"unique_email_id": "abc123xyz789"
}Create a Mailchimp audience
Create a new Mailchimp audience with contact and sender defaults.
Inputs
- Name
nametextRequired - Audience name
- Permission reminder
permission_remindertextRequired - A short note reminding subscribers why they're receiving your emails.
- From name
from_nametextRequired - Default from name
- From email
from_emailtextRequired - Default from email
- Company
companytextRequired - Company name
- Street address
address1textRequired - Street address
- City
citytextRequired - City
- State / region
statetextRequired - State or region. Mailchimp requires this for the audience contact address.
- ZIP / postal code
ziptextRequired - ZIP or postal code. Mailchimp requires this for the audience contact address.
- Country
countrytextRequired - Country
- Email type option
email_type_optiontrue/false - Set to true to let subscribers choose between HTML and plain-text emails.Default:
true.
Outputs
idtext- Mailchimp audience/list ID
nametext- Audience name as displayed in Mailchimp
web_idnumber- Web-accessible ID for the audience
Example output
{
"id": "abc123xyz789",
"name": "Newsletter Subscribers",
"web_id": 1
}Create a Mailchimp campaign
Create a new campaign for a given audience.
Inputs
- Audience ID
list_idtextRequired - The ID of the Mailchimp audience.
- Subject
subjecttextRequired - Campaign subject
- From name
from_nametextRequired - Sender name
- Reply to
reply_totextRequired - Reply-to email
- Campaign type
typetext - The kind of email campaign to create.One of:
regular(Regular (standard HTML email)),plaintext(Plain-text email). Default:regular.
Outputs
idtext- Mailchimp campaign ID
statustext- Current campaign status
typetext- Campaign type
web_idnumber- Web-accessible ID for the campaign
Example output
{
"id": "abc123xyz789",
"status": "save",
"type": "regular",
"web_id": 1
}List Mailchimp audiences
List your Mailchimp audiences.
Inputs
- Count
countnumber - Maximum number of audiences to return
Outputs
resultslist- List of results
Example output
{
"results": [
{
"id": "abc123xyz789",
"name": "Newsletter Subscribers",
"stats": {
"member_count": 42
},
"web_id": 1
}
]
}Remove member from audience
Remove a subscriber from a Mailchimp audience.
Inputs
- Audience ID
list_idtextRequired - The ID of the Mailchimp audience.
- Email
emailtextRequired - Subscriber email
Outputs
deletedtrue/false- Indicates whether the member was successfully deleted
Example output
{
"deleted": true
}Send a Mailchimp campaign
Send a campaign that is ready to be delivered.
Inputs
- Campaign ID
campaign_idtextRequired - The ID of the Mailchimp campaign to send.
Outputs
completetrue/false- Indicates whether the campaign was successfully sent
Example output
{
"complete": true
}Set Mailchimp campaign content
Set the HTML and/or plain-text content of a campaign so it is ready to send.
Inputs
- Campaign ID
campaign_idtextRequired - The ID of the Mailchimp campaign to set content for.
- HTML content
htmltext - Full HTML body of the email. Provide this and/or plain-text content.
- Plain-text content
plain_texttext - Plain-text body of the email. Provide this and/or HTML content.
Outputs
htmltext- The HTML content set on the campaign
plain_texttext- The plain-text content set on the campaign
Example output
{
"html": "<p>This is a test campaign. Please ignore.</p>",
"plain_text": "This is a test campaign. Please ignore."
}Tag a Mailchimp member
Create a tag and apply it to a subscriber.
Inputs
- Audience ID
list_idtextRequired - The ID of the Mailchimp audience.
- Email
emailtextRequired - Subscriber email
- Tag name
tag_nametextRequired - Tag name
Outputs
tagslist- Array of all tags assigned to this member
Example output
{
"tags": [
{
"id": 1,
"name": "VIP"
}
]
}Update member status
Update the subscription status of a member in an audience.
Inputs
- Audience ID
list_idtextRequired - The ID of the Mailchimp audience.
- Email
emailtextRequired - Subscriber email
- New status
statustextRequired - The subscription status to set for this contact.One of:
subscribed,pending(Pending (send a confirmation email first)),unsubscribed,cleaned(Cleaned (invalid or bounced)).
Outputs
email_addresstext- Member's email address with updated status
idtext- Member ID (MD5 hash of lowercase email address)
statustext- Updated subscription status
Example output
{
"email_address": "user@example.com",
"id": "abc123xyz789",
"status": "unsubscribed"
}