KosmoKrator

sales

Lemlist CLI for AI Agents

Use the Lemlist CLI from KosmoKrator to call Lemlist tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 6 read 1 write Username and password auth

Lemlist CLI Setup

Lemlist can be configured headlessly with `kosmokrator integrations:configure lemlist`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure lemlist --set username="$LEMLIST_USERNAME" --set password="$LEMLIST_PASSWORD" --enable --read allow --write ask --json
kosmokrator integrations:doctor lemlist --json
kosmokrator integrations:status --json

Credentials

Authentication type: Username and password basic. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
username LEMLIST_USERNAME Text string yes Username
password LEMLIST_PASSWORD Secret secret yes API Key / Password
url LEMLIST_URL URL url no API URL

Call Lemlist Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call lemlist.lemlist_list_campaigns '{
  "status": "example_status",
  "limit": 1,
  "offset": 1
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:lemlist lemlist_list_campaigns '{
  "status": "example_status",
  "limit": 1,
  "offset": 1
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs lemlist --json
kosmo integrations:docs lemlist.lemlist_list_campaigns --json
kosmo integrations:schema lemlist.lemlist_list_campaigns --json
kosmo integrations:search "Lemlist" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Lemlist.

lemlist.lemlist_list_campaigns

Read read

List all outreach campaigns in Lemlist. Returns campaign IDs, names, statuses, and other metadata.

Parameters
status, limit, offset

Generic CLI call

kosmo integrations:call lemlist.lemlist_list_campaigns '{"status":"example_status","limit":1,"offset":1}' --json

Provider shortcut

kosmo integrations:lemlist lemlist_list_campaigns '{"status":"example_status","limit":1,"offset":1}' --json

lemlist.lemlist_get_campaign

Read read

Get details of a specific Lemlist campaign by ID. Returns the full campaign configuration and statistics.

Parameters
campaign_id

Generic CLI call

kosmo integrations:call lemlist.lemlist_get_campaign '{"campaign_id":"example_campaign_id"}' --json

Provider shortcut

kosmo integrations:lemlist lemlist_get_campaign '{"campaign_id":"example_campaign_id"}' --json

lemlist.lemlist_list_leads

Read read

List leads in a specific Lemlist campaign. Returns lead contact information, email status, and campaign progress.

Parameters
campaign_id, status, limit, offset

Generic CLI call

kosmo integrations:call lemlist.lemlist_list_leads '{"campaign_id":"example_campaign_id","status":"example_status","limit":1,"offset":1}' --json

Provider shortcut

kosmo integrations:lemlist lemlist_list_leads '{"campaign_id":"example_campaign_id","status":"example_status","limit":1,"offset":1}' --json

lemlist.lemlist_add_lead

Write write

Add a lead to a Lemlist campaign. The lead will be queued for outreach according to the campaign schedule.

Parameters
campaign_id, email, firstName, lastName, companyName, phone, linkedinUrl, variables

Generic CLI call

kosmo integrations:call lemlist.lemlist_add_lead '{"campaign_id":"example_campaign_id","email":"example_email","firstName":"example_firstName","lastName":"example_lastName","companyName":"example_companyName","phone":"example_phone","linkedinUrl":"example_linkedinUrl","variables":"example_variables"}' --json

Provider shortcut

kosmo integrations:lemlist lemlist_add_lead '{"campaign_id":"example_campaign_id","email":"example_email","firstName":"example_firstName","lastName":"example_lastName","companyName":"example_companyName","phone":"example_phone","linkedinUrl":"example_linkedinUrl","variables":"example_variables"}' --json

lemlist.lemlist_list_teams

Read read

List all teams in the Lemlist account. Returns team names, member lists, and configuration.

Parameters
none

Generic CLI call

kosmo integrations:call lemlist.lemlist_list_teams '{}' --json

Provider shortcut

kosmo integrations:lemlist lemlist_list_teams '{}' --json

lemlist.lemlist_list_subaccounts

Read read

List all sub-accounts in Lemlist. Returns sub-account names, statuses, and usage details.

Parameters
none

Generic CLI call

kosmo integrations:call lemlist.lemlist_list_subaccounts '{}' --json

Provider shortcut

kosmo integrations:lemlist lemlist_list_subaccounts '{}' --json

lemlist.lemlist_get_current_user

Read read

Get the profile of the currently authenticated Lemlist user. Returns name, email, plan, and account details.

Parameters
none

Generic CLI call

kosmo integrations:call lemlist.lemlist_get_current_user '{}' --json

Provider shortcut

kosmo integrations:lemlist lemlist_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

lemlist.lemlist_list_campaigns

List all outreach campaigns in Lemlist. Returns campaign IDs, names, statuses, and other metadata.

Operation
Read read
Schema command
kosmo integrations:schema lemlist.lemlist_list_campaigns --json
ParameterTypeRequiredDescription
status string no Filter by campaign status (e.g. "active", "draft", "paused", "completed").
limit integer no Maximum number of campaigns to return.
offset integer no Number of campaigns to skip for pagination.

lemlist.lemlist_get_campaign

Get details of a specific Lemlist campaign by ID. Returns the full campaign configuration and statistics.

Operation
Read read
Schema command
kosmo integrations:schema lemlist.lemlist_get_campaign --json
ParameterTypeRequiredDescription
campaign_id string yes The ID of the campaign to retrieve.

lemlist.lemlist_list_leads

List leads in a specific Lemlist campaign. Returns lead contact information, email status, and campaign progress.

Operation
Read read
Schema command
kosmo integrations:schema lemlist.lemlist_list_leads --json
ParameterTypeRequiredDescription
campaign_id string yes The ID of the campaign to list leads for.
status string no Filter by lead status (e.g. "interested", "notInterested", "bounced", "sent", "replied").
limit integer no Maximum number of leads to return.
offset integer no Number of leads to skip for pagination.

lemlist.lemlist_add_lead

Add a lead to a Lemlist campaign. The lead will be queued for outreach according to the campaign schedule.

Operation
Write write
Schema command
kosmo integrations:schema lemlist.lemlist_add_lead --json
ParameterTypeRequiredDescription
campaign_id string yes The ID of the campaign to add the lead to.
email string yes The lead's email address.
firstName string no The lead's first name.
lastName string no The lead's last name.
companyName string no The lead's company name.
phone string no The lead's phone number.
linkedinUrl string no The lead's LinkedIn profile URL.
variables object no Custom variables to use in campaign templates (key-value pairs).

lemlist.lemlist_list_teams

List all teams in the Lemlist account. Returns team names, member lists, and configuration.

Operation
Read read
Schema command
kosmo integrations:schema lemlist.lemlist_list_teams --json
ParameterTypeRequiredDescription
No parameters.

lemlist.lemlist_list_subaccounts

List all sub-accounts in Lemlist. Returns sub-account names, statuses, and usage details.

Operation
Read read
Schema command
kosmo integrations:schema lemlist.lemlist_list_subaccounts --json
ParameterTypeRequiredDescription
No parameters.

lemlist.lemlist_get_current_user

Get the profile of the currently authenticated Lemlist user. Returns name, email, plan, and account details.

Operation
Read read
Schema command
kosmo integrations:schema lemlist.lemlist_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.