LeadMagic Toolkit
Overview
LeadMagic is the engine that powers email finding, verification, and
enrichment for thousands of GTM teams. This skill is the master toolkit:
every endpoint, every integration pattern, every workflow, and every
advanced tactic. The mistake: using the API one call at a time manually.
The fix: automated workflows, waterfall enrichment, MCP tool orchestration,
and integration into every tool in your stack.
Authoritative Foundations
- LeadMagic API — Email finder, verifier, waterfall enrichment endpoints — Email finder, verifier, waterfall enrichment endpoints
- MCP (Model Context Protocol) — Anthropic AI tool integration — Model Context Protocol — tool servers for agent-safe CRM and enrichment access.
- Clay — Waterfall enrichment and prospecting platform — Waterfall enrichment, Claygent research, and table-based GTM automation.
- n8n — Open-source workflow automation — Workflow automation — HTTP nodes, webhooks, and GTM glue between tools.
- Pat Spielmann — Portable data layer — Portable data layer
- Pat Spielmann — Cold to Gold — Cold to Gold
When to Use
Trigger phrases: "LeadMagic API", "LeadMagic setup", "LeadMagic integration",
"LeadMagic CLI", "LeadMagic MCP", "LeadMagic enrichment", "LeadMagic bulk",
"LeadMagic Clay", "LeadMagic n8n", "LeadMagic workflow"
Platform Capabilities
Core Endpoints
- Email Finder: Find email from name + company or name + domain
- Email Verifier: Verify deliverability with confidence scoring
- Waterfall Enrichment: Multi-source enrichment with provider chaining
- Bulk Processing: CSV upload, async batch processing, webhook callbacks
- Job Change Detection: Monitor contacts for job changes
Integration Methods
- REST API: Direct HTTP calls with API key authentication
- CLI: Command-line tool for scripting and automation
- MCP Server: 16 tools exposed as MCP tools for AI agents
- Clay Integration: Native Clay enrichment provider
- n8n Integration: HTTP Request nodes for workflow automation
- CRM Integration: HubSpot, Salesforce, Attio via API/webhook
Workflow Patterns
Pattern 1: Single Email Find + Verify
Input: name + company → API: Email Finder → Email → API: Email Verifier → Confidence score
CLI: lm find "Jane Smith" "Acme Corp" | lm verify
Pattern 2: Bulk CSV Enrichment
Upload CSV → API: Bulk Enrich → Poll status → Download results → CRM import
CLI: lm bulk-enrich contacts.csv --output enriched.csv --webhook https://...
Pattern 3: Waterfall Enrichment (Clay)
Input → LeadMagic → if not found → Apollo → if not found → ProspectingTool → Output
Pattern 4: MCP Orchestration
AI Agent → MCP Tool: find_email → MCP Tool: verify_email → MCP Tool: enrich_person
Artifacts
CLI Quick Reference
# Install
npm install -g leadmagic-cli
lm config set api_key YOUR_KEY
# Find email
lm find "Jane Smith" "Acme Corp"
lm find --domain acme.com --pattern "{first}.{last}@{domain}"
# Verify email
lm verify person@example.com
lm verify --bulk emails.txt
# Bulk enrich
lm bulk-enrich contacts.csv --output enriched.csv
# Job change check
lm job-change --contact-id abc123
# MCP server
lm mcp start --port 3000
n8n Workflow Template
{
"name": "LeadMagic Email Find + Enrich",
"nodes": [
{
"name": "Input",
"type": "n8n-nodes-base.webhook",
"position": [250, 300]
},
{
"name": "Find Email",
"type": "n8n-nodes-base.httpRequest",
"position": [450, 300],
"parameters": {
"url": "https://api.leadmagic.io/v1/email/find",
"method": "POST",
"headers": { "Authorization": "Bearer {{$credentials.apiKey}}" },
"body": { "name": "{{$json.name}}", "company": "{{$json.company}}" }
}
},
{
"name": "Verify Email",
"type": "n8n-nodes-base.httpRequest",
"position": [650, 300],
"parameters": {
"url": "https://api.leadmagic.io/v1/email/verify",
"method": "POST",
"body": { "email": "{{$json.email}}" }
}
},
{
"name": "Output",
"type": "n8n-nodes-base.respondToWebhook",
"position": [850, 300]
}
]
}
Clay Integration Pattern
1. Add LeadMagic enrichment to Clay table
2. Map: Name column → LeadMagic Name, Company column → LeadMagic Company
3. Configure: waterfall order (LeadMagic first, then fallbacks)
4. Run: 1 credit per email found + verified
Implementation Checklist
Common Pitfalls
- No waterfall fallback. LeadMagic → nothing. Apollo would have found it.
Fix: Always chain providers. LeadMagic first. Apollo/Clearbit second.
- No webhook for bulk. Poll status in a loop. Timeout. Job lost. Fix: Webhook
callbacks. Job ID → webhook notifies on completion.
- Hard-coding API keys in n8n. Committed to repo. Leaked. Fix: n8n credentials
store. Environment variables. Never hard-code.
Output Format
The agent delivers a LeadMagic integration blueprint matched to the user's stack and use case:
- Integration Method Selection: recommended access pattern (REST API direct, CLI script, MCP server for AI agents, Clay enrichment column, or n8n HTTP Request node) with rationale for the user's workflow type
- Workflow Design: end-to-end data flow diagram — input source → find endpoint → verify endpoint → enrichment endpoint → destination system (CRM, sequencer, or data store)
- Code/Config Artifact: ready-to-use CLI commands, n8n workflow JSON snippet, or Clay column configuration for the chosen pattern — including auth header format and field mappings
- Credential & Rate-Limit Setup: API key configuration steps, rate-limit thresholds (requests per minute), exponential backoff pattern for 429 responses, and bulk webhook callback URL setup
- Fallback Chain: waterfall provider order (LeadMagic first → secondary provider on miss) with per-miss handling logic and confidence-score threshold for accepting results
- QA Checklist: 7-point validation covering API connectivity test, waterfall coverage rate on a sample, webhook delivery confirmation, credential security review, enrichment accuracy spot-check (10 known contacts), bulk job completion handling, and CRM field mapping verification
Quality Check
Before delivering, verify:
Execution Artifacts
references/framework-notes.md — named frameworks, citation anchors, and operating assumptions
templates/output-template.md — copy-paste deliverable structure for the user
scripts/check-output.py — local checklist validator for required sections
This skill includes lightweight artifacts the agent can load on demand:
../../outbound/cold-email-copywriting/references/pat-spielmann-outbound-copy.md — GTM stack + outbound copy integration patterns (Pat Spielmann)
Use the artifacts when the user asks for an implementation-ready deliverable, a repeatable workflow, or a quality check rather than generic advice.
Related Skills
leadmagic-cli — CLI workflows and scripting
leadmagic-waterfall — Multi-provider enrichment waterfall design
leadmagic-integrations — CRM and platform integrations
leadmagic-mcp — MCP server for AI agent orchestration
leadmagic-bulk-enrichment — Batch processing at scale
leadmagic-job-change — Job change detection and champion tracking
1---2name: leadmagic-toolkit3description: Complete LeadMagic platform toolkit — API reference, CLI workflows, MCP server setup, enrichment waterfalls, bulk processing, job change detection, and integration patterns. Use when building LeadMagic-powered GTM infrastructure, integrating LeadMagic into Clay/n8n/HubSpot/Salesforce, or automating email finding and verification at scale. Triggers on: "LeadMagic toolkit", "LeadMagic API", "LeadMagic setup", "LeadMagic CLI".4license: MIT5---67# LeadMagic Toolkit89## Overview1011LeadMagic is the engine that powers email finding, verification, and12enrichment for thousands of GTM teams. This skill is the master toolkit:13every endpoint, every integration pattern, every workflow, and every14advanced tactic. The mistake: using the API one call at a time manually.15The fix: automated workflows, waterfall enrichment, MCP tool orchestration,16and integration into every tool in your stack.1718## Authoritative Foundations1920- **LeadMagic API — Email finder, verifier, waterfall enrichment endpoints** — Email finder, verifier, waterfall enrichment endpoints21- **MCP (Model Context Protocol) — Anthropic AI tool integration** — Model Context Protocol — tool servers for agent-safe CRM and enrichment access.22- **Clay — Waterfall enrichment and prospecting platform** — Waterfall enrichment, Claygent research, and table-based GTM automation.23- **n8n — Open-source workflow automation** — Workflow automation — HTTP nodes, webhooks, and GTM glue between tools.24- **Pat Spielmann — Portable data layer** — Portable data layer25- **Pat Spielmann — Cold to Gold** — Cold to Gold2627## When to Use2829Trigger phrases: "LeadMagic API", "LeadMagic setup", "LeadMagic integration",30"LeadMagic CLI", "LeadMagic MCP", "LeadMagic enrichment", "LeadMagic bulk",31"LeadMagic Clay", "LeadMagic n8n", "LeadMagic workflow"3233## Platform Capabilities3435### Core Endpoints36- **Email Finder:** Find email from name + company or name + domain37- **Email Verifier:** Verify deliverability with confidence scoring38- **Waterfall Enrichment:** Multi-source enrichment with provider chaining39- **Bulk Processing:** CSV upload, async batch processing, webhook callbacks40- **Job Change Detection:** Monitor contacts for job changes4142### Integration Methods43- **REST API:** Direct HTTP calls with API key authentication44- **CLI:** Command-line tool for scripting and automation45- **MCP Server:** 16 tools exposed as MCP tools for AI agents46- **Clay Integration:** Native Clay enrichment provider47- **n8n Integration:** HTTP Request nodes for workflow automation48- **CRM Integration:** HubSpot, Salesforce, Attio via API/webhook4950## Workflow Patterns5152### Pattern 1: Single Email Find + Verify53```54Input: name + company → API: Email Finder → Email → API: Email Verifier → Confidence score55CLI: lm find "Jane Smith" "Acme Corp" | lm verify56```5758### Pattern 2: Bulk CSV Enrichment59```60Upload CSV → API: Bulk Enrich → Poll status → Download results → CRM import61CLI: lm bulk-enrich contacts.csv --output enriched.csv --webhook https://...62```6364### Pattern 3: Waterfall Enrichment (Clay)65```66Input → LeadMagic → if not found → Apollo → if not found → ProspectingTool → Output67```6869### Pattern 4: MCP Orchestration70```71AI Agent → MCP Tool: find_email → MCP Tool: verify_email → MCP Tool: enrich_person72```7374## Artifacts7576### CLI Quick Reference77```bash78# Install79npm install -g leadmagic-cli80lm config set api_key YOUR_KEY8182# Find email83lm find "Jane Smith" "Acme Corp"84lm find --domain acme.com --pattern "{first}.{last}@{domain}"8586# Verify email87lm verify person@example.com88lm verify --bulk emails.txt8990# Bulk enrich91lm bulk-enrich contacts.csv --output enriched.csv9293# Job change check94lm job-change --contact-id abc1239596# MCP server97lm mcp start --port 300098```99100### n8n Workflow Template101```json102{103 "name": "LeadMagic Email Find + Enrich",104 "nodes": [105 {106 "name": "Input",107 "type": "n8n-nodes-base.webhook",108 "position": [250, 300]109 },110 {111 "name": "Find Email",112 "type": "n8n-nodes-base.httpRequest",113 "position": [450, 300],114 "parameters": {115 "url": "https://api.leadmagic.io/v1/email/find",116 "method": "POST",117 "headers": { "Authorization": "Bearer {{$credentials.apiKey}}" },118 "body": { "name": "{{$json.name}}", "company": "{{$json.company}}" }119 }120 },121 {122 "name": "Verify Email",123 "type": "n8n-nodes-base.httpRequest",124 "position": [650, 300],125 "parameters": {126 "url": "https://api.leadmagic.io/v1/email/verify",127 "method": "POST",128 "body": { "email": "{{$json.email}}" }129 }130 },131 {132 "name": "Output",133 "type": "n8n-nodes-base.respondToWebhook",134 "position": [850, 300]135 }136 ]137}138```139140### Clay Integration Pattern141```1421. Add LeadMagic enrichment to Clay table1432. Map: Name column → LeadMagic Name, Company column → LeadMagic Company1443. Configure: waterfall order (LeadMagic first, then fallbacks)1454. Run: 1 credit per email found + verified146```147148## Implementation Checklist149150- [ ] API key configured and tested151- [ ] CLI installed and configured152- [ ] MCP server running (if using AI agents)153- [ ] Webhook endpoints configured for bulk callbacks154- [ ] Rate limits understood and handled (exponential backoff)155- [ ] Clay integration with waterfall fallback configured156- [ ] n8n workflow templates ready for common patterns157158## Common Pitfalls1591601. **No waterfall fallback.** LeadMagic → nothing. Apollo would have found it.161 Fix: Always chain providers. LeadMagic first. Apollo/Clearbit second.1622. **No webhook for bulk.** Poll status in a loop. Timeout. Job lost. Fix: Webhook163 callbacks. Job ID → webhook notifies on completion.1643. **Hard-coding API keys in n8n.** Committed to repo. Leaked. Fix: n8n credentials165 store. Environment variables. Never hard-code.166167168## Output Format169170The agent delivers a LeadMagic integration blueprint matched to the user's stack and use case:171172- **Integration Method Selection:** recommended access pattern (REST API direct, CLI script, MCP server for AI agents, Clay enrichment column, or n8n HTTP Request node) with rationale for the user's workflow type173- **Workflow Design:** end-to-end data flow diagram — input source → find endpoint → verify endpoint → enrichment endpoint → destination system (CRM, sequencer, or data store)174- **Code/Config Artifact:** ready-to-use CLI commands, n8n workflow JSON snippet, or Clay column configuration for the chosen pattern — including auth header format and field mappings175- **Credential & Rate-Limit Setup:** API key configuration steps, rate-limit thresholds (requests per minute), exponential backoff pattern for 429 responses, and bulk webhook callback URL setup176- **Fallback Chain:** waterfall provider order (LeadMagic first → secondary provider on miss) with per-miss handling logic and confidence-score threshold for accepting results177- **QA Checklist:** 7-point validation covering API connectivity test, waterfall coverage rate on a sample, webhook delivery confirmation, credential security review, enrichment accuracy spot-check (10 known contacts), bulk job completion handling, and CRM field mapping verification178179## Quality Check180181Before delivering, verify:182- [ ] All required sections complete183- [ ] Output matches the user's stated need184- [ ] No vague or unsupported claims185- [ ] Frameworks cited where applicable186187## Execution Artifacts188189- `references/framework-notes.md` — named frameworks, citation anchors, and operating assumptions190- `templates/output-template.md` — copy-paste deliverable structure for the user191- `scripts/check-output.py` — local checklist validator for required sections192This skill includes lightweight artifacts the agent can load on demand:193- `../../outbound/cold-email-copywriting/references/pat-spielmann-outbound-copy.md` — GTM stack + outbound copy integration patterns (Pat Spielmann)194Use the artifacts when the user asks for an implementation-ready deliverable, a repeatable workflow, or a quality check rather than generic advice.195196## Related Skills197198- `leadmagic-cli` — CLI workflows and scripting199- `leadmagic-waterfall` — Multi-provider enrichment waterfall design200- `leadmagic-integrations` — CRM and platform integrations201- `leadmagic-mcp` — MCP server for AI agent orchestration202- `leadmagic-bulk-enrichment` — Batch processing at scale203- `leadmagic-job-change` — Job change detection and champion tracking