Mandala
Tools

Lemlist

Manage outreach activities, leads, and send emails via Lemlist

Usage Instructions

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

Tools

lemlist_get_activities

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

Input

ParameterTypeRequiredDescription
apiKeystringYesLemlist API key
typestringNoFilter by activity type (e.g., emailOpened, emailClicked, emailReplied, paused)
campaignIdstringNoFilter by campaign ID (e.g., "cam_abc123def456")
leadIdstringNoFilter by lead ID (e.g., "lea_abc123def456")
isFirstbooleanNoFilter for first activity only
limitnumberNoNumber of results per request (e.g., 50). Max 100, default 100
offsetnumberNoNumber of records to skip for pagination (e.g., 0, 100, 200)

Output

ParameterTypeDescription
activitiesarrayList of activities
countnumberNumber of activities returned

lemlist_get_lead

Retrieves lead information by email address or lead ID.

Input

ParameterTypeRequiredDescription
apiKeystringYesLemlist API key
leadIdentifierstringYesLead email address (e.g., "john@example.com") or lead ID (e.g., "lea_abc123def456")

Output

ParameterTypeDescription
_idstringLead ID
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringCompany name
jobTitlestringJob title
companyDomainstringCompany domain
isPausedbooleanWhether the lead is paused
campaignIdstringCampaign ID the lead belongs to
contactIdstringContact ID
emailStatusstringEmail deliverability status

lemlist_send_email

Sends an email to a contact through the Lemlist inbox.

Input

ParameterTypeRequiredDescription
apiKeystringYesLemlist API key
sendUserIdstringYesIdentifier for the user sending the message (e.g., "usr_abc123def456")
sendUserEmailstringYesEmail address of the sender (e.g., "sales@company.com")
sendUserMailboxIdstringYesMailbox identifier for the sender (e.g., "mbx_abc123def456")
contactIdstringYesRecipient contact identifier (e.g., "con_abc123def456")
leadIdstringYesAssociated lead identifier (e.g., "lea_abc123def456")
subjectstringYesEmail subject line
messagestringYesEmail message body in HTML format
ccjsonNoArray of CC email addresses

Output

ParameterTypeDescription
okbooleanWhether the email was sent successfully

Triggers

lemlist_email_replied

Trigger workflow when a lead replies to an email

Output

ParameterTypeDescription
_idstringUnique activity identifier
typestringActivity type (e.g., emailsSent, emailsReplied)
createdAtstringActivity creation timestamp (ISO 8601)
teamIdstringLemlist team identifier
leadIdstringLead identifier (only present for campaign activities)
campaignIdstringCampaign identifier (only present for campaign activities)
campaignNamestringCampaign name (only present for campaign activities)
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringLead company name
linkedinUrlstringLead LinkedIn profile URL
sequenceIdstringSequence identifier
sequenceStepnumberCurrent step in the sequence (0-indexed)
totalSequenceStepnumberTotal number of steps in the sequence
isFirstbooleanWhether this is the first activity of this type for this step
sendUserIdstringSender user identifier
sendUserEmailstringSender email address
sendUserNamestringSender display name
subjectstringEmail subject line
textstringEmail body content (HTML)
messageIdstringEmail message ID (RFC 2822 format)
emailIdstringLemlist email identifier

lemlist_linkedin_replied

Trigger workflow when a lead replies to a LinkedIn message

Output

ParameterTypeDescription
_idstringUnique activity identifier
typestringActivity type (e.g., emailsSent, emailsReplied)
createdAtstringActivity creation timestamp (ISO 8601)
teamIdstringLemlist team identifier
leadIdstringLead identifier (only present for campaign activities)
campaignIdstringCampaign identifier (only present for campaign activities)
campaignNamestringCampaign name (only present for campaign activities)
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringLead company name
linkedinUrlstringLead LinkedIn profile URL
sequenceIdstringSequence identifier
sequenceStepnumberCurrent step in the sequence (0-indexed)
totalSequenceStepnumberTotal number of steps in the sequence
isFirstbooleanWhether this is the first activity of this type for this step
textstringLinkedIn message content

lemlist_interested

Trigger workflow when a lead is marked as interested

Output

ParameterTypeDescription
_idstringUnique activity identifier
typestringActivity type (e.g., emailsSent, emailsReplied)
createdAtstringActivity creation timestamp (ISO 8601)
teamIdstringLemlist team identifier
leadIdstringLead identifier (only present for campaign activities)
campaignIdstringCampaign identifier (only present for campaign activities)
campaignNamestringCampaign name (only present for campaign activities)
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringLead company name
linkedinUrlstringLead LinkedIn profile URL
sequenceIdstringSequence identifier
sequenceStepnumberCurrent step in the sequence (0-indexed)
totalSequenceStepnumberTotal number of steps in the sequence
isFirstbooleanWhether this is the first activity of this type for this step

lemlist_not_interested

Trigger workflow when a lead is marked as not interested

Output

ParameterTypeDescription
_idstringUnique activity identifier
typestringActivity type (e.g., emailsSent, emailsReplied)
createdAtstringActivity creation timestamp (ISO 8601)
teamIdstringLemlist team identifier
leadIdstringLead identifier (only present for campaign activities)
campaignIdstringCampaign identifier (only present for campaign activities)
campaignNamestringCampaign name (only present for campaign activities)
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringLead company name
linkedinUrlstringLead LinkedIn profile URL
sequenceIdstringSequence identifier
sequenceStepnumberCurrent step in the sequence (0-indexed)
totalSequenceStepnumberTotal number of steps in the sequence
isFirstbooleanWhether this is the first activity of this type for this step

lemlist_email_opened

Trigger workflow when a lead opens an email

Output

ParameterTypeDescription
_idstringUnique activity identifier
typestringActivity type (e.g., emailsSent, emailsReplied)
createdAtstringActivity creation timestamp (ISO 8601)
teamIdstringLemlist team identifier
leadIdstringLead identifier (only present for campaign activities)
campaignIdstringCampaign identifier (only present for campaign activities)
campaignNamestringCampaign name (only present for campaign activities)
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringLead company name
linkedinUrlstringLead LinkedIn profile URL
sequenceIdstringSequence identifier
sequenceStepnumberCurrent step in the sequence (0-indexed)
totalSequenceStepnumberTotal number of steps in the sequence
isFirstbooleanWhether this is the first activity of this type for this step
sendUserIdstringSender user identifier
sendUserEmailstringSender email address
sendUserNamestringSender display name
messageIdstringEmail message ID that was opened

lemlist_email_clicked

Trigger workflow when a lead clicks a link in an email

Output

ParameterTypeDescription
_idstringUnique activity identifier
typestringActivity type (e.g., emailsSent, emailsReplied)
createdAtstringActivity creation timestamp (ISO 8601)
teamIdstringLemlist team identifier
leadIdstringLead identifier (only present for campaign activities)
campaignIdstringCampaign identifier (only present for campaign activities)
campaignNamestringCampaign name (only present for campaign activities)
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringLead company name
linkedinUrlstringLead LinkedIn profile URL
sequenceIdstringSequence identifier
sequenceStepnumberCurrent step in the sequence (0-indexed)
totalSequenceStepnumberTotal number of steps in the sequence
isFirstbooleanWhether this is the first activity of this type for this step
sendUserIdstringSender user identifier
sendUserEmailstringSender email address
sendUserNamestringSender display name
messageIdstringEmail message ID containing the clicked link
clickedUrlstringURL that was clicked

lemlist_email_bounced

Trigger workflow when an email bounces

Output

ParameterTypeDescription
_idstringUnique activity identifier
typestringActivity type (e.g., emailsSent, emailsReplied)
createdAtstringActivity creation timestamp (ISO 8601)
teamIdstringLemlist team identifier
leadIdstringLead identifier (only present for campaign activities)
campaignIdstringCampaign identifier (only present for campaign activities)
campaignNamestringCampaign name (only present for campaign activities)
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringLead company name
linkedinUrlstringLead LinkedIn profile URL
sequenceIdstringSequence identifier
sequenceStepnumberCurrent step in the sequence (0-indexed)
totalSequenceStepnumberTotal number of steps in the sequence
isFirstbooleanWhether this is the first activity of this type for this step
sendUserIdstringSender user identifier
sendUserEmailstringSender email address
sendUserNamestringSender display name
messageIdstringEmail message ID that bounced
errorMessagestringBounce error message

lemlist_email_sent

Trigger workflow when an email is sent

Output

ParameterTypeDescription
_idstringUnique activity identifier
typestringActivity type (e.g., emailsSent, emailsReplied)
createdAtstringActivity creation timestamp (ISO 8601)
teamIdstringLemlist team identifier
leadIdstringLead identifier (only present for campaign activities)
campaignIdstringCampaign identifier (only present for campaign activities)
campaignNamestringCampaign name (only present for campaign activities)
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringLead company name
linkedinUrlstringLead LinkedIn profile URL
sequenceIdstringSequence identifier
sequenceStepnumberCurrent step in the sequence (0-indexed)
totalSequenceStepnumberTotal number of steps in the sequence
isFirstbooleanWhether this is the first activity of this type for this step
sendUserIdstringSender user identifier
sendUserEmailstringSender email address
sendUserNamestringSender display name
subjectstringEmail subject line
textstringEmail body content (HTML)
messageIdstringEmail message ID (RFC 2822 format)
emailIdstringLemlist email identifier

lemlist_webhook

Trigger workflow on any Lemlist webhook event

Output

ParameterTypeDescription
_idstringUnique activity identifier
typestringActivity type (e.g., emailsSent, emailsReplied)
createdAtstringActivity creation timestamp (ISO 8601)
teamIdstringLemlist team identifier
leadIdstringLead identifier (only present for campaign activities)
campaignIdstringCampaign identifier (only present for campaign activities)
campaignNamestringCampaign name (only present for campaign activities)
emailstringLead email address
firstNamestringLead first name
lastNamestringLead last name
companyNamestringLead company name
linkedinUrlstringLead LinkedIn profile URL
sequenceIdstringSequence identifier
sequenceStepnumberCurrent step in the sequence (0-indexed)
totalSequenceStepnumberTotal number of steps in the sequence
isFirstbooleanWhether this is the first activity of this type for this step
sendUserIdstringSender user identifier
sendUserEmailstringSender email address
sendUserNamestringSender display name
subjectstringEmail subject line
textstringEmail body content (HTML)
messageIdstringEmail message ID (RFC 2822 format)
emailIdstringLemlist email identifier
clickedUrlstringURL that was clicked (for emailsClicked events)
errorMessagestringError message (for bounce/failed events)

Notes

  • Category: tools
  • Type: lemlist
Lemlist