Skip to main content
Rodz API
FR EN
v2.0.0

How-to / Integrate the API / API REST

How do you enrich a contact through the Rodz API: find their email, profile and phone number?

Updated on · View on the site · Markdown version

In short

Call GET /api/v1/enrichment/find-email with the person’s name and company to get a verified email, then GET /api/v1/enrichment/contact for their profile, and POST /api/v1/enrichment/phone for their phone number. An email costs 0.5 credit when found, a profile 0.25 to 0.5 credit, a phone number 5 credits. Nothing is charged without a result for the email and the phone.

Key points

  • A found email costs 0.5 credit; if no email is found, nothing is charged.
  • A profile costs 0.5 credit with freshness=live (3 to 4 seconds) and 0.25 credit with freshness=cached (under a second, profile at most 8 days old).
  • A phone number costs 5 credits when found; it arrives in 30 seconds to 5 minutes, by reading an id or by webhook. Nothing is charged if no number is found.
  • Deferred results (email, phone) are kept for 24 hours after the request.
Cost
0.5 credit per email found, 0.25 to 0.5 per profile, 5 per phone number found
Setup time
20 min

Before you start

  • A Rodz API key, created under Integrations → API in the dashboard (format USR_...), stored in the RODZ_API_KEY variable.
  • Credits on the account: an insufficient balance returns a 402 response.
  • The person’s first name, last name and company (name or domain). For the phone number, the URL of their LinkedIn profile.
  • Python 3.9+ with the requests library (pip install requests), or just curl.

Steps

  1. Step 1. Find a person's email

    GET /api/v1/enrichment/find-email takes firstName and lastName (or fullName), plus companyName or domain. With the person's name and their company, you get the best success rate.

    The response gives data.email (or null), and data.status, which tells whether the address is deliverable: Valid, Invalid, Unknown, Accept-all or Risky. Write only Valid addresses to your CRM.

    Find an email

    curl -G "https://api.rodz.io/api/v1/enrichment/find-email" \
      -H "Authorization: Bearer $RODZ_API_KEY" \
      --data-urlencode "firstName=Marie" \
      --data-urlencode "lastName=Dupont" \
      --data-urlencode "domain=lemlist.com"
  2. Step 2. Get the result when the search continues in the background

    When the search has not finished, the response carries status: "pending", a requestId and a statusUrl. For a deeper search, you can also start it yourself with POST /api/v1/enrichment/find-email: it answers right away with a requestId, and the result arrives in 10 to 60 seconds.

    Read it with GET /api/v1/enrichment/find-email/status/{request_id}. status is pending, completed or failed (in that case, send the POST again). creditsCharged is 0.5 if an email is found and 0 otherwise.

    find_email.py

    import os
    import time
    
    import requests
    
    BASE = "https://api.rodz.io/api/v1/enrichment"
    HEADERS = {"Authorization": f"Bearer {os.environ['RODZ_API_KEY']}"}
    
    submit = requests.post(
        f"{BASE}/find-email",
        headers=HEADERS,
        json={
            "firstName": "Marie",
            "lastName": "Dupont",
            "companyName": "Lemlist",
            "domain": "lemlist.com",
        },
        timeout=30,
    )
    submit.raise_for_status()
    request_id = submit.json()["requestId"]
    
    for _ in range(24):  # 2 minutes at most, one read every 5 seconds
        status = requests.get(
            f"{BASE}/find-email/status/{request_id}", headers=HEADERS, timeout=30
        )
        status.raise_for_status()
        body = status.json()
        if body["status"] != "pending":
            break
        time.sleep(5)
    
    print(body["status"], body.get("email"), body.get("creditsCharged"))
  3. Step 3. Complete the person's profile

    GET /api/v1/enrichment/contact returns the professional profile: current position, work history, education, skills. Give the LinkedIn URL (url) to get the richest profile; an email or a name with their company returns fewer fields.

    freshness sets the trade-off. live (default) reads the profile at the moment of the call: 0.5 credit, 3 to 4 seconds. cached answers from a stored profile, at most 8 days old: 0.25 credit, under a second. If response time matters to you, take cached.

    A profile from the cache

    curl -G "https://api.rodz.io/api/v1/enrichment/contact" \
      -H "Authorization: Bearer $RODZ_API_KEY" \
      --data-urlencode "url=https://www.linkedin.com/in/marie-dupont" \
      --data-urlencode "freshness=cached"
  4. Step 4. Request the phone number, then read it

    POST /api/v1/enrichment/phone requests a number. firstName, lastName and company are required. Also give linkedinUrl: the number is found from the LinkedIn profile, and without it phone is null and nothing is charged. phoneCountry (two-letter country code, for example FR) and mobileOnly narrow the result.

    The response gives an enrichmentId. Read it with GET /api/v1/enrichment/phone/{enrichment_id} until status is completed or failed; allow 30 seconds to 5 minutes. A number found costs 5 credits. Nothing is charged if there is none, or if your account already paid for this person in the last 30 days.

    Request a phone number

    curl -X POST "https://api.rodz.io/api/v1/enrichment/phone" \
      -H "Authorization: Bearer $RODZ_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "firstName": "Marie",
        "lastName": "Dupont",
        "company": "Lemlist",
        "linkedinUrl": "https://www.linkedin.com/in/marie-dupont",
        "phoneCountry": "FR"
      }'
    
    curl "https://api.rodz.io/api/v1/enrichment/phone/$ENRICHMENT_ID" \
      -H "Authorization: Bearer $RODZ_API_KEY"
  5. Step 5. Handle refusals: credits, limits and busy lookups

    • 402: the balance is insufficient and nothing is charged. The phone number needs at least 5 at the time of the request (INSUFFICIENT_CREDITS); for an email or a contact, the code is NO_MORE_CREDITS. Top up the account and send the call again.
    • 429 with TOO_MANY_CONCURRENT_REQUESTS: lookups are busy, nothing is charged. Wait the seconds given by the Retry-After header, then send the same request again.
    • 429 with DAILY_PHONE_LOOKUP_LIMIT: the daily phone limit is reached. Retry-After gives the seconds until 00:00 UTC, and the body shows limit, usedToday, dailyLimit and resetsAt.
    • 429 with DAILY_PHONE_SPEND_LIMIT: the daily limit on numbers found is reached. Retry-After gives the seconds until 00:00 UTC, and the body shows limit and resetsAt.
    • 503 with PHONE_LOOKUP_UNAVAILABLE: phone lookup is temporarily unavailable, nothing is submitted or charged. Retry after Retry-After seconds.
    • 429 with RATE_LIMIT_EXCEEDED: more than 9,000 requests in the minute for this key. Same reply: wait Retry-After.

Example payload

Response of GET /api/v1/enrichment/find-email when the email is found

{
  "data": {
    "email": "marie.dupont@lemlist.com",
    "emailDomain": "lemlist.com",
    "status": "Valid",
    "smtpCheck": true,
    "mxfound": true,
    "patterns": ["{first}.{last}@lemlist.com"],
    "mostProbableEmail": [],
    "flags": [],
    "mxRecord": "aspmx.l.google.com",
    "smtpProvider": "google"
  },
  "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "completed"
}

Enrichment answers a smaller question than a signal: “I already have this person, what can I learn about them?”. Calls are synchronous or deferred depending on the route, and they share the API key, the rate limit and the credits of your signals.

Frequently asked questions

What happens if no email is found?

The response carries data.email as null and nothing is charged. The 0.5 credit cost applies only to a returned email.

Do I need the LinkedIn URL to find an email?

No. The name and the company (companyName or domain) are enough. For the deferred search (POST), you can add contactLinkedinUrl or companyLinkedinUrl to raise the chances of finding the address. For the phone number, the LinkedIn profile URL is required.

How long does a deferred result stay readable?

24 hours after the request, for the email as for the phone number. After that the id is unknown: send the request again.

Can I read several phone numbers at once?

Yes. GET /api/v1/enrichment/phone?ids=… takes up to 100 enrichmentId values separated by commas and returns one object per request found. Reading is free; above 100 ids, the API answers 422 TOO_MANY_IDS.

What is the difference between live and cached for a profile?

live reads the profile at the moment of the call (0.5 credit, 3 to 4 seconds). cached answers from a stored profile, at most 8 days old (0.25 credit, under a second). In most cases both return the same fields.