Skip to main content
POST
/
leads
/
single_enrich
Enrich a single lead account
curl --request POST \
  --url https://app.pipecorn.com/api/v2/leads/single_enrich \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "first_name": "Mathieu",
  "last_name": "Brun-Picard",
  "company_name": "Pipecorn",
  "linkedin_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
  "live": true
}
'
import requests

url = "https://app.pipecorn.com/api/v2/leads/single_enrich"

payload = {
"first_name": "Mathieu",
"last_name": "Brun-Picard",
"company_name": "Pipecorn",
"linkedin_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"live": True
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_name: 'Mathieu',
last_name: 'Brun-Picard',
company_name: 'Pipecorn',
linkedin_url: 'https://www.linkedin.com/in/mathieu-brun-picard/',
live: true
})
};

fetch('https://app.pipecorn.com/api/v2/leads/single_enrich', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://app.pipecorn.com/api/v2/leads/single_enrich",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'first_name' => 'Mathieu',
'last_name' => 'Brun-Picard',
'company_name' => 'Pipecorn',
'linkedin_url' => 'https://www.linkedin.com/in/mathieu-brun-picard/',
'live' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://app.pipecorn.com/api/v2/leads/single_enrich"

payload := strings.NewReader("{\n \"first_name\": \"Mathieu\",\n \"last_name\": \"Brun-Picard\",\n \"company_name\": \"Pipecorn\",\n \"linkedin_url\": \"https://www.linkedin.com/in/mathieu-brun-picard/\",\n \"live\": true\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://app.pipecorn.com/api/v2/leads/single_enrich")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"first_name\": \"Mathieu\",\n \"last_name\": \"Brun-Picard\",\n \"company_name\": \"Pipecorn\",\n \"linkedin_url\": \"https://www.linkedin.com/in/mathieu-brun-picard/\",\n \"live\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.pipecorn.com/api/v2/leads/single_enrich")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"first_name\": \"Mathieu\",\n \"last_name\": \"Brun-Picard\",\n \"company_name\": \"Pipecorn\",\n \"linkedin_url\": \"https://www.linkedin.com/in/mathieu-brun-picard/\",\n \"live\": true\n}"

response = http.request(request)
puts response.read_body
{
  "status": "QUALIFIED",
  "rejection_reason": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "gender": "<string>",
  "most_probable_email": "<string>",
  "most_probable_email_status": "<string>",
  "phones": [
    "<string>"
  ],
  "title": "<string>",
  "linkedin_profile_url": "<string>",
  "linkedin_id_url": "<string>",
  "regular_urn": "<string>",
  "lk_headline": "<string>",
  "lk_connections_count": 123,
  "years_in_position": 123,
  "months_in_position": 123,
  "years_in_company": 123,
  "months_in_company": 123,
  "current_position": {
    "posId": 123,
    "title": "<string>",
    "current": true,
    "location": "<string>",
    "createdAt": 123,
    "startedOn": {
      "year": 123
    },
    "companyUrn": "<string>",
    "companyName": "<string>",
    "description": "<string>"
  },
  "positions": [
    {
      "posId": 123,
      "title": "<string>",
      "current": true,
      "location": "<string>",
      "startedOn": {
        "year": 123
      },
      "endedOn": {
        "year": 123
      },
      "companyUrn": "<string>",
      "companyName": "<string>",
      "description": "<string>",
      "companyUrnResolutionResult": {
        "entityUrn": "<string>"
      }
    }
  ],
  "title_description": "<string>",
  "summary": "<string>",
  "full_name": "<string>",
  "sales_navigator_profile_url": "<string>",
  "profile_image_url": "<string>",
  "connection_degree": 123,
  "is_premium_linkedin": true,
  "is_open_profile_linkedin": true,
  "is_open_to_work_linkedin": true,
  "past_position": {
    "posId": 123,
    "title": "<string>",
    "current": true,
    "location": "<string>",
    "startedOn": {
      "year": 123
    },
    "endedOn": {
      "year": 123
    },
    "companyName": "<string>",
    "description": "<string>"
  }
}
{
"error": 123,
"message": "<string>"
}
{
"error": 123,
"message": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Your API key

Body

application/json
first_name
string
required

First name

Example:

"Mathieu"

last_name
string
required

Last name

Example:

"Brun-Picard"

company_name
string
required

Company name

Example:

"Pipecorn"

linkedin_url
string<uri>

LinkedIn profile URL

Example:

"https://www.linkedin.com/in/mathieu-brun-picard/"

live
boolean
default:true

Data source toggle. true (default) resolves the person live from LinkedIn and returns the fully enriched profile. false resolves the person from Pipecorn's people database (Elasticsearch) instead: no LinkedIn call is made and no LinkedIn integration is required, but email and phone are not included and the response is the lighter Pipecorn-formatted profile (first_name, last_name, full_name, linkedin_url, headline, current_title, company_name, location, profile_image_url). A non-boolean value returns 422.

Example:

true

Response

Successfully enriched lead

status
string

Qualification status of the lead

Example:

"QUALIFIED"

rejection_reason
string | null

Reason for rejection if the lead was not qualified

first_name
string

First name of the lead

last_name
string

Last name of the lead

gender
string | null

Gender of the lead if available

most_probable_email
string | null

Most likely email address for the lead

most_probable_email_status
string | null

Status of the most probable email verification

phones
string[]

List of phone numbers associated with the lead

title
string

Current job title

linkedin_profile_url
string<uri>

URL to the lead's LinkedIn profile

linkedin_id_url
string<uri>

LinkedIn ID URL of the lead

regular_urn
string

LinkedIn regular URN identifier

lk_headline
string

LinkedIn headline

lk_connections_count
integer

Number of LinkedIn connections

years_in_position
integer | null

Number of years in current position

months_in_position
integer | null

Number of months in current position

years_in_company
integer | null

Number of years in current company

months_in_company
integer | null

Number of months in current company

current_position
object
positions
object[]

List of all positions held by the lead

title_description
string

Description of the current title/role

summary
string | null

Profile summary

full_name
string

Full name of the lead

sales_navigator_profile_url
string<uri> | null

URL to the lead's Sales Navigator profile

profile_image_url
string<uri>

URL to the lead's profile image

connection_degree
integer

LinkedIn connection degree (1st, 2nd, 3rd)

is_premium_linkedin
boolean | null

Whether the lead has LinkedIn Premium

is_open_profile_linkedin
boolean | null

Whether the lead has an open LinkedIn profile

is_open_to_work_linkedin
boolean | null

Whether the lead is open to work on LinkedIn

past_position
object

Most recent past position