Integration guide
LeadMerlin + Instantly
Connect Instantly with an API v2 key, pick a campaign, and every finished search can drop its leads straight into that campaign. Each lead carries the owner first and last name, company, phone and website, plus custom variables for city, rating, reviews, tech stack and phone line type. Invalid emails are never sent, and by default only verified and catch-all addresses go in.
Before you start
- An Instantly workspace on a paid plan (the API needs one) and at least one campaign.
- A LeadMerlin account (100 free leads, no card).
Setup
- 1
Create an API key in Instantly
In Instantly, open Settings → Integrations → API keys and create an API v2 key with the scopes campaigns:read and leads:create (all:all also works).
- 2
Connect it in LeadMerlin
Paste the key on the Integrations page of the dashboard, or call the API. The key is tested with one Instantly call before it is saved, and stored encrypted.
PUT https://api.leadmerlin.com/api/v2/integrations/instantly Header: x-api-key: lm_your_key {"token":"your_instantly_key"} - 3
Pick a campaign and an email policy
List the campaigns in the workspace and save the one leads should go to. email_policy decides which email statuses are sent: verified, verified_catch_all (default) or include_unverified.
GET https://api.leadmerlin.com/api/v2/integrations/instantly/campaigns PUT https://api.leadmerlin.com/api/v2/integrations/instantly {"campaign_id":"019a…","email_policy":"verified_catch_all","auto_push":true} - 4
Push a search
Click the Instantly button above the search results, or call push for any finished job. With auto_push on, every completed search is sent on its own.
POST https://api.leadmerlin.com/api/v2/jobs/{job_id}/push {"provider":"instantly"} - 5
Check the result
GET /v2/integrations shows the last push: how many leads were added, how many were skipped and why (no email, email status, already in campaign, blocklisted), and up to 25 leads Instantly rejected with its reason.
Location codes in these examples are placeholders — always look yours up with GET /v2/locations first.
Tips
- Use the custom variables in your copy: {{city}}, {{rating}}, {{reviews}}, {{category}}, {{website_cms}}, {{tech}}, {{phone_line_type}} and {{email_status}}. First name is only set when the website names the owner, so give it a fallback in your copy.
- Leads already in the campaign are not added again, so pushing the same search twice is safe. Your Instantly blocklist still applies.
- Catch-all addresses are real more often than not, but unprovable: send them in smaller batches and watch bounces. Switch email_policy to verified if your bounce rate climbs.
- Pushed leads count as exported: turn on "Skip exported" in later searches to avoid paying for them twice.
API at a glance
| Call | What it does |
|---|---|
| GET /v2/locations?q= | City name → location_code (free) |
| GET /v2/suggest?niche= | Vague niche → Google categories + sharper keywords (free) |
| POST /v2/searches | Start a search job: keyword, 1–5 location_codes, optional strictness |
| POST /v2/enrichments | Enrich up to 100 domains you already have |
| GET /v2/jobs/:id | Poll until status is completed |
| GET /v2/jobs/:id/results | Paginated enriched businesses (cursor, limit ≤ 200) |
| /v2/demo/* | Same shapes on fixture data — no key, no credits |
All calls use the x-api-key header except the demo endpoints. Base URL: https://api.leadmerlin.com/api
Related
Get your API key.
Sign up free to get an lm_ key and 100 enriched leads. No credit card.