Mailchimp

Mailchimp is an email marketing and automation platform used to manage audiences, send campaigns and automated customer journeys, and track their results.

The Mailchimp Marketing API provides programmatic access to audiences and their members, tags, segments and merge fields, campaigns and their content, reports, templates, automations, e-commerce stores, orders and products, landing pages, surveys and webhooks.

With Declarative Webhooks you can sync Salesforce Leads and Contacts to Mailchimp audiences, tag and segment members, create and send campaigns, pull campaign reports into Salesforce, and receive Mailchimp audience webhooks (subscribes, unsubscribes, profile and email changes) to keep Salesforce records up to date.

Documentation URL: https://mailchimp.com/developer/marketing/api/

Installable Elements              (No items selected)



Base Elements

These elements are required for the templates below to work

  • Named Credential, External Credential and permission set used by all Mailchimp templates to call the Marketing API with your API key.

Audiences

Create, update and list audiences (lists), batch subscribe or unsubscribe contacts, and read audience statistics such as growth history, activity, top email clients and locations.

  • Get information about all lists in the account.

  • Create a new list in your Mailchimp account.

  • Get information about a specific list in your Mailchimp account.

  • Update the settings for a specific list.

  • Delete a list from your Mailchimp account.

  • Batch subscribe or unsubscribe list members.

  • Get all abuse reports for a specific list.

  • Get details about a specific abuse report.

  • Get up to the previous 180 days of daily detailed aggregated activity stats for a list, not including Automation activity.

  • Get a list of the top email clients based on user-agent strings.

  • Get a month-by-month summary of a specific list's growth activity.

  • Get a summary of a specific list's growth activity for a specific month and year.

  • Get signup forms for a specific list.

  • Customize a list's default signup form.

  • Get the locations (countries) that the list's subscribers have been tagged to based on geocoding their IP address.

Audience Members

Add, update, archive and search audience members (subscribers), and manage their tags, notes, events and activity. Members are identified by email address or its MD5 hash.

  • Get information about members in a specific Mailchimp list.

  • Add a new member to the list.

  • Get information about a specific list member, including a currently subscribed, unsubscribed, or bounced member.

  • Add or update a list member.

  • Update information for a specific list member.

  • Archive a list member.

  • Get the last 50 events of a member's activity on a specific list, including opens, clicks, and unsubscribes.

  • Get a member's activity on a specific list, including opens, clicks, and unsubscribes.

  • Get the tags on a list member.

  • Add or remove tags from a list member.

  • Get events for a contact.

  • Add an event for a list member.

  • Get the last 50 Goal events for a member on a specific list.

  • Get recent notes for a specific list member.

  • Add a new note for a specific subscriber.

  • Get a specific note for a specific list member.

  • Update a specific note for a specific list member.

  • Delete a specific note for a specific list member.

  • Delete all personally identifiable information related to a list member, and remove them from a list.

  • Search for list members.

Segments and Tags

Create and update segments and tags, and add or remove their members.

  • Get information about all available segments for a specific list.

  • Create a new segment in a specific list.

  • Get information about a specific segment.

  • Delete a specific segment in a list.

  • Update a specific segment in a list.

  • Batch add/remove list members to static segment.

  • Get information about members in a saved segment.

  • Add a member to a static segment.

  • Remove a member from the specified static segment.

  • Search for tags on a list by name.

Merge Fields

Manage the audience merge fields (such as FNAME, LNAME, PHONE) used to store contact data.

  • Get a list of all merge fields for an audience.

  • Add a new merge field for a specific audience.

  • Get information about a specific merge field.

  • Update a specific merge field.

  • Delete a specific merge field.

Interest Categories

Manage interest categories (groups) and the interests inside them.

  • Get information about a list's interest categories.

  • Create a new interest category.

  • Get information about a specific interest category.

  • Update a specific interest category.

  • Delete a specific interest category.

  • Get a list of this category's interests.

  • Create a new interest or 'group name' for a specific category.

  • Get interests or 'group names' for a specific category.

  • Update interests or 'group names' for a specific category.

  • Delete interests or group names in a specific category.

Audience Webhooks

Create, update, list and delete the webhooks Mailchimp calls when audience events happen.

  • Get information about all webhooks for a specific list.

  • Create a new webhook for a specific list.

  • Get information about a specific webhook.

  • Delete a specific webhook in a list.

  • Update the settings for an existing webhook.

Inbound Webhooks

Receive Mailchimp audience webhooks in Salesforce: an inbound call template, webhook secret storage and a verification class.

  • Custom Metadata to store the secret added to the Mailchimp webhook URL. Used by the verification class below.

  • Custom Apex class used by the inbound template below to verify that Mailchimp webhook calls carry the secret stored in the Custom Metadata above.

  • Receives Mailchimp audience webhooks (subscribe, unsubscribe, profile update, email change, cleaned and campaign events) as form-encoded data.

Campaigns

Create, update, schedule, send and test email campaigns, manage their content, feedback and folders, and search campaigns.

  • Get all folders used to organize campaigns.

  • Create a new campaign folder.

  • Get information about a specific folder used to organize campaigns.

  • Update a specific folder used to organize campaigns.

  • Delete a specific campaign folder, and mark all the campaigns in the folder as 'unfiled'.

  • Get all campaigns in an account.

  • Create a new Mailchimp campaign.

  • Get information about a specific campaign.

  • Update some or all of the settings for a specific campaign.

  • Remove a campaign from your Mailchimp account.

  • Cancel a Regular or Plain-Text Campaign after you send, before all of your recipients receive it.

  • Replicate a campaign in saved or send status.

  • Send a Mailchimp campaign.

  • Schedule a campaign for delivery.

  • Unschedule a scheduled campaign that hasn't started sending.

  • Send a test email.

  • Pause an RSS-Driven campaign.

  • Resume an RSS-Driven campaign.

  • Remove the guesswork for resending a campaign to certain segments.

  • Get the the HTML and plain-text content for a campaign.

  • Set the content for a campaign.

  • Get team feedback while you're working together on a Mailchimp campaign.

  • Add feedback on a specific campaign.

  • Get a specific feedback message from a campaign.

  • Update a specific feedback message for a campaign.

  • Remove a specific feedback message for a campaign.

  • Review the send checklist for a campaign, and resolve any issues before sending.

  • Search all campaigns for the specified query terms.

Campaign Reports

Read campaign reports: opens, clicks, bounces, unsubscribes, recipients, domain performance and e-commerce activity.

  • Get campaign reports.

  • Get report details for a specific sent campaign.

  • Get a list of abuse complaints for a specific campaign.

  • Get information about a specific abuse report for a campaign.

  • Get feedback based on a campaign's statistics.

  • Get information about clicks on specific links in your Mailchimp campaigns.

  • Get click details for a specific link in a campaign.

  • Get information about list members who clicked on a specific link in a campaign.

  • Get information about a specific subscriber who clicked a link in a specific campaign.

  • Get detailed information about any campaign emails that were opened by a list member.

  • Get information about a specific subscriber who opened a campaign.

  • Get statistics for the top-performing email domains in a campaign.

  • Get a summary of social activity for the campaign, tracked by EepURL.

  • Get a list of member's subscriber activity in a specific campaign.

  • Get a specific list member's activity in a campaign including opens, clicks, and bounces.

  • Get top open locations for a specific campaign.

  • Get information about campaign recipients.

  • Get information about a specific campaign recipient.

  • Get a list of reports with child campaigns for a specific parent campaign.

  • Get information about members who have unsubscribed from a specific campaign.

  • Get information about a specific list member who unsubscribed from a campaign.

  • Get breakdown of product activity for a campaign.

Templates

Manage email templates and template folders.

  • Get all folders used to organize templates.

  • Create a new template folder.

  • Get information about a specific folder used to organize templates.

  • Update a specific folder used to organize templates.

  • Delete a specific template folder, and mark all the templates in the folder as 'unfiled'.

  • Get a list of an account's available templates.

  • Create a new template for the account.

  • Get information about a specific template.

  • Update the name, HTML, or folder_id of an existing template.

  • Delete a specific template.

  • Get the sections that you can edit in a template, including each section's default content.

Automations

Manage classic automations, their emails and email queues.

  • Get a summary of an account's classic automations.

  • Create a new classic automation in your Mailchimp account.

  • Get a summary of an individual classic automation workflow's settings and content.

  • Pause all emails in a specific classic automation workflow.

  • Start all emails in a classic automation workflow.

  • Archiving will permanently end your automation and keep the report data.

  • Get a summary of the emails in a classic automation workflow.

  • Get information about an individual classic automation workflow email.

  • Removes an individual classic automation workflow email.

  • Update settings for a classic automation workflow email.

  • Get information about a classic automation email queue.

  • Manually add a subscriber to a workflow, bypassing the default trigger settings.

  • Get information about a specific subscriber in a classic automation email queue.

  • Pause an automated email.

  • Start an automated email.

  • Get information about subscribers who were removed from a classic automation workflow.

  • Remove a subscriber from a specific classic automation workflow.

  • Get information about a specific subscriber who was removed from a classic automation workflow.

Customer Journeys

Trigger a Customer Journey step for a contact.

  • A step trigger in an Automation flow.

E-commerce Stores and Customers

Connect e-commerce stores and manage their customers.

  • Get information about all stores in the account.

  • Add a new store to your Mailchimp account.

  • Get information about a specific store.

  • Update a store.

  • Delete a store.

  • Get information about a store's customers.

  • Add a new customer to a store.

  • Get information about a specific customer.

  • Add or update a customer.

  • Update a customer.

  • Delete a customer from a store.

E-commerce Products

Manage e-commerce products, variants and images.

  • Get information about a store's products.

  • Add a new product to a store.

  • Get information about a specific product.

  • Update a specific product.

  • Update a specific product.

  • Delete a product.

  • Get information about a product's variants.

  • Add a new variant to the product.

  • Get information about a specific product variant.

  • Add or update a product variant.

  • Update a product variant.

  • Delete a product variant.

  • Get information about a product's images.

  • Add a new image to the product.

  • Get information about a specific product image.

  • Update a product image.

  • Delete a product image.

E-commerce Orders and Carts

Manage e-commerce orders, carts and their line items.

  • Get information about an account's orders.

  • Get information about a store's carts.

  • Add a new cart to a store.

  • Get information about a specific cart.

  • Update a specific cart.

  • Delete a cart.

  • Get information about a cart's line items.

  • Add a new line item to an existing cart.

  • Get information about a specific cart line item.

  • Update a specific cart line item.

  • Delete a specific cart line item.

  • Get information about a store's orders.

  • Add a new order to a store.

  • Get information about a specific order.

  • Add or update an order.

  • Update a specific order.

  • Delete an order.

  • Get information about an order's line items.

  • Add a new line item to an existing order.

  • Get information about a specific order line item.

  • Update a specific order line item.

  • Delete a specific order line item.

E-commerce Promo Codes

Manage promo rules and promo codes.

  • Get information about a store's promo rules.

  • Add a new promo rule to a store.

  • Get information about a specific promo rule.

  • Update a promo rule.

  • Delete a promo rule from a store.

  • Get information about a store's promo codes.

  • Add a new promo code to a store.

  • Get information about a specific promo code.

  • Update a promo code.

  • Delete a promo code from a store.

Contacts

Use the newer Audiences and Contacts API to list, add, update, archive and forget contacts.

  • Get information about all audiences in the account.

  • Get information about a specific audience.

  • Get a list of omni-channel contacts for a given audience.

  • Create a new omni-channel contact for an audience.

  • Retrieve a specific omni-channel contact in an audience.

  • Update an existing omni-channel contact.

  • Archives a Contact.

  • Forgets a Contact.

SMS Campaigns

Create, schedule and send SMS campaigns and manage their content.

  • Get all SMS campaigns in an account.

  • Create a new SMS campaign.

  • Get information about a specific SMS campaign.

  • Update some or all of the settings for a specific SMS campaign.

  • Remove an SMS campaign from your Mailchimp account.

  • Send an SMS campaign.

  • Schedule an SMS campaign to send at a specific time.

  • Cancel a scheduled or sending SMS campaign.

  • Get the content for an SMS campaign.

  • Set the content for an SMS campaign.

Surveys

Create, publish and manage audience surveys.

  • Get information about all available surveys for a specific list.

  • Create a draft survey for an audience.

  • Get details about a specific survey.

  • Update a survey.

  • Delete a survey.

  • Publish a survey that is in draft, unpublished, or has been previously published and edited.

  • Unpublish a survey that has been published.

  • Utilize the List ID and Survey ID to generate a Campaign that links to your survey.

  • Replicate a survey.

Landing Pages

Create, publish and manage landing pages.

  • Get all landing pages.

  • Create an unpublished and contentless Mailchimp landing page.

  • Get information about a specific page.

  • Update a landing page.

  • Delete a landing page.

  • Publish a landing page that is in draft, unpublished, or has been previously published and edited.

  • Unpublish a landing page that is in draft or has been published.

  • Get the the HTML for your landing page.

File Manager

Manage files and folders in the Mailchimp File Manager.

  • Get a list of available images and files stored in the File Manager for the account.

  • Upload a new image or file to the File Manager.

  • Get information about a specific file in the File Manager.

  • Update a file in the File Manager.

  • Remove a specific file from the File Manager.

  • Get a list of all folders in the File Manager.

  • Create a new folder in the File Manager.

  • Get information about a specific folder in the File Manager.

  • Update a specific File Manager folder.

  • Delete a specific folder in the File Manager.

  • Get a list of available images and files stored in this folder.

Connected Sites

Manage connected websites and their tracking script and pixel.

  • Get all connected sites in an account.

  • Create a new Mailchimp connected site.

  • Get information about a specific connected site.

  • Remove a connected site from your Mailchimp account.

  • Verify that the connected sites script has been installed, either via the script URL or fragment.

  • Enable the Mailchimp tracking pixel for a connected site.

  • Disable the Mailchimp tracking pixel for a connected site.

Conversations

Read conversations and messages.

  • Get a list of conversations for the account.

  • Get details about an individual conversation.

  • Get messages from a specific conversation.

  • Get an individual message in a conversation.

Other Reports

Read reports for Facebook ads, landing pages and surveys, and list Facebook ads.

  • Get list of Facebook ads.

  • Get details of a Facebook ad.

  • Get reports of Facebook ads.

  • Get report of a Facebook ad.

  • Get breakdown of product activity for an outreach.

  • Get report of a landing page.

  • Get reports of landing pages.

  • Get reports for surveys.

  • Get report for a survey.

  • Get reports for survey questions.

  • Get report for a survey question.

  • Get answers for a survey question.

  • Get responses to a survey.

  • Get a single survey response.

Account and Utilities

Account info, ping, authorized apps, account exports, batch operations, batch webhooks, verified domains and Chimp Chatter.

  • Get links to all other resources available in the API.

  • Return the Chimp Chatter for this account ordered by most recent.

  • Get a list of account exports for a given account.

  • Create a new account export in your Mailchimp account.

  • Get information about a specific account export.

  • Get a list of an account's registered, connected applications.

  • Get information about a specific authorized application.

  • Get a summary of batch requests that have been made.

  • Begin processing a batch operations request.

  • Get the status of a batch request.

  • Stops a batch request from running.

  • Get all webhooks that have been configured for batches.

  • Configure a webhook that will fire whenever any batch request completes processing.

  • Get information about a specific batch webhook.

  • Update a webhook that will fire whenever any batch request completes processing.

  • Remove a batch webhook.

  • A health check for the API that won't return any account-specific information.

  • Get the details for a single domain on the account.

  • Delete a verified domain from the account.

  • Verify a domain for sending.

  • Get all of the sending domains on the account.

  • Add a domain to the account.

In order to install this in your org, you need to access the library from the Declarative Webhooks app in your Salesforce org, Declarative Webhooks Library tab.