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

ActionWhat it does
Add lead to campaignAdd a lead to a lemlist campaign, creating the lead if it does not exist yet.
Add to unsubscribe listPut an email address, domain, LinkedIn URL or phone number on your team's unsubscribe list, so no lemlist campaign contacts it.
Delete lead from campaignDelete a lead from a campaign.
Enrich leadStart finding a lead's email, phone or LinkedIn details, or verify its email.
Enrich personStart finding anyone's email, phone or LinkedIn details, or verify an email, from an email, a LinkedIn URL, or a name and company.
Get activitiesRetrieve recent campaign activities such as emails sent, opened, clicked, replied, or bounced.
Get campaign statsGet a campaign's numbers between two dates: leads reached, opens, clicks, replies, bounces, interested leads, meetings booked, and each step's results.
Get enrichment resultRead what an enrichment found (the email, phone or LinkedIn details), or whether it's still running or failed.
Get leadLook up a single lead by email address, returning its profile and current campaign status.
Get teamGet your lemlist team's name and its members.
Get team creditsGet how many credits your lemlist team has left for finding and verifying emails, phones and LinkedIn details.
List campaignsList the campaigns in your lemlist account.
List unsubscribesList the email addresses, domains, LinkedIn URLs and phone numbers on your team's unsubscribe list, newest first.
Remove from unsubscribe listTake an email address, domain, LinkedIn URL or phone number off your team's unsubscribe list, so campaigns can contact it again.
Unsubscribe lead from campaignStop 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 IDcampaign_idtextRequired
Id of the campaign to add the lead to, as returned by List campaigns (e.g. cam_aaWL92T22Sei3Bz6v).
EmailemailtextRequired
The lead's email address.
First namefirst_nametext
The lead's first name.
Last namelast_nametext
The lead's last name.
Company namecompany_nametext
The lead's company name.
Phonephonetext
The lead's phone number.
LinkedIn URLlinkedin_urltext
URL of the lead's LinkedIn profile.
Company domaincompany_domaintext
Domain of the lead's company (e.g. acme.com).
Icebreakericebreakertext
Personalized opening line, usable as the {{icebreaker}} variable in the campaign's emails.
Skip if already in another campaigndeduplicatetrue/false
When true, the lead is not added if the same email is already present in another campaign.
Verify email firstverify_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 phonevaluetextRequired
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 IDcampaign_idtextRequired
Id of the campaign to remove the lead from.
EmailemailtextRequired
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 IDlead_idtextRequired
The lead's id (lea_...), from 'Get lead'.
Find emailfind_emailtrue/false
Find the person's work email address.
Verify emailverify_emailtrue/false
Check whether the email address can receive mail.
LinkedIn detailslinkedin_enrichmenttrue/false
Fill in details from the person's LinkedIn profile.
Find phonefind_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

Emailemailtext
The person's email address, if known.
LinkedIn URLlinkedin_urltext
The person's LinkedIn profile URL, if known.
First namefirst_nametext
The person's first name.
Last namelast_nametext
The person's last name.
Company namecompany_nametext
Where the person works.
Company domaincompany_domaintext
The website of where they work, such as acme.com.
Job titlejob_titletext
Their job title, which helps find the right person.
Find emailfind_emailtrue/false
Find the person's work email address.
Verify emailverify_emailtrue/false
Check whether the email address can receive mail.
LinkedIn detailslinkedin_enrichmenttrue/false
Fill in details from the person's LinkedIn profile.
Find phonefind_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 typetypetext
Optional. Only return activities of this type, e.g. emailsSent, emailsOpened, emailsClicked, emailsReplied, or emailsBounced.
Campaign IDcampaign_idtext
Optional. Only return activities for this campaign.
Limitlimitnumber
How many activities to return (1-100).From 1 to 100. Default: 100.
Offsetoffsetnumber
How many activities to skip, for pagination.At least 0. Default: 0.
First occurrence onlyis_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 IDcampaign_idtextRequired
Id of the campaign, as returned by List campaigns (e.g. cam_aaWL92T22Sei3Bz6v).
Fromstart_datedate and timeRequired
Count what happened from this date and time.
Toend_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 IDenrichment_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

EmailemailtextRequired
Email address of the lead to look up.
Campaign IDcampaign_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

Limitlimitnumber
How many campaigns to return (1-100).From 1 to 100. Default: 100.
Offsetoffsetnumber
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

Limitlimitnumber
How many to return (1-100).From 1 to 100. Default: 100.
Offsetoffsetnumber
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 phonevaluetextRequired
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 IDcampaign_idtextRequired
Id of the campaign, as returned by List campaigns (e.g. cam_aaWL92T22Sei3Bz6v).
EmailemailtextRequired
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
}

On this page