Skip to main content
POST
Synchronous single contact enrichment
This endpoint is unlisted. It is shared by direct link only and is not advertised in the public navigation. Please do not redistribute the URL.
Enrich a single contact with email, phone, and/or personal email data using our waterfall enrichment system. Unlike the async enrichment endpoint, this endpoint returns results synchronously in the response - no webhook polling required.
This endpoint is served on a different host from the rest of the API:
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 the enrichment_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"]
Requesting 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

When enrichment_type includes "phone", pass phone_type to choose which numbers come back: With ["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\"]"}.

Waterfall Enrichment

When you request multiple enrichment types, our system uses a sophisticated waterfall approach:
  1. Attempts to find the professional email from the most reliable providers first
  2. Searches for personal email through dedicated personal-email providers (Pipecorn, LeadMagic, Airscale)
  3. Searches for phone numbers using provider prioritization
  4. Returns results as soon as all requested data points are found or all providers are exhausted
This approach maximizes data quality while minimizing enrichment time and cost.

Response Format

Success Response

When enrichment succeeds, you’ll receive a 200 response with the enriched data: Email Only:
Phone Only:
Email and Phone:
Personal Email Only:

No Data Found

When nothing is found, the request still returns 200 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"}.

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: 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: The missing-name check runs first. 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 a linkedin_url.
The more context you provide, the higher the accuracy of the enrichment.

Custom Fields

You can include custom fields that will be returned in the response:
These custom fields are passed through unchanged and returned in the custom field of the response, making it easy to correlate results with your internal systems.

Email Status Values

The email_status field indicates the validation state of the email:
  • deliverable - Email is verified as deliverable
  • catch-all - The domain accepts every address, so the mailbox itself could not be confirmed
  • null - No email was found (email is null too), or the email comes from your CRM and Pipecorn had never checked it
The field is only present when 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

The personal_email_status field takes the same values as email_status:
  • deliverable - Personal email is verified as deliverable
  • catch-all - The domain accepts every address, so the mailbox itself could not be confirmed
  • null - No personal email was found
The field is only present when enrichment_type includes personal_email.

Phone Status Values

The phone_status field tells whether the response carries a phone number:
  • valid - phones holds at least one number
  • not_found - phones is empty
It follows 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:

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 in phone_details also carries:

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.

Authorizations

X-API-KEY
string
header
required

Headers

Idempotency-Key
string

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.

Maximum string length: 255
Example:

"4f1c2e9a-8a7d-4c1b-9f63-2d6e0b5a7c11"

Body

application/json

Contact information for synchronous enrichment

enrichment_type
enum<string>[]
required

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.

Required array length: 1 - 3 elements
Available options:
phone,
email,
personal_email
firstname
string

First name of the contact

lastname
string

Last name of the contact

company_name
string

Company name of the contact

domain
string

Company domain

linkedin_url
string<uri>

LinkedIn profile URL of the contact

phone_country_codes
string[]

Optional. Restrict phone enrichment to phone numbers from these countries. When omitted, the user's account-level default phone country codes are applied.

ISO 3166-1 alpha-2 country code (e.g. "US", "FR", "GB")

phone_type
enum<string>[]

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.

Maximum array length: 1
Available options:
all,
mobile
skip_crm
boolean
default:false

Optional. When your HubSpot or Salesforce already holds the contact's email or phone, it is returned without a search and costs no credit. Send true to run the paid search anyway, for example when the CRM value is out of date.

custom
object

Custom fields to include with the enrichment response

Response

Enrichment completed successfully

enrichment_id
string<uuid>

The ID of the enrichment request

first_name
string

The contact's first name

last_name
string

The contact's last name

linkedin_profile_url
string<uri>

The contact's LinkedIn profile URL

status
enum<string>

Always finished: the waterfall ran, even when nothing was found (check the per-type status fields). An enrichment that fails returns 500 instead.

Available options:
finished
email
string<email> | null

The enriched email address (present if enrichment_type includes email)

email_status
enum<string> | null

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.

Available options:
deliverable,
catch-all,
null
email_source
enum<string> | null

Where email comes from (present if enrichment_type includes email). crm: your HubSpot or Salesforce already held it, so no search ran and no credit was charged. pipecorn: found by the waterfall. null when there is no email.

Available options:
crm,
pipecorn,
null
personal_email
string<email> | null

The enriched personal email address (present if enrichment_type includes personal_email)

personal_email_status
enum<string> | null

Deliverability of personal_email (present if enrichment_type includes personal_email): deliverable or catch-all. null when no personal email was found.

Available options:
deliverable,
catch-all,
null
phones
string[]

Array of phone numbers found, after the phone_type filter is applied (present if enrichment_type includes phone)

Phone number in E.164 format, without spaces (e.g. +33622222222). A number your workspace has suppressed is returned as the literal string Contacts not shared.

phone_details
object[]

Phone numbers found, each with its line type. Same numbers and order as phones, after the phone_type filter is applied (empty array when none found).

phone_status
enum<string>

valid when phones holds at least one number, not_found when it is empty, whatever the phone_type (present if enrichment_type includes phone)

Available options:
valid,
not_found
custom
object

Custom fields passed in the request