Aller au contenu principal
Rodz API
FR EN
v2.0.0

Référence / Enrichment / Bulk-enrich contacts (webhook delivery)

Bulk-enrich contacts (webhook delivery)

Les résumés et descriptions des routes viennent du contrat OpenAPI et restent en anglais.

Enrich up to 50,000 LinkedIn profiles in a single call.

POST https://api.rodz.io/api/v1/enrichment/contacts/bulk

Documenté depuis le contrat OpenAPI, version 2.0.0 de l’API.

Lire la description complète

Enrich up to 50,000 LinkedIn profiles in a single call.

Bulk enrichment runs asynchronously: this call returns immediately with a batchId, and the results arrive when the batch completes.

Data freshness — you choose with freshness:

  • live (default): a fresh scrape of every profile — most current data, 0.5 credits per match. Slower; very large batches can take a while.
  • cached: served from our directory cache — 0.25 credits per match (half price) and much faster (typically ~1 min). Cached profiles are never more than 8 days old.

Delivery — you choose with deliveryMode:

  • webhook (default): the full enriched batch is POSTed to your webhookUrl when it finishes. Simplest for small/medium batches.
  • poll: results are held for you to fetch at GET /api/v1/enrichment/contacts/bulk/{batchId} (paginated). Nothing large is pushed; if you also pass a webhookUrl, you receive a small ready-notification (not the full payload) when the batch is done.

Recommended: use deliveryMode: poll for any request over 5,000 profiles. A completed 50,000-profile batch is a 50–150 MB payload; polling lets you pull it in pages instead of receiving one very large POST (which many servers reject or time out on).

Cost: per successfully enriched profile — 0.5 credits (freshness: live) or 0.25 credits (freshness: cached). No charge for profiles that can’t be matched, and the same whether you poll or use a webhook.

A profile that could not be looked up: A profile whose lookup could not complete this time also has person: null, plus error: {"code": "SERVICE_UNAVAILABLE", "message": "The lookup could not complete. Please retry later."}: it is not charged, the rest of the batch is delivered as usual, and you can submit that profile again later.

Request: profiles (each a LinkedIn url + optional externalId you’ll get back), deliveryMode, freshness, and a webhookUrl (required for webhook, optional for poll).

Immediate response (202):

{ "success": true, "data": { "batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "accepted": 2, "deliveryMode": "webhook", "freshness": "live", "pollUrl": null } }

For deliveryMode: poll, pollUrl is /api/v1/enrichment/contacts/bulk/{batchId}.

Webhook payload (POSTed to your webhookUrl when the batch finishes) — person is null when a profile can’t be matched, otherwise a full profile:

{
  "batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "total": 2,
  "found": 1,
  "results": [
    {
      "externalId": "crm-123",
      "url": "https://www.linkedin.com/in/marie-dupont",
      "person": {
        "firstName": "Marie", "lastName": "Dupont", "name": "Marie Dupont",
        "linkedInUrl": "https://www.linkedin.com/in/marie-dupont",
        "linkedInId": "251749025", "linkedinSalesLink": "ACoAAB1a2b3c4D",
        "headline": "Head of Sales at Lemlist",
        "seniority": "director", "jobFunction": "sales", "subRole": "sales_management",
        "industry": "Software Development",
        "activeCompany": "Lemlist", "currentCompanyId": 12345678,
        "location": "Paris, Île-de-France, France", "country": "FR", "region": "eu", "geoId": 105015875,
        "photoUrl": "https://media.licdn.com/dms/image/abc123",
        "followers": "4200", "followerCount": 4200, "connectionsCount": 500,
        "linkedinSummary": "Helping outbound teams book more meetings.",
        "skillsList": "Sales, SaaS, Team Leadership",
        "skillsDetail": [ { "name": "Sales", "endorsements": 42 }, { "name": "SaaS", "endorsements": 17 } ],
        "languages": "French, English",
        "languagesDetail": [ { "name": "French", "proficiency": "native" }, { "name": "English", "proficiency": "professional" } ],
        "currentCompanyDetail": [
          {
            "companyName": "Lemlist", "companyId": 12345678, "jobTitle": "Head of Sales",
            "startTime": "2023-01-01", "endTime": "Present",
            "companyUrl": "https://www.linkedin.com/company/lemlist",
            "companyWebsite": "https://lemlist.com",
            "companyIndustry": "Software Development", "companyStaffRange": "51-200",
            "companyHqCity": "Paris", "companyCountryCode": "FR"
          }
        ],
        "pastCompaniesDetails": [
          { "companyName": "Acme", "jobTitle": "Account Executive", "startTime": "2020-01-01", "endTime": "2022-12-01" }
        ],
        "formerCompaniesList": "Acme",
        "education": {
          "universitiesNamesList": "HEC Paris",
          "educationDetails": [ { "universityName": "HEC Paris", "degree": "MBA", "fieldsOfStudy": ["Marketing"], "startedOn": { "year": "2016" }, "endedOn": { "year": "2018" } } ]
        }
      }
    },
    { "externalId": "crm-456", "url": "https://www.linkedin.com/in/jean-martin", "person": null }
  ]
}

Each person returns: identity (firstName, lastName, name, linkedInUrl, linkedInId, linkedinSalesLink, photoUrl); role (headline, seniority, jobFunction, subRole, industry); location (location, country + countryName, region + regionName, geoId); reach (followers, followerCount, connectionsCount); linkedinSummary; skills (skillsList + skillsDetail with endorsement counts); languages (languages + languagesDetail with proficiency); current & past positions with tenure (yearsInRole, yearsInCompany) and company firmographics (currentCompanyDetail / pastCompaniesDetails — company industry, staff range, HQ, website, …); and education (with degrees). Any field is null when the profile doesn’t have it. Best coverage comes from LinkedIn profile URLs.

Authentification et en-têtes

Toutes les routes demandent une clé d’API. Vous la créez dans le tableau de bord, sous Intégrations puis API. Voir comment obtenir une clé.

Authorization requis

Bearer suivi de votre clé d’API, par exemple Bearer USR_...

Content-Type requis

application/json

Corps de la requête

profiles object[] requis

Profiles to enrich (1–50,000 per request)

  • minItems: 1
  • maxItems: 50000
2 champs dans profiles
url string requis

LinkedIn profile URL to enrich

externalId string facultatif accepte null

Your own reference for this profile — echoed back in the webhook payload

deliveryMode string facultatif

How to receive results. webhook (default): the full enriched batch is POSTed to your webhookUrl when it completes. poll: results are held for you to fetch via GET /api/v1/enrichment/contacts/bulk/{batchId} (paginated) — nothing large is pushed; if you also…

Lire la suite

How to receive results. webhook (default): the full enriched batch is POSTed to your webhookUrl when it completes. poll: results are held for you to fetch via GET /api/v1/enrichment/contacts/bulk/{batchId} (paginated) — nothing large is pushed; if you also pass a webhookUrl you get a small ready-notification when the batch finishes. Use poll for requests over 5,000 profiles so a 50,000-profile result isn't delivered in a single push.

par défaut
"webhook"
Valeurs permises :
  • "webhook"
  • "poll"
freshness string facultatif

Data freshness. live (default): a fresh scrape of each profile — most current data, full price (0.5 credits/match), and slower (large batches can take a while). cached: served from our directory cache — half price (0.25 credits/match) and much faster…

Lire la suite

Data freshness. live (default): a fresh scrape of each profile — most current data, full price (0.5 credits/match), and slower (large batches can take a while). cached: served from our directory cache — half price (0.25 credits/match) and much faster (typically ~1 min), at the cost of data that may be slightly less recent. Charged per successful match either way.

par défaut
"live"
Valeurs permises :
  • "live"
  • "cached"
webhookUrl string facultatif accepte null

HTTPS URL to receive results. Required for deliveryMode: webhook (receives the full batch). Optional for deliveryMode: poll (receives only a small ready-notification; omit it to poll silently).

Réponses

202 Accepted
Schéma de la réponse
success boolean facultatif
par défaut
true
data object requis
  • additionalProperties: true
5 champs dans data
batchId string requis

Identifier for this batch, echoed in the webhook / poll response

accepted integer requis

Number of profiles accepted for enrichment

deliveryMode string facultatif

How results will be delivered: webhook or poll

par défaut
"webhook"
freshness string facultatif

Data freshness for this batch: live or cached

par défaut
"live"
pollUrl string facultatif accepte null

For deliveryMode: poll — the path to GET the finished batch (paginated)

402 NO_MORE_CREDITS: the account's balance does not cover this call. Nothing was looked up and nothing was charged. Buy a credit pack, then retry.
422 Validation Error
Schéma de la réponse · HTTPValidationError
detail object[] facultatif
5 champs dans detail
loc string | integer[] requis
msg string requis
type string requis
input any facultatif
ctx object facultatif
429 Rate limit exceeded. Retry after the number of seconds in the Retry-After response header.