lemlist
App · Email Marketing · 15 actions
Automate lemlist cold outreach: campaigns and their stats, adding, unsubscribing and removing leads, the unsubscribe list, finding emails and phones, and engagement activities, with an API key.
Actions
| Action | What it does |
|---|---|
| Add lead to campaign | Add a lead to a lemlist campaign, creating the lead if it does not exist yet. |
| Add to unsubscribe list | Put an email address, domain, LinkedIn URL or phone number on your team's unsubscribe list, so no lemlist campaign contacts it. |
| Delete lead from campaign | Delete a lead from a campaign. |
| Enrich lead | Start finding a lead's email, phone or LinkedIn details, or verify its email. |
| Enrich person | Start finding anyone's email, phone or LinkedIn details, or verify an email, from an email, a LinkedIn URL, or a name and company. |
| Get activities | Retrieve recent campaign activities such as emails sent, opened, clicked, replied, or bounced. |
| Get campaign stats | Get a campaign's numbers between two dates: leads reached, opens, clicks, replies, bounces, interested leads, meetings booked, and each step's results. |
| Get enrichment result | Read what an enrichment found (the email, phone or LinkedIn details), or whether it's still running or failed. |
| Get lead | Look up a single lead by email address, returning its profile and current campaign status. |
| Get team | Get your lemlist team's name and its members. |
| Get team credits | Get how many credits your lemlist team has left for finding and verifying emails, phones and LinkedIn details. |
| List campaigns | List the campaigns in your lemlist account. |
| List unsubscribes | List the email addresses, domains, LinkedIn URLs and phone numbers on your team's unsubscribe list, newest first. |
| Remove from unsubscribe list | Take an email address, domain, LinkedIn URL or phone number off your team's unsubscribe list, so campaigns can contact it again. |
| Unsubscribe lead from campaign | Stop a campaign's remaining steps for a lead. |
Add lead to campaign
Add a lead to a lemlist campaign, creating the lead if it does not exist yet. The lead enters the campaign's sequence and starts receiving its steps.
Inputs
- Campaign ID
campaign_idtextRequired - Id of the campaign to add the lead to, as returned by List campaigns (e.g. cam_aaWL92T22Sei3Bz6v).
- Email
emailtextRequired - The lead's email address.
- First name
first_nametext - The lead's first name.
- Last name
last_nametext - The lead's last name.
- Company name
company_nametext - The lead's company name.
- Phone
phonetext - The lead's phone number.
- LinkedIn URL
linkedin_urltext - URL of the lead's LinkedIn profile.
- Company domain
company_domaintext - Domain of the lead's company (e.g. acme.com).
- Icebreaker
icebreakertext - Personalized opening line, usable as the {{icebreaker}} variable in the campaign's emails.
- Skip if already in another campaign
deduplicatetrue/false - When true, the lead is not added if the same email is already present in another campaign.
- Verify email first
verify_emailtrue/false - When true, lemlist verifies the email address before adding the lead. This uses lemlist credits.
Outputs
_idtext- lemlist lead id
campaignIdtext- Id of the campaign the lead belongs to
campaignNametext- Name of the campaign the lead was added to
companyNametext- The lead's company
emailtext- The lead's email address
firstNametext- The lead's first name
isPausedtrue/false- Whether the lead is currently paused
lastNametext- The lead's last name
Example output
{
"_id": "lea_aaNfSAHJoa4gj86Px",
"campaignId": "cam_aaWL92T22Sei3Bz6v",
"campaignName": "Q3 Outreach",
"companyName": "Acme",
"email": "jane@acme.com",
"firstName": "Jane",
"isPaused": false,
"lastName": "Doe"
}Add to unsubscribe list
Put an email address, domain, LinkedIn URL or phone number on your team's unsubscribe list, so no lemlist campaign contacts it. Already on the list is fine.
Inputs
- Email, domain, LinkedIn URL or phone
valuetextRequired - What to match: an email address (jane@acme.com), a whole domain (acme.com), a LinkedIn profile URL or a phone number.
Outputs
_idtext- lemlist's id for the entry on the unsubscribe list
createdAttext- When it was added
sourcetext- Why it's there: api, user (added by hand), lead (the person unsubscribed), bounced or abuse
valuetext- The email, domain, LinkedIn URL or phone number
Example output
{
"_id": "uns_ZmzP7K61EMIT9fBSj",
"createdAt": "2026-07-20T14:56:39.172Z",
"source": "api",
"value": "jane@acme.com"
}Delete lead from campaign
Delete a lead from a campaign. This removes the lead and its statistics from that campaign and cannot be undone.
Inputs
- Campaign ID
campaign_idtextRequired - Id of the campaign to remove the lead from.
- Email
emailtextRequired - Email address of the lead to delete.
Outputs
_idtext- Deleted lead id
deletedtrue/false- Whether the lead was deleted
emailtext- Email of the deleted lead
Example output
{
"_id": "lea_aaNfSAHJoa4gj86Px",
"deleted": true,
"email": "jane@acme.com"
}Enrich lead
Start finding a lead's email, phone or LinkedIn details, or verify its email. Uses your lemlist credits. The results come a little later: read them with 'Get enrichment result'.
Inputs
- Lead ID
lead_idtextRequired - The lead's id (lea_...), from 'Get lead'.
- Find email
find_emailtrue/false - Find the person's work email address.
- Verify email
verify_emailtrue/false - Check whether the email address can receive mail.
- LinkedIn details
linkedin_enrichmenttrue/false - Fill in details from the person's LinkedIn profile.
- Find phone
find_phonetrue/false - Find the person's phone number.
Outputs
enrichment_idtext- The enrichment's id. Give it to 'Get enrichment result' to read what it found.
Example output
{
"enrichment_id": "enr_ExampleK1l2M3n4O5"
}Enrich person
Start finding anyone's email, phone or LinkedIn details, or verify an email, from an email, a LinkedIn URL, or a name and company. Uses your lemlist credits every time, even for someone done before. Read the results with 'Get enrichment result'.
Inputs
- Email
emailtext - The person's email address, if known.
- LinkedIn URL
linkedin_urltext - The person's LinkedIn profile URL, if known.
- First name
first_nametext - The person's first name.
- Last name
last_nametext - The person's last name.
- Company name
company_nametext - Where the person works.
- Company domain
company_domaintext - The website of where they work, such as acme.com.
- Job title
job_titletext - Their job title, which helps find the right person.
- Find email
find_emailtrue/false - Find the person's work email address.
- Verify email
verify_emailtrue/false - Check whether the email address can receive mail.
- LinkedIn details
linkedin_enrichmenttrue/false - Fill in details from the person's LinkedIn profile.
- Find phone
find_phonetrue/false - Find the person's phone number.
Outputs
enrichment_idtext- The enrichment's id. Give it to 'Get enrichment result' to read what it found.
Example output
{
"enrichment_id": "enr_ExampleA1b2C3d4E5"
}Get activities
Retrieve recent campaign activities such as emails sent, opened, clicked, replied, or bounced. Useful for reporting and for triggering follow-up automations.
Inputs
- Activity type
typetext - Optional. Only return activities of this type, e.g. emailsSent, emailsOpened, emailsClicked, emailsReplied, or emailsBounced.
- Campaign ID
campaign_idtext - Optional. Only return activities for this campaign.
- Limit
limitnumber - How many activities to return (1-100).From 1 to 100. Default:
100. - Offset
offsetnumber - How many activities to skip, for pagination.At least 0. Default:
0. - First occurrence only
is_firsttrue/false - When true, only the first time each activity happened for a lead is returned.
Outputs
activitieslist- Recent activities
Example output
{
"activities": [
{
"_id": "act_aaXiFy3Y7BNSuYwDr",
"campaignId": "cam_aaWL92T22Sei3Bz6v",
"campaignName": "Q3 Outreach",
"createdAt": "2026-07-20T14:56:39.172Z",
"leadEmail": "jane@acme.com",
"type": "emailsOpened"
}
]
}Get campaign stats
Get a campaign's numbers between two dates: leads reached, opens, clicks, replies, bounces, interested leads, meetings booked, and each step's results.
Inputs
- Campaign ID
campaign_idtextRequired - Id of the campaign, as returned by List campaigns (e.g. cam_aaWL92T22Sei3Bz6v).
- From
start_datedate and timeRequired - Count what happened from this date and time.
- To
end_datedate and timeRequired - Count what happened up to this date and time.
Outputs
campaign_idtext- The campaign's id
clickednumber- Messages with a click
deliverednumber- Messages delivered
invitationAcceptednumber- LinkedIn invitations accepted
meetingBookednumber- Meetings booked
messagesBouncednumber- Messages that bounced
messagesNotSentnumber- Messages that failed to send
messagesSentnumber- Messages sent
nbLeadsnumber- Leads in the campaign
nbLeadsAnswerednumber- Leads who answered
nbLeadsInteractednumber- Leads who clicked or replied
nbLeadsInterestednumber- Leads marked interested
nbLeadsInterruptednumber- Leads whose steps stopped early
nbLeadsLaunchednumber- Leads the campaign has started on
nbLeadsNotInterestednumber- Leads marked not interested
nbLeadsOpenednumber- Leads who opened a message
nbLeadsReachednumber- Leads reached
nbLeadsUnsubscribednumber- Leads who unsubscribed
openednumber- Messages opened
repliednumber- Messages replied to
stepslist- Each step's numbers, as lemlist gives them
Example output
{
"campaign_id": "cam_aaWL92T22Sei3Bz6v",
"clicked": 0,
"delivered": 0,
"invitationAccepted": 0,
"meetingBooked": 0,
"messagesBounced": 0,
"messagesNotSent": 0,
"messagesSent": 240,
"nbLeads": 120,
"nbLeadsAnswered": 0,
"nbLeadsInteracted": 0,
"nbLeadsInterested": 0,
"nbLeadsInterrupted": 0,
"nbLeadsLaunched": 0,
"nbLeadsNotInterested": 0,
"nbLeadsOpened": 0,
"nbLeadsReached": 0,
"nbLeadsUnsubscribed": 0,
"opened": 96,
"replied": 12,
"steps": [
{
"index": 0,
"sent": 120,
"sequenceStep": 0
}
]
}Get enrichment result
Read what an enrichment found (the email, phone or LinkedIn details), or whether it's still running or failed.
Inputs
- Enrichment ID
enrichment_idtextRequired - The id 'Enrich lead' or 'Enrich person' gave (enr_...).
Outputs
dataobject- What it found: email (with email and status), phone (with phone), LinkedIn details
enrichment_idtext- The enrichment's id
error_codetext- Why it failed, when it did
error_reasontext- The failure, in words
failed_workflowslist- What was asked for and ended with nothing
inputobject- What lemlist was given to search with
statustext- done, in-progress or failed
Example output
{
"data": {
"email": {
"email": "jane@acme.com",
"notFound": false,
"status": "deliverable"
}
},
"enrichment_id": "enr_ExampleA1b2C3d4E5",
"error_code": "",
"error_reason": "",
"failed_workflows": [],
"input": {
"companyDomain": "acme.com",
"firstName": "Jane"
},
"status": "done"
}Get lead
Look up a single lead by email address, returning its profile and current campaign status.
Inputs
- Email
emailtextRequired - Email address of the lead to look up.
- Campaign ID
campaign_idtext - Optional. Restrict the lookup to this campaign id.
Outputs
_idtext- lemlist lead id
campaignIdtext- Id of the campaign the lead belongs to
companyNametext- The lead's company
emailtext- The lead's email address
firstNametext- The lead's first name
isPausedtrue/false- Whether the lead is currently paused
lastNametext- The lead's last name
Example output
{
"_id": "lea_aaNfSAHJoa4gj86Px",
"campaignId": "cam_aaWL92T22Sei3Bz6v",
"companyName": "Acme",
"email": "jane@acme.com",
"firstName": "Jane",
"isPaused": false,
"lastName": "Doe"
}Get team
Get your lemlist team's name and its members.
Inputs
None.
Outputs
_idtext- The team's id
createdAttext- When the team was created
createdBytext- Id of the member who created the team
nametext- The team's name
userIdslist- Ids of the team's members
userslist- The team's members
Example output
{
"_id": "tea_b4rMsi2trBhahaha",
"createdAt": "2024-02-22T08:52:30.926Z",
"createdBy": "usr_4YGm9ez7gMdyhahaha",
"name": "Acme sales",
"userIds": [
"usr_4YGm9ez7gMdyhahaha"
],
"users": [
{
"email": "jane@acme.com",
"name": "Jane Doe",
"role": "admin",
"userId": "usr_4YGm9ez7gMdyhahaha"
}
]
}Get team credits
Get how many credits your lemlist team has left for finding and verifying emails, phones and LinkedIn details.
Inputs
None.
Outputs
creditsnumber- Credits left
remainingobject- Where the credits left come from
Example output
{
"credits": 100,
"remaining": {
"freemium": 0,
"gifted": 10,
"paid": 10,
"subscription": 80,
"total": 100
}
}List campaigns
List the campaigns in your lemlist account. Returns each campaign's id, which the lead actions use as 'campaign_id'.
Inputs
- Limit
limitnumber - How many campaigns to return (1-100).From 1 to 100. Default:
100. - Offset
offsetnumber - How many campaigns to skip, for pagination.At least 0. Default:
0.
Outputs
campaignslist- Campaigns in the account
Example output
{
"campaigns": [
{
"_id": "cam_aaWL92T22Sei3Bz6v",
"id": "cam_aaWL92T22Sei3Bz6v",
"labels": [
"outbound"
],
"name": "Q3 Outreach"
}
]
}List unsubscribes
List the email addresses, domains, LinkedIn URLs and phone numbers on your team's unsubscribe list, newest first.
Inputs
- Limit
limitnumber - How many to return (1-100).From 1 to 100. Default:
100. - Offset
offsetnumber - How many to skip, to see the next ones.At least 0. Default:
0.
Outputs
countnumber- How many were returned
unsubscribeslist- What's on the unsubscribe list
Example output
{
"count": 1,
"unsubscribes": [
{
"_id": "uns_ZmzP7K61EMIT9fBSj",
"createdAt": "2026-07-20T14:56:39.172Z",
"source": "api",
"value": "jane@acme.com"
}
]
}Remove from unsubscribe list
Take an email address, domain, LinkedIn URL or phone number off your team's unsubscribe list, so campaigns can contact it again. lemlist refuses for someone who unsubscribed themselves or reported an email as abuse.
Inputs
- Email, domain, LinkedIn URL or phone
valuetextRequired - What to match: an email address (jane@acme.com), a whole domain (acme.com), a LinkedIn profile URL or a phone number.
Outputs
removedtrue/false- Always true once it's off the list
valuetext- What was taken off the list
Example output
{
"removed": true,
"value": "jane@acme.com"
}Unsubscribe lead from campaign
Stop a campaign's remaining steps for a lead. Unlike 'Delete lead from campaign', the lead and its history stay in the campaign.
Inputs
- Campaign ID
campaign_idtextRequired - Id of the campaign, as returned by List campaigns (e.g. cam_aaWL92T22Sei3Bz6v).
- Email
emailtextRequired - Email address of the lead to unsubscribe.
Outputs
_idtext- The lead's id
campaignIdtext- The campaign's id
contactIdtext- lemlist's id for the person as a contact
emailtext- The lead's email address
isPausedtrue/false- Whether the lead is paused
unsubscribedtrue/false- Always true once it's done
Example output
{
"_id": "lea_aaNfSAHJoa4gj86Px",
"campaignId": "cam_aaWL92T22Sei3Bz6v",
"contactId": "ctc_joap8q9YGlV45Ypc6",
"email": "jane@acme.com",
"isPaused": false,
"unsubscribed": true
}