# Lemlist (/integrations/lemlist)





{/* MANUAL-CONTENT-START:intro */}

Use [Lemlist](https://lemlist.com) to retrieve campaign activities and replies, look up a lead by email or ID, and send an email through the Lemlist inbox. Filter activity by type, campaign, or lead and page with the provided limit and offset.

Triggers can start workflows from Lemlist activity events. Use activity data to summarize campaign performance, sync replies to a CRM, or decide which leads need follow-up. The block does not expose campaign creation or multi-channel sequence management.

{/* MANUAL-CONTENT-END */}

## Use the block [#usage-instructions]

Retrieve campaign activities and replies, get lead information, and send emails through the Lemlist inbox.

## Actions [#actions]

### Lemlist Get Activities [#lemlist-get-activities]

Retrieves campaign activities and steps performed, including email opens, clicks, replies, and other events.

#### Input [#input]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `apiKey` | string | Yes | Lemlist API key |
| `type` | string | No | Filter by activity type (e.g., emailOpened, emailClicked, emailReplied, paused) |
| `campaignId` | string | No | Filter by campaign ID (e.g., "cam\_abc123def456") |
| `leadId` | string | No | Filter by lead ID (e.g., "lea\_abc123def456") |
| `isFirst` | boolean | No | Filter for first activity only |
| `limit` | number | No | Number of results per request (e.g., 50). Max 100, default 100 |
| `offset` | number | No | Number of records to skip for pagination (e.g., 0, 100, 200) |

#### Output [#output]

| Parameter | Type | Description |
| - | - | - |
| `activities` | array | List of activities |
| ↳ `_id` | string | Activity ID |
| ↳ `type` | string | Activity type |
| ↳ `leadId` | string | Associated lead ID |
| ↳ `campaignId` | string | Campaign ID |
| ↳ `sequenceId` | string | Sequence ID |
| ↳ `stepId` | string | Step ID |
| ↳ `createdAt` | string | When the activity occurred |
| `count` | number | Number of activities returned |

### Lemlist Get Lead [#lemlist-get-lead]

Retrieves lead information by email address or lead ID.

#### Input [#input-1]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `apiKey` | string | Yes | Lemlist API key |
| `leadIdentifier` | string | Yes | Lead email address (e.g., "[john@example.com](mailto:john@example.com)") or lead ID (e.g., "lea\_abc123def456") |

#### Output [#output-1]

| Parameter | Type | Description |
| - | - | - |
| `_id` | string | Lead ID |
| `email` | string | Lead email address |
| `firstName` | string | Lead first name |
| `lastName` | string | Lead last name |
| `companyName` | string | Company name |
| `jobTitle` | string | Job title |
| `companyDomain` | string | Company domain |
| `isPaused` | boolean | Whether the lead is paused |
| `campaignId` | string | Campaign ID the lead belongs to |
| `contactId` | string | Contact ID |
| `emailStatus` | string | Email deliverability status |

### Lemlist Send Email [#lemlist-send-email]

Sends an email to a contact through the Lemlist inbox.

#### Input [#input-2]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `apiKey` | string | Yes | Lemlist API key |
| `sendUserId` | string | Yes | Identifier for the user sending the message (e.g., "usr\_abc123def456") |
| `sendUserEmail` | string | Yes | Email address of the sender (e.g., "[sales@company.com](mailto:sales@company.com)") |
| `sendUserMailboxId` | string | Yes | Mailbox identifier for the sender (e.g., "mbx\_abc123def456") |
| `contactId` | string | Yes | Recipient contact identifier (e.g., "con\_abc123def456") |
| `leadId` | string | Yes | Associated lead identifier (e.g., "lea\_abc123def456") |
| `subject` | string | Yes | Email subject line |
| `message` | string | Yes | Email message body in HTML format |
| `cc` | json | No | Array of CC email addresses |

#### Output [#output-2]

| Parameter | Type | Description |
| - | - | - |
| `ok` | boolean | Whether the email was sent successfully |

## Triggers [#triggers]

A trigger starts a workflow when a supported event occurs in this service.

### Lemlist Email Bounced [#lemlist-email-bounced]

Trigger workflow when an email bounces

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | Required to create the webhook in Lemlist. |
  | `campaignId` | string | No | Optionally scope the webhook to a specific campaign |

  #### Output [#output-3]

  | Parameter | Type | Description |
  | - | - | - |
  | `_id` | string | Unique activity identifier |
  | `type` | string | Activity type (e.g., emailsSent, emailsReplied) |
  | `createdAt` | string | Activity creation timestamp (ISO 8601) |
  | `teamId` | string | Lemlist team identifier |
  | `leadId` | string | Lead identifier (only present for campaign activities) |
  | `campaignId` | string | Campaign identifier (only present for campaign activities) |
  | `campaignName` | string | Campaign name (only present for campaign activities) |
  | `email` | string | Lead email address |
  | `firstName` | string | Lead first name |
  | `lastName` | string | Lead last name |
  | `companyName` | string | Lead company name |
  | `linkedinUrl` | string | Lead LinkedIn profile URL |
  | `sequenceId` | string | Sequence identifier |
  | `sequenceStep` | number | Current step in the sequence (0-indexed) |
  | `totalSequenceStep` | number | Total number of steps in the sequence |
  | `isFirst` | boolean | Whether this is the first activity of this type for this step |
  | `sendUserId` | string | Sender user identifier |
  | `sendUserEmail` | string | Sender email address |
  | `sendUserName` | string | Sender display name |
  | `messageId` | string | Email message ID that bounced |
  | `errorMessage` | string | Bounce error message |
</ReferenceDetails>

### Lemlist Email Clicked [#lemlist-email-clicked]

Trigger workflow when a lead clicks a link in an email

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-1]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | Required to create the webhook in Lemlist. |
  | `campaignId` | string | No | Optionally scope the webhook to a specific campaign |

  #### Output [#output-4]

  | Parameter | Type | Description |
  | - | - | - |
  | `_id` | string | Unique activity identifier |
  | `type` | string | Activity type (e.g., emailsSent, emailsReplied) |
  | `createdAt` | string | Activity creation timestamp (ISO 8601) |
  | `teamId` | string | Lemlist team identifier |
  | `leadId` | string | Lead identifier (only present for campaign activities) |
  | `campaignId` | string | Campaign identifier (only present for campaign activities) |
  | `campaignName` | string | Campaign name (only present for campaign activities) |
  | `email` | string | Lead email address |
  | `firstName` | string | Lead first name |
  | `lastName` | string | Lead last name |
  | `companyName` | string | Lead company name |
  | `linkedinUrl` | string | Lead LinkedIn profile URL |
  | `sequenceId` | string | Sequence identifier |
  | `sequenceStep` | number | Current step in the sequence (0-indexed) |
  | `totalSequenceStep` | number | Total number of steps in the sequence |
  | `isFirst` | boolean | Whether this is the first activity of this type for this step |
  | `sendUserId` | string | Sender user identifier |
  | `sendUserEmail` | string | Sender email address |
  | `sendUserName` | string | Sender display name |
  | `messageId` | string | Email message ID containing the clicked link |
  | `clickedUrl` | string | URL that was clicked |
</ReferenceDetails>

### Lemlist Email Opened [#lemlist-email-opened]

Trigger workflow when a lead opens an email

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-2]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | Required to create the webhook in Lemlist. |
  | `campaignId` | string | No | Optionally scope the webhook to a specific campaign |

  #### Output [#output-5]

  | Parameter | Type | Description |
  | - | - | - |
  | `_id` | string | Unique activity identifier |
  | `type` | string | Activity type (e.g., emailsSent, emailsReplied) |
  | `createdAt` | string | Activity creation timestamp (ISO 8601) |
  | `teamId` | string | Lemlist team identifier |
  | `leadId` | string | Lead identifier (only present for campaign activities) |
  | `campaignId` | string | Campaign identifier (only present for campaign activities) |
  | `campaignName` | string | Campaign name (only present for campaign activities) |
  | `email` | string | Lead email address |
  | `firstName` | string | Lead first name |
  | `lastName` | string | Lead last name |
  | `companyName` | string | Lead company name |
  | `linkedinUrl` | string | Lead LinkedIn profile URL |
  | `sequenceId` | string | Sequence identifier |
  | `sequenceStep` | number | Current step in the sequence (0-indexed) |
  | `totalSequenceStep` | number | Total number of steps in the sequence |
  | `isFirst` | boolean | Whether this is the first activity of this type for this step |
  | `sendUserId` | string | Sender user identifier |
  | `sendUserEmail` | string | Sender email address |
  | `sendUserName` | string | Sender display name |
  | `messageId` | string | Email message ID that was opened |
</ReferenceDetails>

### Lemlist Email Replied [#lemlist-email-replied]

Trigger workflow when a lead replies to an email

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-3]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | Required to create the webhook in Lemlist. |
  | `campaignId` | string | No | Optionally scope the webhook to a specific campaign |

  #### Output [#output-6]

  | Parameter | Type | Description |
  | - | - | - |
  | `_id` | string | Unique activity identifier |
  | `type` | string | Activity type (e.g., emailsSent, emailsReplied) |
  | `createdAt` | string | Activity creation timestamp (ISO 8601) |
  | `teamId` | string | Lemlist team identifier |
  | `leadId` | string | Lead identifier (only present for campaign activities) |
  | `campaignId` | string | Campaign identifier (only present for campaign activities) |
  | `campaignName` | string | Campaign name (only present for campaign activities) |
  | `email` | string | Lead email address |
  | `firstName` | string | Lead first name |
  | `lastName` | string | Lead last name |
  | `companyName` | string | Lead company name |
  | `linkedinUrl` | string | Lead LinkedIn profile URL |
  | `sequenceId` | string | Sequence identifier |
  | `sequenceStep` | number | Current step in the sequence (0-indexed) |
  | `totalSequenceStep` | number | Total number of steps in the sequence |
  | `isFirst` | boolean | Whether this is the first activity of this type for this step |
  | `sendUserId` | string | Sender user identifier |
  | `sendUserEmail` | string | Sender email address |
  | `sendUserName` | string | Sender display name |
  | `subject` | string | Email subject line |
  | `text` | string | Email body content (HTML) |
  | `messageId` | string | Email message ID (RFC 2822 format) |
  | `emailId` | string | Lemlist email identifier |
</ReferenceDetails>

### Lemlist Email Sent [#lemlist-email-sent]

Trigger workflow when an email is sent

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-4]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | Required to create the webhook in Lemlist. |
  | `campaignId` | string | No | Optionally scope the webhook to a specific campaign |

  #### Output [#output-7]

  | Parameter | Type | Description |
  | - | - | - |
  | `_id` | string | Unique activity identifier |
  | `type` | string | Activity type (e.g., emailsSent, emailsReplied) |
  | `createdAt` | string | Activity creation timestamp (ISO 8601) |
  | `teamId` | string | Lemlist team identifier |
  | `leadId` | string | Lead identifier (only present for campaign activities) |
  | `campaignId` | string | Campaign identifier (only present for campaign activities) |
  | `campaignName` | string | Campaign name (only present for campaign activities) |
  | `email` | string | Lead email address |
  | `firstName` | string | Lead first name |
  | `lastName` | string | Lead last name |
  | `companyName` | string | Lead company name |
  | `linkedinUrl` | string | Lead LinkedIn profile URL |
  | `sequenceId` | string | Sequence identifier |
  | `sequenceStep` | number | Current step in the sequence (0-indexed) |
  | `totalSequenceStep` | number | Total number of steps in the sequence |
  | `isFirst` | boolean | Whether this is the first activity of this type for this step |
  | `sendUserId` | string | Sender user identifier |
  | `sendUserEmail` | string | Sender email address |
  | `sendUserName` | string | Sender display name |
  | `subject` | string | Email subject line |
  | `text` | string | Email body content (HTML) |
  | `messageId` | string | Email message ID (RFC 2822 format) |
  | `emailId` | string | Lemlist email identifier |
</ReferenceDetails>

### Lemlist Lead Interested [#lemlist-lead-interested]

Trigger workflow when a lead is marked as interested

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-5]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | Required to create the webhook in Lemlist. |
  | `campaignId` | string | No | Optionally scope the webhook to a specific campaign |

  #### Output [#output-8]

  | Parameter | Type | Description |
  | - | - | - |
  | `_id` | string | Unique activity identifier |
  | `type` | string | Activity type (e.g., emailsSent, emailsReplied) |
  | `createdAt` | string | Activity creation timestamp (ISO 8601) |
  | `teamId` | string | Lemlist team identifier |
  | `leadId` | string | Lead identifier (only present for campaign activities) |
  | `campaignId` | string | Campaign identifier (only present for campaign activities) |
  | `campaignName` | string | Campaign name (only present for campaign activities) |
  | `email` | string | Lead email address |
  | `firstName` | string | Lead first name |
  | `lastName` | string | Lead last name |
  | `companyName` | string | Lead company name |
  | `linkedinUrl` | string | Lead LinkedIn profile URL |
  | `sequenceId` | string | Sequence identifier |
  | `sequenceStep` | number | Current step in the sequence (0-indexed) |
  | `totalSequenceStep` | number | Total number of steps in the sequence |
  | `isFirst` | boolean | Whether this is the first activity of this type for this step |
</ReferenceDetails>

### Lemlist Lead Not Interested [#lemlist-lead-not-interested]

Trigger workflow when a lead is marked as not interested

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-6]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | Required to create the webhook in Lemlist. |
  | `campaignId` | string | No | Optionally scope the webhook to a specific campaign |

  #### Output [#output-9]

  | Parameter | Type | Description |
  | - | - | - |
  | `_id` | string | Unique activity identifier |
  | `type` | string | Activity type (e.g., emailsSent, emailsReplied) |
  | `createdAt` | string | Activity creation timestamp (ISO 8601) |
  | `teamId` | string | Lemlist team identifier |
  | `leadId` | string | Lead identifier (only present for campaign activities) |
  | `campaignId` | string | Campaign identifier (only present for campaign activities) |
  | `campaignName` | string | Campaign name (only present for campaign activities) |
  | `email` | string | Lead email address |
  | `firstName` | string | Lead first name |
  | `lastName` | string | Lead last name |
  | `companyName` | string | Lead company name |
  | `linkedinUrl` | string | Lead LinkedIn profile URL |
  | `sequenceId` | string | Sequence identifier |
  | `sequenceStep` | number | Current step in the sequence (0-indexed) |
  | `totalSequenceStep` | number | Total number of steps in the sequence |
  | `isFirst` | boolean | Whether this is the first activity of this type for this step |
</ReferenceDetails>

### Lemlist LinkedIn Replied [#lemlist-linkedin-replied]

Trigger workflow when a lead replies to a LinkedIn message

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-7]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | Required to create the webhook in Lemlist. |
  | `campaignId` | string | No | Optionally scope the webhook to a specific campaign |

  #### Output [#output-10]

  | Parameter | Type | Description |
  | - | - | - |
  | `_id` | string | Unique activity identifier |
  | `type` | string | Activity type (e.g., emailsSent, emailsReplied) |
  | `createdAt` | string | Activity creation timestamp (ISO 8601) |
  | `teamId` | string | Lemlist team identifier |
  | `leadId` | string | Lead identifier (only present for campaign activities) |
  | `campaignId` | string | Campaign identifier (only present for campaign activities) |
  | `campaignName` | string | Campaign name (only present for campaign activities) |
  | `email` | string | Lead email address |
  | `firstName` | string | Lead first name |
  | `lastName` | string | Lead last name |
  | `companyName` | string | Lead company name |
  | `linkedinUrl` | string | Lead LinkedIn profile URL |
  | `sequenceId` | string | Sequence identifier |
  | `sequenceStep` | number | Current step in the sequence (0-indexed) |
  | `totalSequenceStep` | number | Total number of steps in the sequence |
  | `isFirst` | boolean | Whether this is the first activity of this type for this step |
  | `text` | string | LinkedIn message content |
</ReferenceDetails>

### Lemlist Webhook (All Events) [#lemlist-webhook-all-events]

Trigger workflow on any Lemlist webhook event

<ReferenceDetails label="Configuration and outputs">
  #### Configuration [#configuration-8]

  | Parameter | Type | Required | Description |
  | - | - | - | - |
  | `apiKey` | string | Yes | Required to create the webhook in Lemlist. |
  | `campaignId` | string | No | Optionally scope the webhook to a specific campaign |

  #### Output [#output-11]

  | Parameter | Type | Description |
  | - | - | - |
  | `_id` | string | Unique activity identifier |
  | `type` | string | Activity type (e.g., emailsSent, emailsReplied) |
  | `createdAt` | string | Activity creation timestamp (ISO 8601) |
  | `teamId` | string | Lemlist team identifier |
  | `leadId` | string | Lead identifier (only present for campaign activities) |
  | `campaignId` | string | Campaign identifier (only present for campaign activities) |
  | `campaignName` | string | Campaign name (only present for campaign activities) |
  | `email` | string | Lead email address |
  | `firstName` | string | Lead first name |
  | `lastName` | string | Lead last name |
  | `companyName` | string | Lead company name |
  | `linkedinUrl` | string | Lead LinkedIn profile URL |
  | `sequenceId` | string | Sequence identifier |
  | `sequenceStep` | number | Current step in the sequence (0-indexed) |
  | `totalSequenceStep` | number | Total number of steps in the sequence |
  | `isFirst` | boolean | Whether this is the first activity of this type for this step |
  | `sendUserId` | string | Sender user identifier |
  | `sendUserEmail` | string | Sender email address |
  | `sendUserName` | string | Sender display name |
  | `subject` | string | Email subject line |
  | `text` | string | Email body content (HTML) |
  | `messageId` | string | Email message ID (RFC 2822 format) |
  | `emailId` | string | Lemlist email identifier |
  | `clickedUrl` | string | URL that was clicked (for emailsClicked events) |
  | `errorMessage` | string | Error message (for bounce/failed events) |
</ReferenceDetails>
