Developers
API and webhooks
Everything in the app is also an API route. API keys and webhooks are available on paid plans.
Authenticate
Create a key in Settings, then API keys (owners and admins). It is shown once. Send it in the X-API-Key header.
curl -s https://YOUR-HOST/api/v1/credits/balance \
-H "X-API-Key: lg_..."A few calls
# Verify an email (1 credit; free if checked in the last 24 hours)
curl -s -X POST https://YOUR-HOST/api/v1/enrichment/verify \
-H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"email": "jane@example.com"}'
# Search the company directory (free)
curl -s -X POST "https://YOUR-HOST/api/v1/directory/search?limit=20" \
-H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"countries": ["DE"], "technologies": ["hubspot"]}'
# Add directory companies to your workspace (1 credit per new company)
curl -s -X POST https://YOUR-HOST/api/v1/directory/reveal \
-H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"ids": ["<directory id>"]}'- Errors share one envelope with a code, a message and a request ID.
- Paid calls report the charge in the X-Credits-Charged header. Retrying a request never charges twice.
- Rate limits apply per key and per IP, and a 429 tells you when to retry.
Webhooks
Add an HTTPS endpoint in Settings, then Webhooks. Each delivery carries an X-LeadGen-Signature header: a timestamp and an HMAC-SHA256 of the timestamp and the raw body, keyed with your endpoint's secret.
import hmac, hashlib, time
def verify(secret: str, header: str, body: bytes, tolerance=300) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
t, sent = parts["t"], parts["v1"]
if abs(time.time() - int(t)) > tolerance:
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, sent)- Events include lead.created, lead.updated, lead.verified, company.enriched, job.completed, job.failed, list.updated, credits.low and contact.opted_out.
- Failed deliveries retry up to eight times over about a day. An endpoint that fails 20 times in a row is disabled until you re-enable it.
- The delivery log shows every payload and lets you redeliver.
Your next booked meeting is one sequence away
Create a workspace in under a minute. 100 free credits, one mailbox and two sequences on the free plan — no credit card.