← lemlist

New Unsubscribed Recipient (Instant) from lemlist API

Pipedream makes it easy to connect APIs for lemlist and 1000+ other apps remarkably fast.

Trigger workflow on
New Unsubscribed Recipient (Instant) from the lemlist API
Next, do this
Connect to 1000+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

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

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

Trigger a workflow on New Unsubscribed Recipient (Instant) with lemlist API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Unsubscribed Recipient (Instant) trigger
    1. Connect your lemlist account
    2. Optional- Select a Campaign Id
  2. Add steps to connect to 1000+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New Unsubscribed Recipient (Instant) from lemlist API
lemlist + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Unsubscribed Recipient (Instant) from lemlist API
lemlist + Google Sheets
 
Try it
Get Film with SWAPI - Star Wars API on New Unsubscribed Recipient (Instant) from lemlist API
lemlist + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New Unsubscribed Recipient (Instant) from lemlist API
lemlist + Airtable
 
Try it
Chat with OpenAI (ChatGPT) API on New Unsubscribed Recipient (Instant) from lemlist API
lemlist + OpenAI (ChatGPT)
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is 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.

New Unsubscribed Recipient (Instant) on lemlist
Description:Emit new event when a recipient unsubscribes. [See docs here](https://developer.lemlist.com/#add-a-hook)
Version:0.0.1
Key:lemlist-unsubscribe-recipient

Code

import common from "../common/common.mjs";

export default {
  ...common,
  type: "source",
  name: "New Unsubscribed Recipient (Instant)",
  key: "lemlist-unsubscribe-recipient",
  description: "Emit new event when a recipient unsubscribes. [See docs here](https://developer.lemlist.com/#add-a-hook)",
  version: "0.0.1",
  dedupe: "unique",
  props: {
    ...common.props,
  },
  methods: {
    ...common.methods,
    getWebhookEventTypes() {
      return "emailsUnsubscribed";
    },
    getDataToEmit(activity) {
      const ts = new Date().getTime();
      return {
        id: `${activity.type}-${ts}`,
        summary: `New unsubscribed recipient - ${activity.email}`,
        ts,
      };
    },
    async loadHistoricalData() {
      const activities = await this.lemlist.getActivities({
        params: {
          campaignId: this.campaignId || null,
          limit: 25,
          type: this.getWebhookEventTypes(),
        },
      });

      return activities.map((activity) => ({
        main: activity,
        sub: this.getDataToEmit(activity),
      }));
    },
    async proccessEvent({ body: activity }) {
      this.$emit(activity, this.getDataToEmit(activity));
    },
  },
};

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
lemlistlemlistappThis component uses the lemlist app.
Campaign IdcampaignIdstringSelect a value from the drop down menu.
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.

Authentication

lemlist uses API keys for authentication. When you connect your lemlist account, Pipedream securely stores the keys so you can easily authenticate to lemlist APIs in both code and no-code steps.

Get your lemlist API key at the integration page.

About lemlist

Personalize cold emails, automate follow-ups, and engage with leads across all channels

More Ways to Use lemlist

Triggers

New Activity (Instant) from the lemlist API

Emit new event for each new activity. See docs here

 
Try it

Actions

Add Email In Unsubscribes with the lemlist API

This action adds a lead in the unsubscribed list. See the docs here

 
Try it
Add Lead To A Campaign with the lemlist API

This action adds a lead in a specific campaign. If the lead doesn't exist, it'll be created, then inserted to the campaign. The creator of the lead is the campaign's sender See the docs here

 
Try it
Delete An Email From Unsubscribes with the lemlist API

This action deletes a lead in the unsubscribed list. See the docs here

 
Try it
Delete Lead From Campaign with the lemlist API

This action deletes a lead from a specific campaign. All information, including statistics, will be deleted. See the docs here

 
Try it
Get Lead with the lemlist API

This action retrieves all the information of a specific lead using its email. See the docs here

 
Try it