curl --request POST \
--url https://api.pipecorn.com/v2/contacts/single_enrich \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"firstname": "Mathieu",
"lastname": "Brun-Picard",
"domain": "pipecorn.com",
"company_name": "Pipecorn",
"linkedin_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"enrichment_type": [
"email",
"phone",
"personal_email"
],
"custom": {
"hubspot_id": "4447901"
}
}
'import requests
url = "https://api.pipecorn.com/v2/contacts/single_enrich"
payload = {
"firstname": "Mathieu",
"lastname": "Brun-Picard",
"domain": "pipecorn.com",
"company_name": "Pipecorn",
"linkedin_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"enrichment_type": ["email", "phone", "personal_email"],
"custom": { "hubspot_id": "4447901" }
}
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({
firstname: 'Mathieu',
lastname: 'Brun-Picard',
domain: 'pipecorn.com',
company_name: 'Pipecorn',
linkedin_url: 'https://www.linkedin.com/in/mathieu-brun-picard/',
enrichment_type: ['email', 'phone', 'personal_email'],
custom: {hubspot_id: '4447901'}
})
};
fetch('https://api.pipecorn.com/v2/contacts/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://api.pipecorn.com/v2/contacts/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([
'firstname' => 'Mathieu',
'lastname' => 'Brun-Picard',
'domain' => 'pipecorn.com',
'company_name' => 'Pipecorn',
'linkedin_url' => 'https://www.linkedin.com/in/mathieu-brun-picard/',
'enrichment_type' => [
'email',
'phone',
'personal_email'
],
'custom' => [
'hubspot_id' => '4447901'
]
]),
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://api.pipecorn.com/v2/contacts/single_enrich"
payload := strings.NewReader("{\n \"firstname\": \"Mathieu\",\n \"lastname\": \"Brun-Picard\",\n \"domain\": \"pipecorn.com\",\n \"company_name\": \"Pipecorn\",\n \"linkedin_url\": \"https://www.linkedin.com/in/mathieu-brun-picard/\",\n \"enrichment_type\": [\n \"email\",\n \"phone\",\n \"personal_email\"\n ],\n \"custom\": {\n \"hubspot_id\": \"4447901\"\n }\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://api.pipecorn.com/v2/contacts/single_enrich")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstname\": \"Mathieu\",\n \"lastname\": \"Brun-Picard\",\n \"domain\": \"pipecorn.com\",\n \"company_name\": \"Pipecorn\",\n \"linkedin_url\": \"https://www.linkedin.com/in/mathieu-brun-picard/\",\n \"enrichment_type\": [\n \"email\",\n \"phone\",\n \"personal_email\"\n ],\n \"custom\": {\n \"hubspot_id\": \"4447901\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pipecorn.com/v2/contacts/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 \"firstname\": \"Mathieu\",\n \"lastname\": \"Brun-Picard\",\n \"domain\": \"pipecorn.com\",\n \"company_name\": \"Pipecorn\",\n \"linkedin_url\": \"https://www.linkedin.com/in/mathieu-brun-picard/\",\n \"enrichment_type\": [\n \"email\",\n \"phone\",\n \"personal_email\"\n ],\n \"custom\": {\n \"hubspot_id\": \"4447901\"\n }\n}"
response = http.request(request)
puts response.read_body{
"enrichment_id": "123e4567-e89b-12d3-a456-426614174000",
"first_name": "Mathieu",
"last_name": "Brun-Picard",
"linkedin_profile_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"status": "finished",
"email": "mathieu@pipecorn.com",
"email_status": "deliverable",
"email_source": "pipecorn",
"phones": [
"+33612345678",
"+33145678901"
],
"phone_details": [
{
"number": "+33612345678",
"type": "mobile",
"source": "pipecorn"
},
{
"number": "+33145678901",
"type": "fixed_line",
"source": "pipecorn"
}
],
"phone_status": "valid",
"custom": {
"hubspot_id": "4447901"
}
}Synchronous Single Contact Enrichment
Enrich a single contact with email, phone, and/or personal email data and get results instantly
curl --request POST \
--url https://api.pipecorn.com/v2/contacts/single_enrich \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"firstname": "Mathieu",
"lastname": "Brun-Picard",
"domain": "pipecorn.com",
"company_name": "Pipecorn",
"linkedin_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"enrichment_type": [
"email",
"phone",
"personal_email"
],
"custom": {
"hubspot_id": "4447901"
}
}
'import requests
url = "https://api.pipecorn.com/v2/contacts/single_enrich"
payload = {
"firstname": "Mathieu",
"lastname": "Brun-Picard",
"domain": "pipecorn.com",
"company_name": "Pipecorn",
"linkedin_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"enrichment_type": ["email", "phone", "personal_email"],
"custom": { "hubspot_id": "4447901" }
}
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({
firstname: 'Mathieu',
lastname: 'Brun-Picard',
domain: 'pipecorn.com',
company_name: 'Pipecorn',
linkedin_url: 'https://www.linkedin.com/in/mathieu-brun-picard/',
enrichment_type: ['email', 'phone', 'personal_email'],
custom: {hubspot_id: '4447901'}
})
};
fetch('https://api.pipecorn.com/v2/contacts/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://api.pipecorn.com/v2/contacts/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([
'firstname' => 'Mathieu',
'lastname' => 'Brun-Picard',
'domain' => 'pipecorn.com',
'company_name' => 'Pipecorn',
'linkedin_url' => 'https://www.linkedin.com/in/mathieu-brun-picard/',
'enrichment_type' => [
'email',
'phone',
'personal_email'
],
'custom' => [
'hubspot_id' => '4447901'
]
]),
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://api.pipecorn.com/v2/contacts/single_enrich"
payload := strings.NewReader("{\n \"firstname\": \"Mathieu\",\n \"lastname\": \"Brun-Picard\",\n \"domain\": \"pipecorn.com\",\n \"company_name\": \"Pipecorn\",\n \"linkedin_url\": \"https://www.linkedin.com/in/mathieu-brun-picard/\",\n \"enrichment_type\": [\n \"email\",\n \"phone\",\n \"personal_email\"\n ],\n \"custom\": {\n \"hubspot_id\": \"4447901\"\n }\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://api.pipecorn.com/v2/contacts/single_enrich")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstname\": \"Mathieu\",\n \"lastname\": \"Brun-Picard\",\n \"domain\": \"pipecorn.com\",\n \"company_name\": \"Pipecorn\",\n \"linkedin_url\": \"https://www.linkedin.com/in/mathieu-brun-picard/\",\n \"enrichment_type\": [\n \"email\",\n \"phone\",\n \"personal_email\"\n ],\n \"custom\": {\n \"hubspot_id\": \"4447901\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pipecorn.com/v2/contacts/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 \"firstname\": \"Mathieu\",\n \"lastname\": \"Brun-Picard\",\n \"domain\": \"pipecorn.com\",\n \"company_name\": \"Pipecorn\",\n \"linkedin_url\": \"https://www.linkedin.com/in/mathieu-brun-picard/\",\n \"enrichment_type\": [\n \"email\",\n \"phone\",\n \"personal_email\"\n ],\n \"custom\": {\n \"hubspot_id\": \"4447901\"\n }\n}"
response = http.request(request)
puts response.read_body{
"enrichment_id": "123e4567-e89b-12d3-a456-426614174000",
"first_name": "Mathieu",
"last_name": "Brun-Picard",
"linkedin_profile_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"status": "finished",
"email": "mathieu@pipecorn.com",
"email_status": "deliverable",
"email_source": "pipecorn",
"phones": [
"+33612345678",
"+33145678901"
],
"phone_details": [
{
"number": "+33612345678",
"type": "mobile",
"source": "pipecorn"
},
{
"number": "+33145678901",
"type": "fixed_line",
"source": "pipecorn"
}
],
"phone_status": "valid",
"custom": {
"hubspot_id": "4447901"
}
}POST https://api.pipecorn.com/v2/contacts/single_enrich
https://app.pipecorn.com/api/v2/contacts/single_enrich is the
asynchronous endpoint. Sending
this request there does not fail: it starts an async enrichment and returns
200 with status: "pending" instead of the results.Overview
This endpoint performs real-time waterfall enrichment across multiple data providers to find the most accurate email, phone number, and/or personal email for a contact. Results are returned immediately in the API response, making it ideal for interactive applications, Chrome extensions, and real-time workflows.Rate Limits
This endpoint spends credits, so it is exempt from request rate limits: your credit balance is its only throttle.Enrichment Types
You can specify which data points you want to enrich by passing theenrichment_type array parameter:
["email"]- Find and validate professional email addresses only["phone"]- Find phone numbers only["personal_email"]- Find personal email addresses only (requires user consent — see below)- Any combination, e.g.
["email", "phone"],["email", "personal_email"], or["email", "phone", "personal_email"]
personal_email requires the authenticated user to have consented
to personal email enrichment in their account settings. If consent is missing,
the API responds with 422 Unprocessable Entity and the message
"You can't use the personal email enrichment feature without consenting with our terms of use".
This consent gate is required for GDPR compliance.Requests including phone or personal_email must include linkedin_url.Phone Type Filter
Whenenrichment_type includes "phone", pass phone_type to choose which
numbers come back:
phone_type | Returned numbers |
|---|---|
["all"] (default) | Every number found, whatever its line type |
["mobile"] | Only mobile numbers — type of mobile or fixed_or_mobile |
["mobile"], the waterfall keeps querying providers until one returns a
mobile number — a provider that only has a landline doesn’t stop the search.
Landlines, VoIP, toll-free and other non-mobile numbers are
dropped from both phones and phone_details. If only non-mobile numbers were
found, phones is empty and phone_status is not_found. phone_type
combines with phone_country_codes (both filters apply). Any other value is rejected with
422 Unprocessable Entity:
{"error": "phone_type must be [\"all\"] or [\"mobile\"]"}.
{
"linkedin_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"enrichment_type": ["phone"],
"phone_type": ["mobile"]
}
Waterfall Enrichment
When you request multiple enrichment types, our system uses a sophisticated waterfall approach:- Attempts to find the professional email from the most reliable providers first
- Searches for personal email through dedicated personal-email providers (Pipecorn, LeadMagic, Airscale)
- Searches for phone numbers using provider prioritization
- Returns results as soon as all requested data points are found or all providers are exhausted
Response Format
Success Response
When enrichment succeeds, you’ll receive a 200 response with the enriched data: Email Only:{
"enrichment_id": "123e4567-e89b-12d3-a456-426614174000",
"first_name": "Mathieu",
"last_name": "Brun-Picard",
"linkedin_profile_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"status": "finished",
"email": "mathieu@pipecorn.com",
"email_status": "deliverable",
"email_source": "pipecorn"
}
{
"enrichment_id": "123e4567-e89b-12d3-a456-426614174000",
"first_name": "Mathieu",
"last_name": "Brun-Picard",
"linkedin_profile_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"status": "finished",
"phones": [
"+33612345678"
],
"phone_details": [
{ "number": "+33612345678", "type": "mobile", "source": "pipecorn" }
],
"phone_status": "valid"
}
{
"enrichment_id": "123e4567-e89b-12d3-a456-426614174000",
"first_name": "Mathieu",
"last_name": "Brun-Picard",
"linkedin_profile_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"status": "finished",
"email": "mathieu@pipecorn.com",
"email_status": "deliverable",
"email_source": "pipecorn",
"phones": [
"+33612345678",
"+33145678901"
],
"phone_details": [
{ "number": "+33612345678", "type": "mobile", "source": "pipecorn" },
{ "number": "+33145678901", "type": "fixed_line", "source": "pipecorn" }
],
"phone_status": "valid"
}
{
"enrichment_id": "123e4567-e89b-12d3-a456-426614174000",
"first_name": "Mathieu",
"last_name": "Brun-Picard",
"linkedin_profile_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"status": "finished",
"personal_email": "mathieu.bp@gmail.com",
"personal_email_status": "deliverable"
}
No Data Found
When nothing is found, the request still returns200 with status: "finished" and empty data fields. Check the per-type status fields (email_status, phone_status, …) to see what was found. status is always finished; an enrichment that fails returns 500 with {"error": "An error occurred during enrichment"}.
{
"enrichment_id": "123e4567-e89b-12d3-a456-426614174000",
"first_name": "Mathieu",
"last_name": "Brun-Picard",
"linkedin_profile_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"status": "finished",
"email": null,
"email_status": null,
"email_source": null,
"phones": [],
"phone_details": [],
"phone_status": "not_found"
}
Required Fields
enrichment_type is always required — an array containing any combination of
"email", "phone", and/or "personal_email". The other required fields
depend on which types you request:
enrichment_type value | Additional required fields |
|---|---|
"email" | linkedin_url, or firstname, lastname and one of domain or company_name |
"phone" | linkedin_url |
"personal_email" | linkedin_url |
firstname/lastname are only needed when you request "email" without a
linkedin_url; phone and personal email run off the linkedin_url alone.
When you request a combination, the requirements add up — but a single
linkedin_url satisfies the identifier requirement for all three types. For
example, ["email", "phone"] only needs a linkedin_url, which covers both
the email and phone steps.
These requirements are checked before any credit is spent. A request that
misses them is rejected with 422 Unprocessable Entity:
| Situation | error |
|---|---|
"email" requested without linkedin_url, and firstname and/or lastname missing | "Missing required fields: firstname, lastname" (lists only the missing ones) |
"phone" or "personal_email" requested without linkedin_url | "Linkedin URL is required for phone or personal email enrichment" |
"email" requested without linkedin_url, domain or company_name | "Either domain or company_name must be provided" |
Recommended Fields
Beyond the required fields, supplying more context improves accuracy:linkedin_url- LinkedIn profile URL (highly recommended for accuracy; on its own it satisfies every enrichment type)domain/company_name- Company context that improves professional email matching when you don’t have alinkedin_url.
Custom Fields
You can include custom fields that will be returned in the response:{
"firstname": "Mathieu",
"lastname": "Brun-Picard",
"linkedin_url": "https://www.linkedin.com/in/mathieu-brun-picard/",
"enrichment_type": ["email"],
"custom": {
"crm_id": "12345",
"campaign": "outbound_q1",
"segment": "enterprise"
}
}
custom field of the response, making it easy to correlate results with your internal systems.
Email Status Values
Theemail_status field indicates the validation state of the email:
deliverable- Email is verified as deliverablecatch-all- The domain accepts every address, so the mailbox itself could not be confirmednull- No email was found (emailisnulltoo), or the email comes from your CRM and Pipecorn had never checked it
enrichment_type includes email.
Values from your CRM
When HubSpot or Salesforce is connected to your Pipecorn account and already holds the contact’s email or phone, the value is returned without a search and costs no credit. Pipecorn does not verify it.email_source and
phone_details[].source say where each value comes from: crm or pipecorn
(email_source is null when there is no email). Send skip_crm: true to run
the paid search anyway. The rules are the same as for the
asynchronous endpoint.
Personal Email Status Values
Thepersonal_email_status field takes the same values as email_status:
deliverable- Personal email is verified as deliverablecatch-all- The domain accepts every address, so the mailbox itself could not be confirmednull- No personal email was found
enrichment_type includes personal_email.
Phone Status Values
Thephone_status field tells whether the response carries a phone number:
valid-phonesholds at least one numbernot_found-phonesis empty
phones exactly, after the phone_type filter. The field is only
present when enrichment_type includes phone.
Phone Type Values
phones keeps returning the plain list of E.164 numbers for existing
integrations; phone_details holds the same numbers in the same order, each
with its line type in type:
type | Meaning |
|---|---|
mobile | Mobile number |
fixed_or_mobile | Can’t be told apart from the number alone — mobile and landline share the same ranges (e.g. US, Canada). Treated as mobile by the phone_type filter |
fixed_line | Landline (office switchboard, desk phone) |
voip | VoIP number |
toll_free | Toll-free number |
premium_rate | Premium-rate number |
shared_cost | Shared-cost number |
personal_number | Personal (follow-me) number |
pager | Pager |
uan | Universal access number (company-wide number) |
voicemail | Voicemail access number |
unknown | The number could not be classified |
Number format
Numbers are in E.164 format, with no spaces ("+33622222222"). A number your
workspace has suppressed is returned as the literal string
"Contacts not shared", in both phones and phone_details[].number.
Do Not Call screening
When your workspace has DNC screening enabled, each US number inphone_details also carries:
| Field | Meaning |
|---|---|
dnc | on_list, not_on_list or unknown |
dnc_lists | Codes of the lists the number is on (e.g. FED for the federal list). Empty unless dnc is on_list |
dnc_checked_at | When the number was last screened, or null if never |
{ "number": "+12015550123", "type": "fixed_or_mobile", "dnc": "on_list", "dnc_lists": ["FED"], "dnc_checked_at": "2026-10-01T09:30:00Z" }
Pricing
Each enrichment request consumes credits based on the enrichment type requested and the providers used. A phone enrichment is only charged when a mobile number (mobile or fixed_or_mobile) is found. Check your account credits using the Account Credits endpoint.
Credits are checked before the waterfall runs. If your balance cannot cover the
enrichment the request is rejected with 402 Payment Required and
code: "insufficient_credits" (the response carries a top_up_url); if it
would exceed your workspace weekly credit limit, with 403 Forbidden and
code: "workspace_limit_exceeded". No provider is called and nothing is spent
in either case. See Credit and limit errors.Headers
A unique value you generate per operation, such as a UUID. Retrying with the same key and the same body returns the stored response instead of running the request again, so a retry after a timeout never charges twice. Successful responses are kept for 24 hours; a failed request is not stored and can be retried with the same key.
255"4f1c2e9a-8a7d-4c1b-9f63-2d6e0b5a7c11"
Body
Contact information for synchronous enrichment
Types of enrichment to perform. Can be any combination of ["email"], ["phone"], and/or ["personal_email"]. Note: "personal_email" requires the user to have consented to personal email enrichment in their account settings. Requests including "personal_email" or "phone" require linkedin_url.
1 - 3 elementsphone, email, personal_email Optional. Filters the phone numbers returned by phone enrichment. ["all"] (default) returns every number found; ["mobile"] returns only mobile numbers (type of mobile or fixed_or_mobile) and drops landlines, VoIP, toll-free and other non-mobile numbers. With ["mobile"] the waterfall keeps querying providers until one returns a mobile number. Any other value is rejected with 422. Ignored unless enrichment_type includes phone.
1all, mobile Response
Enrichment completed successfully
Deliverability of email (present if enrichment_type includes email): deliverable (verified) or catch-all (the domain accepts every address, so the mailbox could not be confirmed). null when no email was found. Pipecorn does not verify an email taken from your CRM (email_source: "crm"), so its status stays null unless Pipecorn had already checked that address.
deliverable, catch-all, null Was this page helpful?