Skip to main content

Enrich Contact

POST 

/v1/enrich/contact

Enrich a LinkedIn profile with contact details from upcell’s database. This endpoint accepts a LinkedIn URL and a list of fields you want to retrieve.

Request Body

FieldTypeDescriptionRequired
linkedinUrlstringThe LinkedIn profile URL of the contact to enrich.❌ No
firstNamestringThe first name of the contact to enrich.❌ No
lastNamestringThe last name of the contact to enrich.❌ No
titlestringThe title of the contact to enrich.❌ No
companyNamestringThe company name of the contact to enrich.❌ No
companyDomainstringThe company domain of the contact to enrich.❌ No
companySocialUrlstringThe company social url of the contact to enrich.❌ No
emailstringThe email of the contact to enrich.❌ No
personalEmailstringThe personal email of the contact to enrich.❌ No
fieldsarrayList of fields to enrich (e.g., mobile).✅ Yes

Possible Field Values

  • mobile

Required Fields

One of the following is required to match to a contact:

  1. firstName, lastName, title, companyName
  2. firstName, lastName AND (companyDomain OR companySocialUrl)
  3. email
  4. personalEmail
  5. linkedinUrl

Example Request (JSON)

{
"linkedinUrl": "https://www.linkedin.com/in/marklbedard",
"fields": ["mobile"]
}


Response

The response returns a Contact object with the enriched contact information.

Example Success Response

{
"contact": {
"linkedinUrl": "https://www.linkedin.com/in/marklbedard",
"mobilePhone": "+15550123456"
}
}


Error Handling

The API returns appropriate error messages with status codes if something goes wrong.

Error CodeMessageDescription
400Invalid RequestVerify your request is properly formatted
401UnauthorizedVerify you are using a valid API key
500Internal Server ErrorAn unexpected error occurred.

Example Error Response

{
"error": {
"code": 400,
"message":"LinkedinUrl is required for data enrichment"
}
}

Request

Responses

Successful response