api_key header; a different spelling is rejected.
The plugin covers Lusha’s whole public V3 API (68 operations): search, enrich and search-and-enrich, prospecting with filters, lookalikes, recommendations, buying groups, contact and company signals, signal scores, ICP fit scores, website visits, contact and company tables, webhook subscriptions and their audit logs, call conversations, and account usage. The two operations that return the account’s webhook signing secret are left out: set the secret in Lusha and store it in Corsair as the webhook signature.
Things to know before you call:
- Most reads cost credits. Searches, enrichment, prospecting, lookalikes, recommendations, buying groups, signals, scores, website visits, table exports and conversation exports charge credits from your account pool per result, per revealed field or per row; each operation’s description says how. They only spend credits, so they are marked
read, like the free reads. Operations that start a paid job or charge as they add data (contactTables.runColumn,companyTables.runColumn,companyTables.addEntities,subscriptions.create) and operations that can’t be undone (deletes and removes) are markeddestructive, so Corsair asks before running them. Filter lists, signal types, table setup, subscription reads, audit logs,account.getAccountUsageand the job poll are free. When the account runs out, Lusha answers HTTP 402Insufficient credits for this operation; the plugin does not retry it. Lusha’s free plan includes a small monthly credit allowance; useful volume needs a paid plan. - Search first, enrich second.
person.searchContactsandcompany.searchCompaniesmatch records by email, LinkedIn URL, name plus company, or domain, and return previews that say which data points exist (has) and what revealing them costs (canReveal).person.enrichContactsandcompany.enrichCompaniestake ids from those previews and return the full records with emails or phones (contacts) and premium firmographics (companies). - Enrichment can continue in the background. A contact enrich call may answer with
status: 'partial'and ajob; polljobs.getContactsEnrichJobwith that job id until it reportscomplete(itscontactsmerge into the ones you already have, byid),expiredorfailed. The poll is free. - Rate limits are per account. The default window is 25 requests per second,
account.getAccountUsageis capped at 5 requests per minute and the webhook API at 100 per minute. A 429 is retried three times with backoff (Lusha sends noRetry-Afterheader), except one withx-daily-requests-left: 0: the daily request quota is used up, so it fails at once. A 5xx or dropped connection is retried only on free reads, because a charged call may already have run. - Ids are Lusha’s own strings (for example
4389064654), returned asidon every search result. - Webhooks.
subscriptions.createsubscribes contacts or companies to signals (each delivered signal is charged);subscriptions.createOptOutsends contact opt-outs. Point them at your Corsair webhook URL. Deliveries arrive assignals.receivedandoptOuts.received, are checked againstX-Lusha-Signature(HMAC-SHA256 oftimestamp.bodywith the account webhook secret) and answered with the{ received, timestamp, webhookId }acknowledgement Lusha requires. An opt-out lists the emails and phone numbers you must remove from your own systems.
- 68 typed API operations
- 2 incoming webhook event types
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the Lusha API key before the first call: More: API Key
pnpm corsair setup --plugin=lusha --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
Read remaining credits and plan limitscompanyTables.addEntities
Webhooks
This plugin registers 2 webhook event types. Configure the provider to POST to your Corsair HTTP handler, then usewebhookHooks on the plugin factory.
See Webhooks for every event path and payload shape, and Webhooks concept for routing.
What’s next
API reference
Every
lusha.api.* operation with input and output types.Webhooks
Event paths, payloads, and
webhookHooks examples.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.