by lemlist
Add a lead to a campaign
Creates a lead in a lemlist campaign from an email, name, company and custom variables, optionally finding or verifying their email first; it never updates an existing lead.
Updated Sep 29, 2026
add-lead-to-campaign.md
Add a lead to a campaign
Creates a lead in a lemlist campaign from an email, name, company and custom variables, optionally finding or verifying their email first; it never updates an existing lead.
Note: The campaign automates outreach to its leads: confirm it first. findEmail, verifyEmail, findPhone and linkedinEnrichment spend credits, and a lead already in the campaign is refused with 400 LEAD_ALREADY_IN_CAMPAIGN.
Set up
Use the first option your agent supports.
CLI (official)
Install the command and sign in with it, then confirm it runs.
npm install -g @lemlist-official/cli
lemlist --version
Run lemlist api POST /campaigns/{campaignId}/leads/.
API (official)
- Base URL: https://api.lemlist.com/api
- Endpoint:
POST /campaigns/{campaignId}/leads/ - Auth: send the header
Authorization: Basic $LEMLIST_API_KEY - Get a key: https://app.lemlist.com/settings/integrations
- Docs: https://developer.lemlist.com/api-reference/getting-started/authentication
Note: LEMLIST_API_KEY holds the base64 of :<api key>, an empty username and the key; 20 requests every 2 seconds per key.
Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.
Ways in
Workflows using Add a lead to a campaign
TContributed by thedogwiththedataonitEmail buyers at newly funded companiesFinds companies that just raised with People Data Labs, gets each buyer's email from Apollo, and queues an approved email in lemlist.
P
Al
TContributed by thedogwiththedataonitEmail companies whose job posts show they need your productFinds new job posts for roles you support with Exa, checks each for a real need or a competitor with Jev, and emails the hiring team.
E
T
H+1
TContributed by thedogwiththedataonitReopen closed-lost deals when something has changedFinds Salesforce deals lost months ago, checks who is still there and what changed, and queues an email to them in lemlist.
S
Al
TContributed by thedogwiththedataonitEmail new GitHub stargazers who fit your ideal customerFinds who recently starred your repo, keeps the people at companies you sell to, and queues a no-pitch thank-you email in lemlist.
G
Pl