Enriches contact records with phone number data using multiple data sources.
The Phone Enrichment API enriches contact records with phone number data using multiple data sources. The service intelligently cascades through different lookup methods to maximize success rates.
record_id: Your unique identifier for this record (required) - used for caching and duplicate detectionfirst_name: Contact's first name (optional) - required for name-based enrichmentlast_name: Contact's last name (optional) - required for name-based enrichmentcompany: Company name or website URL (optional) - required for name-based enrichmentemail: Contact's email address (optional) - can be used standalone for enrichmentlinkedin_id: Contact's linkedin profile identifier/slug (optional) - can be used standalone for enrichmentdomain: Company domain (optional) - enhances name/company enrichment method
- Single record per request
- Must include
record_id record_idmust be unique per contact record in your system- Must provide at least one of the following data combinations:
- Name + Company/Domain:
first_name,last_name,company(optionally enhanced withdomain) - LinkedIn Profile Only:
linkedin_id - Email Only:
email
- Name + Company/Domain:
- Enrichment prioritizes data in this order:
- Name + Company/Domain: Primary method when available
- LinkedIn Profile: Fallback when name/company data is incomplete
- Email Only: Final fallback when other data is insufficient
success: Boolean indicating request successrecord_id: Echo of the input record IDfirst_name: Echo of input first name (or null if not provided)last_name: Echo of input last name (or null if not provided)company: Echo of input company (or null if not provided)email: Echo of input email or email found during enrichment (or null if not found)linkedin_id: Echo of input LinkedIn ID or LinkedIn profile found during enrichment (or null if not found)phone: International format phone number (E.164) or null if not foundprocessing_time_ms: Time taken to process the request in milliseconds
Security
BearerAuth
Any of:
Contact's first name (required for name-based enrichment)
string
Any of:
Contact's last name (required for name-based enrichment)
string
Any of:
Company name or website URL (required for name-based enrichment)
string
Any of:
LinkedIn profile identifier/slug (e.g., 'john-doe-123456')
string
- Lantern API serverhttps://api-gateway.agenthq.withlantern.com/v1/enrich/phone
- Local API serverhttp://localhost:8000/v1/enrich/phone
curl -i -X POST \
https://api-gateway.agenthq.withlantern.com/v1/enrich/phone \
-H 'Authorization: Bearer <YOUR_ApiToken_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"record_id": "string",
"first_name": "string",
"last_name": "string",
"company": "string",
"email": "string",
"linkedin_id": "john-doe-123456",
"domain": "string"
}'Success Response
Any of:
Echo of input LinkedIn ID or LinkedIn profile found during enrichment
string
Any of:
International format phone number (E.164) or null if not found
string
Response
{ "success": true, "record_id": "contact_001", "first_name": "John", "last_name": "Smith", "company": "Acme Corp", "email": "john.smith@acme.com", "linkedin_id": "john-smith-123456", "phone": "+1-555-123-4567", "processing_time_ms": 1250 }