Skip to main content
The entire lemlist API, in one command. Log in with your browser, run every endpoint from your terminal, and pipe clean JSON into jq, your scripts, or an AI agent — across all of your client accounts, from a single tool. No SDK to wire up. No key to paste. No boilerplate. Just lemlist.

Every account, one tool

Named profiles per client team. Switch with lemlist auth use, or override per call. Key-juggling becomes one word.

Log in with your browser

OAuth in a single command — tokens refresh themselves in the background. Or drop in an API key. Either way, you authenticate once.

Built for AI agents

JSON on stdout, stable exit codes, deterministic commands. Drive it from Claude Code or Cursor with no browser round-trip.

Never miss an endpoint

The command surface is generated from the live OpenAPI spec, so a newly-shipped endpoint works the same day — no upgrade, no wait.

Resilient by default

Transient failures (429, 5xx, network blips) retry automatically with exponential backoff — idempotent-aware, so a POST never replays into a double-created lead.

Install

Requires Node.js 20 or later. The published package is @lemlist-official/cli and exposes the lemlist binary.

Quick start

1

Log in

Opens your browser for OAuth and stores the tokens. No key to copy. See Authentication for API keys and multiple accounts.
2

Discover the API surface

Lists every endpoint from the live API catalog. This also populates the local cache the named subcommands are built from.
3

Call an endpoint

Use the generic api command for any endpoint, or a named subcommand for the common flows. See Commands.

CLI or MCP server?

Use both — they are two surfaces onto the same API. The MCP server is the conversational surface: ask your AI assistant in plain English. The CLI is the deterministic, scriptable surface: exact commands, machine-readable output, stable exit codes an agent or a cron job can branch on.

Good to know

The CLI wires your input to an API call and formats the response — that focus is deliberate. It holds no business logic, no local data store or sync engine, and no automation engine. Scheduled or event-driven flows stay in your own cron or agent layer; the CLI is the fast, reliable building block they call.
give us feedback on this page