lemlist Campaigns API
Campaign CRUD and lifecycle - create, update, duplicate, start, pause, validation statutes, stats, reports and asynchronous exports.
Operations 15
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which outreach campaigns do I have in lemlist right now?”
“Can I list only campaigns that are paused or archived?”
Tell an agent
List all my campaigns.
Show my campaigns with status {status}, newest first.
Ask an LLM
“How do I start a brand-new outreach campaign from scratch?”
“What do I need to provide to set up an empty campaign?”
Tell an agent
Create a new campaign called {name}.
Set up a fresh blank campaign.
Ask an LLM
“Where can I see the full details of a single campaign?”
“What settings and status does a specific campaign have?”
Tell an agent
Show me campaign {campaignId}.
Fetch the details of campaign {campaignId}.
Ask an LLM
“Can I make a campaign stop sending once a lead books a meeting?”
“How do I turn off open tracking on an existing campaign?”
Tell an agent
Rename campaign {campaignId} to {name}.
Set stop-on-reply to {stopOnEmailReplied} for campaign {campaignId}.
Ask an LLM
“How do I temporarily stop a campaign from sending?”
“Can I put an active sequence on hold?”
Tell an agent
Pause campaign {campaignId}.
Put campaign {campaignId} on hold now.
GET
/campaigns/{campaignId}/export/start
Start an export of campaign stats · Start an Export Campaign Stats
#
Ask an LLM
“How do I kick off an asynchronous export of a campaign's statistics?”
“What returns the export id I need before downloading campaign stats?”
Tell an agent
Start a stats export for campaign {campaignId}.
Begin exporting campaign {campaignId} statistics and give me the export id.
GET
/campaigns/{campaignId}/export/{exportId}/status
Check the status of a campaign export · Get Status Of Campaign Export
#
Ask an LLM
“Is my campaign stats export finished yet?”
“Where do I get the download link once a campaign export completes?”
Tell an agent
Check the status of export {exportId} for campaign {campaignId}.
Tell me if export {exportId} of campaign {campaignId} is ready to download.
Ask an LLM
“Can I pull a summary report across multiple campaigns at once?”
“Which report shows sent, opened and replied totals for a list of campaigns?”
Tell an agent
Get the campaign reports for {campaignIds}.
Show me the overall reports for all my campaigns.
PUT
/campaigns/{campaignId}/export/{exportId}/email/{email}
Email a campaign export to an address · Export Campaign Send Status By Email
#
Ask an LLM
“Can lemlist email me the stats file when a campaign export is done?”
“How do I have a finished campaign export sent to a teammate's inbox?”
Tell an agent
Send export {exportId} of campaign {campaignId} to {email} when it's ready.
Email the campaign {campaignId} export {exportId} to {email}.
Ask an LLM
“How do I download every lead in a campaign as a CSV?”
“Can I export only leads in a particular state, like interested?”
Tell an agent
Export the leads of campaign {campaignId} as {format}.
Export campaign {campaignId} leads whose last state is {state}.
Ask an LLM
“How do I launch a draft campaign so it starts sending?”
“Can I restart a campaign I paused earlier?”
Tell an agent
Start campaign {campaignId}.
Resume sending on paused campaign {campaignId}.
Ask an LLM
“What were a single campaign's open, click and reply numbers last month?”
“Can I break down one campaign's stats by A/B version or channel?”
Tell an agent
Get stats for campaign {campaignId} from {startDate} to {endDate}.
Show campaign {campaignId} stats for {channels} between {startDate} and {endDate}.
POST
/v2/campaigns/stats/batch
Get stats for up to 100 campaigns at once · Get Batch Campaign Stats
#
Ask an LLM
“How do I compare detailed performance stats for many campaigns in one request?”
“What's the limit on campaigns per batch stats call?”
Tell an agent
Get batch stats for campaigns {campaignIds} from {startDate} to {endDate}.
Compare campaigns {campaignIds} sent by {sendUser} between {startDate} and {endDate}.
Ask an LLM
“Can I copy an existing campaign to reuse its sequence?”
“What name does a duplicated campaign get if I don't pick one?”
Tell an agent
Duplicate campaign {campaignId}.
Make a copy of campaign {campaignId} named {name}.
GET
/campaigns/{campaignId}/statutes
Check a campaign for launch errors and warnings · Get Campaign Statutes
#
Ask an LLM
“Why can't my campaign launch, and what's blocking it?”
“Does my campaign have DNS or daily-limit warnings before I start it?”
Tell an agent
Check campaign {campaignId} for blocking errors and warnings.
Run the launch validation on campaign {campaignId}.