Enriches contact records with email address data using multiple data sources.
The Email Enrichment API enriches contact records with email address data using multiple data sources. The service uses various lookup methods to find professional email addresses for contacts based on their name and company information.
record_id: Your unique identifier for this record (required) - used for caching and duplicate detectionfirst_name: Contact's first name (required)last_name: Contact's last name (required)company: Company name or website URL where the contact works (required)domain: Company domain (optional) - if not provided, will be extracted from company fieldlinkedin: Contact's linkedin url (optional) - improves lookup accuracy when availablemax_credits: Maximum credits to spend on this request (optional, defaults to your account limit)
- Single record per request
- Must include
record_id,first_name,last_name, andcompany record_idmust be unique per contact record in your systemdomainis optional but improves accuracy when providedlinkedinis optional but improves accuracy when providedmax_creditsmust be a positive integer if provided
success: Boolean indicating request successrecord_id: Echo of the input record IDfirst_name: Echo of input first namelast_name: Echo of input last namecompany: Echo of input companyemail: Professional email address or null if not foundconfidence: Confidence level (high,medium,low) or nullcredits_consumed: Number of credits used for this requestcredits_remaining(int | null): Approximate remaining credit balance. Use GET /v1/credits/remaining for precise value.processing_time_ms: Time taken to process the request in millisecondscached: Boolean indicating if this result was returned from cache (no credits consumed if true)
Email enrichment consumes credits based on the data sources queried:
- Cached Result: 0 credits (if same record_id queried recently)
- Email Search: 5 credits
Security
BearerAuth
Any of:
LinkedIn profile identifier/slug (e.g., 'john-doe-123456')
string
- Lantern API serverhttps://api-gateway.agenthq.withlantern.com/v1/enrich/email
- Local API serverhttp://localhost:8000/v1/enrich/email
curl -i -X POST \
https://api-gateway.agenthq.withlantern.com/v1/enrich/email \
-H 'Authorization: Bearer <YOUR_ApiToken_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"record_id": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"company_domain": "string",
"linkedin_id": "john-doe-123456",
"max_credits": 0
}'Success Response
Any of:
Confidence score (0.0-1.0) or null if disabled/not found
[ 0 .. 1 ]
number
Any of:
Approximate remaining credit balance. Use GET /v1/credits/remaining for precise balance.
integer
Time taken to process the request in milliseconds
Response
{ "success": true, "record_id": "contact_001", "first_name": "John", "last_name": "Smith", "company": "Acme Corp", "email": "john.smith@acme.com", "confidence": "high", "credits_consumed": 3, "credits_remaining": 950, "processing_time_ms": 750, "cached": false }