← All articlesTutorial

Contact enrichment API tutorial: find work emails and mobile numbers in code

Curl and Node.js examples for work emails, mobiles and bulk jobs, plus the caching, retry and rate-limit details that stop you paying twice.

November 202611 min readAirscale team
A code window sending lookups to an envelope and a phone

Three calls cover it. One finds a verified work email, one finds a mobile for the few people you will phone, and a bulk call with a webhook handles lists. Airscale charges only when it finds something, so budget by results found, not requests sent.

Work email2 credits, only when found
Mobile number40 credits, only when found
Bulk emailUp to 100 people per request

Disclosure: Airscale publishes this tutorial. Airscale endpoints, fields and limits come from the API reference at docs.airscale.io, prices from airscale.io/pricing, and other vendors’ facts from their own pages, as published on November 29, 2026. No head-to-head test was run, the table is not a ranking, and figures in examples are illustrative.

What you need before the first request

  • A paid plan. Every paid plan includes API access. Starter is $49 per month for 4,000 credits.
  • An API key. Open Settings → API keys and create one. Keys belong to the workspace and draw on its credit balance.
  • A test record. The examples use fictional people at example.com. Swap in a colleague who agrees to it.
Use one key per integration so you can revoke it without touching the others. Fictional demo keys.

Store the key in an environment variable and send it as a Bearer token on every request. Test it against the credit balance endpoint, which takes no body and costs no credits.

bash
export AIRSCALE_API_KEY="YOUR_API_KEY"

curl --request POST \
  --url https://api.airscale.io/v1/credits \
  --header "Authorization: Bearer $AIRSCALE_API_KEY"
json
{
  "status": "success",
  "response": {
    "credits": 1200
  }
}

A missing or invalid key returns 401 Unauthorized.

Calls 1 and 2: find a work email, then a mobile

Call 1: the work email

POST a JSON body to https://api.airscale.io/v1/email. It accepts five fields: linkedin_profile_url, first_name, last_name, domain and company_name. Send a LinkedIn profile URL, or both name fields plus a domain or a company name. All five together is fine. There is no full_name field.

bash
curl --request POST \
  --url https://api.airscale.io/v1/email \
  --header "Authorization: Bearer $AIRSCALE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "first_name": "Example",
    "last_name": "Person",
    "domain": "example.com"
  }'

The call is synchronous. A hit looks like this (the reference prints placeholder labels for provider and verifier):

json
{
  "status": "success",
  "email": "[email protected]",
  "email_status": "valid",
  "provider": "<provider>",
  "verifier": "<verifier>",
  "catch_all": "no",
  "linkedin_profile_url": "https://www.linkedin.com/in/example-person-000000"
}

A miss is still HTTP 200, with a different status:

json
{
  "status": "not_found",
  "email": null
}
  • Branch on status, not on the HTTP code. A 200 means “success” or “not_found”. A miss is a normal outcome, so store it.
  • Cost. “success” costs 2 credits. “not_found” is not charged.
  • email_status and catch_all. email_status is “valid” on a successful result. catch_all is “yes” or “no”.
  • Optional fields. Only status and email are required in the response. Code for every other field being absent.

Call 2: the mobile number

A mobile costs 40 credits when found, twenty times an email, so call this endpoint only for people someone will phone. The body takes one field, the LinkedIn profile URL.

bash
curl --request POST \
  --url https://api.airscale.io/v1/phone \
  --header "Authorization: Bearer $AIRSCALE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "linkedin_profile_url": "https://www.linkedin.com/in/example-person-000000"
  }'
json
{
  "status": "success",
  "linkedin_profile_url": "https://www.linkedin.com/in/example-person-000000",
  "phone_numbers": "+12025550147",
  "all_phone_numbers": ["+12025550147", "+12025550148"],
  "provider": "<provider>"
}
  • phone_numbers is the primary number as a single string, despite the plural name.
  • all_phone_numbers is an array of normalized international numbers, duplicates removed, primary first. It can hold only the primary number.
  • Not found returns status “not_found”, phone_numbers null, an empty all_phone_numbers array and provider null. It is not charged.

With only a name and a company, resolve the profile first with the People URL finder. POST /v1/url-search-people takes first_name, last_name and company_name, returns the profile in a url field, costs 0.5 credits when found and is limited to 6 requests per second per workspace.

Call 3: enrich a list with the bulk endpoint and a webhook

For lists, send 1 to 100 people per request to the bulk email finder. Each input takes the same five fields as the single call, plus an optional custom_id. Put your own record ID there. Without it, you get the item’s zero-based position in the array.

bash
curl --request POST \
  --url https://api.airscale.io/v1/email-bulk \
  --header "Authorization: Bearer $AIRSCALE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "webhook_url": "https://hooks.example.com/email-results",
    "inputs": [
      { "custom_id": "crm-1001", "linkedin_profile_url": "https://www.linkedin.com/in/example-person-000000" },
      { "custom_id": "crm-1002", "first_name": "Sample", "last_name": "Contact", "company_name": "Example Company" }
    ]
  }'

The HTTP 202 response only confirms the batch was queued:

json
{
  "status": "accepted",
  "count": 2
}

Results then arrive one callback per person at your webhook_url. Every callback echoes custom_id. Four outcomes are documented:

status in the callbackMeaningCharged
successEmail found. Carries email, email_status “valid”, provider and verifier.2 credits
not_foundNo email for this person. email is null.No
timeoutThe lookup was exhausted. email is null.No
errorerror is “insufficient_credits”: the item was skipped because the remaining balance fell below 2 credits. email is null.No
There are no automatic webhook retries

Automatic webhook retries are not part of this operation’s contract. If your endpoint is down when a callback arrives, assume it will not be sent again. Three habits cover it:

  1. Write the expected results before you submit

    Insert one row per custom_id with state “pending” and the time you sent the batch.

  2. Answer 2xx first, process after

    Save the raw callback, return a 2xx response at once, and do the slow work (CRM update, scoring) in a background job.

  3. Reconcile on a timer

    After a delay you choose, resubmit only the custom_ids still pending. The reference does not say whether a resubmitted person is charged again when found, so assume it is. Add credits before you resubmit items skipped with insufficient_credits.

The bulk page prints no complete callback payload. Write your parser from the first callbacks you receive and rely only on the documented fields: custom_id, status, email, email_status, provider, verifier and error.

Make it production-safe: cache, retries, limits, secrets, cost

Cache every answer, including the misses

No idempotency key is documented, so build your own protection against paying twice. Key each lookup on the LinkedIn URL, or on lowercased first name, last name and domain, and check your store before every call.

Retry only what is safe to retry

  • 502 and 503. Retry a limited number of times with increasing delays, then stop and contact support, as the email and mobile finder pages recommend.
  • 429. You are over the rate limit. Retry after the current window resets, and cap both the delay and the number of attempts.
  • 400, 401, 403, 413, 500. Do not retry in a loop. They mean an invalid body or missing fields, a bad key, insufficient access or credits, a body over 256 KiB, or an unexpected server error.
  • Client timeouts. A timeout does not tell you whether the request completed or was charged. Do not loop on it.

Stay under the rate limits

EndpointLimit per workspace
Email finder3,000 requests per minute
Bulk email finder3,000 input items per minute (items, not HTTP requests)
Mobile finder6,000 requests per minute

Keep the key on the server

Never put the key in browser code, a mobile app or source control. If one leaks, rotate it in Settings and deploy the new value.

A short Node.js example with cache, backoff and a cost log

javascript
// Node.js 18+. Save as enrich.mjs and run: node enrich.mjs
// Server-side only: never ship the key to a browser.
const API = "https://api.airscale.io/v1";
const headers = {
  Authorization: `Bearer ${process.env.AIRSCALE_API_KEY}`,
  "Content-Type": "application/json",
};
const MAX_ATTEMPTS = 4;
const cache = new Map(); // swap for your database
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));

async function findWorkEmail(person) {
  const key = (person.linkedin_profile_url ||
    `${person.first_name}|${person.last_name}|${person.domain || person.company_name}`).toLowerCase();
  if (cache.has(key)) return cache.get(key); // never pay twice for the same person

  for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt++) {
    const res = await fetch(`${API}/email`, {
      method: "POST",
      headers,
      body: JSON.stringify(person),
      signal: AbortSignal.timeout(60000), // our choice of 60 s. A timeout throws and is not retried
    });

    if (res.status === 200) {
      const result = await res.json(); // status is "success" or "not_found"
      cache.set(key, { ...result, checked_at: Date.now() });
      console.log(key, result.status, result.status === "success" ? "2 credits" : "0 credits");
      return result;
    }
    if (![429, 502, 503].includes(res.status)) {
      throw new Error(`Email finder returned ${res.status}`); // 400, 401, 403, 413, 500: do not retry
    }
    if (attempt < MAX_ATTEMPTS) await sleep(Math.min(30000, 1000 * 2 ** attempt)); // 2 s, 4 s, 8 s
  }
  throw new Error(`Email finder still failing after ${MAX_ATTEMPTS} attempts`);
}

const result = await findWorkEmail({ first_name: "Example", last_name: "Person", domain: "example.com" });
console.log(result.email);

Budget by success

Hypothetical run: 1,000 signups, mobiles for 100 of them
Work email lookups sent1,000
Emails found (assumed 600) × 2 credits1,200 credits
Emails not found (400)0 credits
Mobile lookups sent100
Mobiles found (assumed 40) × 40 credits1,600 credits
Total2,800 credits
Illustrative numbers. On Starter, $49 ÷ 4,000 credits is $0.01225 per credit, so 2,800 credits is about $34.30 of plan value.

Which APIs offer work emails and mobiles on an entry plan

Five APIs return both. Airscale is listed first because we wrote this, the rest alphabetically. A credit buys different things at each vendor, so do not compare credit counts directly.

APIEntry plan and API accessWork emailMobileCharged for a miss?
AirscaleStarter, $49 per month, 4,000 credits. API in every paid plan.2 credits40 creditsNo
ApolloBasic, $49 per month. The pricing FAQ says “API access is available on Custom plans”.1 credit8 more credits when a mobile is returnedNo
FullEnrichPro, from $29 per month for 500 credits. API access listed on Pro.1 credit10 creditsNo
LushaStarter, $49.90 per month, 400 credits. API listed with “Strict rate limits”.1 credit5 credits per phone numberNo
People Data LabsPro, starting at $98 per month, from 350 credits per month. The free plan hides emails and phones.Billed per matched record, not per fieldSame: per matched recordBilling is per match

Apollo’s credit consumption and rate limits vary by plan, and its phone results arrive by webhook or polling. Its figures here exclude waterfall enrichment, which costs more and can be charged without a result. Lusha prices a “phone number”, not specifically a mobile. FullEnrich shows prices in euros to European visitors.

Where this approach breaks

  • Not everyone has a findable email or mobile. Airscale publishes no find rate, so run a sample of your own list before you size a budget.
  • Verified is not a delivery guarantee. “valid” describes the address when it was checked. It can still bounce later.
  • Bulk covers emails only. The documented bulk endpoint handles work emails. Mobiles go one request at a time.
  • Contact data is personal data. Calling and emailing are regulated differently by country, and an API result does not settle whether you may contact someone. This is not legal advice.

Questions people ask

Which contact enrichment APIs include work emails and mobile numbers on an entry-level plan?

Airscale ($49 per month), FullEnrich (from $29 per month) and Lusha ($49.90 per month) list both data types and API access on their entry paid plans, Lusha with strict rate limits. People Data Labs unlocks contact fields on Pro, starting at $98 per month, and Apollo’s pricing FAQ puts API access on Custom plans.

Am I charged when the API finds nothing?

Not with Airscale: not_found costs 0 credits. FullEnrich, Lusha and Apollo publish similar rules, and People Data Labs says it charges per match.

Can I find a mobile number from a name and company?

Not in one call. The mobile finder only takes linkedin_profile_url, so get it from the People URL finder first (0.5 credits when found).

What happens if my webhook is down during a bulk run?

Assume the missed results will not be sent again: the bulk contract includes no automatic callback retries. Resubmit the custom_ids that never came back.

Run one record, then one batch

Start with the credit balance call, then one email lookup on a person you know, then a batch of ten with a webhook you can inspect. The full reference starts at the Airscale API overview. Plans are on the pricing page.

Sources and review date

All pages were read on November 29, 2026.

  1. Airscale API overviewdocs.airscale.io
  2. Airscale API authenticationdocs.airscale.io
  3. Airscale credit count referencedocs.airscale.io
  4. Airscale email finder referencedocs.airscale.io
  5. Airscale bulk email finder referencedocs.airscale.io
  6. Airscale mobile finder referencedocs.airscale.io
  7. Airscale People URL finder referencedocs.airscale.io
  8. Airscale API rate limitsdocs.airscale.io
  9. Airscale pricingairscale.io
  10. Apollo pricingapollo.io
  11. Apollo API pricingdocs.apollo.io
  12. Apollo People Enrichment referencedocs.apollo.io
  13. FullEnrich pricingfullenrich.com
  14. Lusha pricinglusha.com
  15. Lusha API billing FAQdocs.lusha.com
  16. People Data Labs person data pricingpeopledatalabs.com
  17. People Data Labs Person Enrichment API referencedocs.peopledatalabs.com

Build and enrich targeted leads lists with the best data

Get your 14 days free trial

Try it yourself for free
Airscale lead sourcing workspace