This endpoint consumes enrichment credits. Each successful enrichment costs 1 credit. If the workspace’s balance is zero, the API returns 402 insufficient_credits and the contact is not modified.
Request
Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json
Optional UUID to deduplicate retried enrichment requests within 24 hours. The credit is charged only on the first successful call.
Body Parameters
UUID of the contact to enrich.
Optional whitelist of fields to update. Defaults to every safe-to-fill field (job_title, company_name, linkedin_url, phone, location, seniority).
When true, the enrichment can overwrite non-empty fields. By default only empty fields are populated.
Response
The updated contact with enrichment applied
Names of fields that changed
Provider that supplied the data
Confidence score (0.0 - 1.0)
Credit balance after the call
Responses include X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID.
curl -X POST \
https://data.leadlex.com/functions/v1/api-gateway/v1/enrich/contact \
-H "Authorization: Bearer wbk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"contact_id": "123e4567-e89b-12d3-a456-426614174000"
}'
Example Response
{
"data" : {
"contact" : {
"id" : "123e4567-e89b-12d3-a456-426614174000" ,
"full_name" : "Jane Doe" ,
"email" : "jane@acme.com" ,
"job_title" : "General Counsel" ,
"company_name" : "Acme Corp" ,
"linkedin_url" : "https://linkedin.com/in/janedoe" ,
"phone" : "+1-555-0100" ,
"location" : "New York, NY, US"
},
"fields_updated" : [ "job_title" , "company_name" , "linkedin_url" , "location" ],
"source" : "vendor_a" ,
"confidence" : 0.91 ,
"credits_remaining" : 4871
}
}
Errors
Status Code Description 400 validation_errorcontact_id missing or malformed401 invalid_keyInvalid or expired API key 402 insufficient_creditsWorkspace credit balance is exhausted 403 insufficient_permissionsMissing write:enrich permission 404 not_foundContact not found in this workspace 409 no_matchUpstream providers returned no data for the contact 429 rate_limitedRate limit exceeded