← Netlify + Mailchimp integrations

Search Lists with Mailchimp API on New Deploy Failure (Instant) from Netlify API

Pipedream makes it easy to connect APIs for Mailchimp, Netlify and 3,000+ other apps remarkably fast.

Trigger workflow on
New Deploy Failure (Instant) from the Netlify API
Next, do this
Search Lists with the Mailchimp API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Netlify trigger and Mailchimp action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Deploy Failure (Instant) trigger
    1. Connect your Netlify account
    2. Select a Site ID
  3. Configure the Search Lists action
    1. Connect your Mailchimp account
    2. Optional- Configure Before date created
    3. Optional- Configure Since date created
    4. Optional- Configure Before campaign last sent
    5. Optional- Configure Since campaign last sent
    6. Optional- Configure Email
    7. Optional- Configure Sort field
    8. Optional- Select a Sort direction
    9. Optional- Configure Has ecommerce store?
    10. Optional- Configure Include total contacts
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when a new deployment fails
Version:0.1.1
Key:netlify-new-deploy-failure

Netlify Overview

Harness the power of the Netlify API on Pipedream to automate your web development workflows, streamline site deployments, manage DNS settings, and more. With Pipedream's serverless platform, you can orchestrate Netlify's capabilities in concert with numerous other services to enhance productivity, monitor your deployments, and react to events in real-time. Create custom CI/CD pipelines, synchronize your site's content with third-party systems, or automate responses to form submissions, all with the seamless integration of the Netlify API within Pipedream workflows.

Trigger Code

import webhook from "../common/webhook.mjs";
import { deployHooks } from "../common/constants.mjs";

export default {
  ...webhook,
  key: "netlify-new-deploy-failure",
  name: "New Deploy Failure (Instant)",
  description: "Emit new event when a new deployment fails",
  type: "source",
  version: "0.1.1",
  dedupe: "unique",
  methods: {
    ...webhook.methods,
    getHookEvent() {
      return deployHooks.DEPLOY_FAILED;
    },
    getMetaSummary() {
      return "New Deployment Failure";
    },
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
NetlifynetlifyappThis component uses the Netlify app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
Site IDsiteIdstringSelect a value from the drop down menu.

Trigger Authentication

Netlify uses OAuth authentication. When you connect your Netlify account, Pipedream will open a popup window where you can sign into Netlify and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Netlify API.

Pipedream requests the following authorization scopes when you connect your account:

About Netlify

All-in-one platform for automating modern web projects

Action

Description:Searches for lists. [See docs here](https://mailchimp.com/developer/marketing/api/lists/)
Version:0.0.2
Key:mailchimp-search-lists

Mailchimp Overview

The Mailchimp API taps into the heart of your email marketing efforts, allowing you to manage subscribers, campaigns, and reports. With the API, you can automate tasks like syncing subscriber lists, segmenting contacts based on behavior, and personalizing email content to match user profiles. It's a powerful tool for marketers looking to fine-tune their email strategy and maximize engagement.

Action Code

import constants from "../../common/constants.mjs";
import {
  commaSeparateArray, removeNullEntries,
} from "../../common/utils.mjs";
import mailchimp from "../../mailchimp.app.mjs";

export default {
  key: "mailchimp-search-lists",
  name: "Search Lists",
  description: "Searches for lists. [See docs here](https://mailchimp.com/developer/marketing/api/lists/)",
  version: "0.0.2",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: true,
  },
  type: "action",
  props: {
    mailchimp,
    beforeDateCreated: {
      type: "string",
      label: "Before date created",
      description: "Restrict response to lists created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.",
      optional: true,
    },
    sinceDateCreated: {
      type: "string",
      label: "Since date created",
      description: "Restrict results to lists created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.",
      optional: true,
    },
    beforeCampaignLastSent: {
      type: "string",
      label: "Before campaign last sent",
      description: "Restrict results to lists created before the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.",
      optional: true,
    },
    sinceCampaignLastSent: {
      type: "string",
      label: "Since campaign last sent",
      description: "Restrict results to lists created after the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.",
      optional: true,
    },
    email: {
      type: "string",
      label: "Email",
      description: "Restrict results to lists that include a specific subscriber's email address.",
      optional: true,
    },
    sortField: {
      type: "string",
      label: "Sort field",
      description: "Returns files sorted by the specified field. Possible value: \"date_created\"",
      default: "date_created",
      optional: true,
    },
    sortDir: {
      type: "string",
      label: "Sort direction",
      description: "Determines the order direction for sorted results. Possible values: ASC or DESC.",
      optional: true,
      options: constants.SORT_DIRECTIONS,
      default: "DESC",
    },
    hasEcommerceStore: {
      type: "boolean",
      label: "Has ecommerce store?",
      description: "The unique ID for the list",
      optional: true,
    },
    includeTotalContacts: {
      type: "boolean",
      label: "Include total contacts",
      description: "Return the total_contacts field in the stats response, which contains an approximate count of all contacts in any state.",
      optional: true,
    },
  },
  async run({ $ }) {
    const payload = removeNullEntries({
      fields: commaSeparateArray(this.fields),
      exclude_fields: commaSeparateArray(this.excludeFields),
      count: this.count,
      offset: 0,
      before_date_created: this.beforeDateCreated,
      since_date_created: this.sinceDateCreated,
      before_campaign_last_sent: this.beforeCampaignLastSent,
      since_campaign_last_sent: this.sinceCampaignLastSent,
      email: this.email,
      sort_field: this.sortField,
      sort_dir: this.sortDir,
      has_ecommerce_store: this.hasEcommerceStore,
      include_total_contacts: this.includeTotalContacts,
    });
    const response = await this.mailchimp.searchLists($, payload);
    response?.total_items && $.export("$summary", "List found");
    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
MailchimpmailchimpappThis component uses the Mailchimp app.
Before date createdbeforeDateCreatedstring

Restrict response to lists created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Since date createdsinceDateCreatedstring

Restrict results to lists created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Before campaign last sentbeforeCampaignLastSentstring

Restrict results to lists created before the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Since campaign last sentsinceCampaignLastSentstring

Restrict results to lists created after the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Emailemailstring

Restrict results to lists that include a specific subscriber's email address.

Sort fieldsortFieldstring

Returns files sorted by the specified field. Possible value: "date_created"

Sort directionsortDirstringSelect a value from the drop down menu:ASCDESC
Has ecommerce store?hasEcommerceStoreboolean

The unique ID for the list

Include total contactsincludeTotalContactsboolean

Return the total_contacts field in the stats response, which contains an approximate count of all contacts in any state.

Action Authentication

Mailchimp uses OAuth authentication. When you connect your Mailchimp account, Pipedream will open a popup window where you can sign into Mailchimp and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Mailchimp API.

Pipedream requests the following authorization scopes when you connect your account:

About Mailchimp

Mailchimp is a marketing automation and email marketing platform.

More Ways to Connect Mailchimp + Netlify

Get Site with Netlify API on Link Clicked from Mailchimp API
Mailchimp + Netlify
 
Try it
List Files with Netlify API on Link Clicked from Mailchimp API
Mailchimp + Netlify
 
Try it
List Site Deploys with Netlify API on Link Clicked from Mailchimp API
Mailchimp + Netlify
 
Try it
Rollback Deploy with Netlify API on Link Clicked from Mailchimp API
Mailchimp + Netlify
 
Try it
Get Site with Netlify API on New Audience from Mailchimp API
Mailchimp + Netlify
 
Try it
New Form Submission (Instant) from the Netlify API

Emit new event when a user submits a form

 
Try it
New Deploy Failure (Instant) from the Netlify API

Emit new event when a new deployment fails

 
Try it
New Deploy Success (Instant) from the Netlify API

Emit new event when a new deployment is completed

 
Try it
New Deploy Start (Instant) from the Netlify API

Emit new event when a new deployment is started

 
Try it
Link Clicked from the Mailchimp API

Emit new event when a recipient clicks a pre-specified link in an specific campaign.

 
Try it
Get Site with the Netlify API

Get a specified site. See docs

 
Try it
List Files with the Netlify API

Returns a list of all the files in the current deploy. See docs

 
Try it
List Site Deploys with the Netlify API

Returns a list of all deploys for a specific site. See docs

 
Try it
Rollback Deploy with the Netlify API

Restores an old deploy and makes it the live version of the site. See docs

 
Try it
Add Member To Segment with the Mailchimp API

Adds a new member to a static segment. See docs here

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.