# One email in. A routed, qualified lead out.

> Turn a form email into a full person and company profile, then score and route the lead in seconds. Request examples, fallbacks and per-lead costs.

Keep the form short. Look the person up by email, fall back to the company by domain, then route on seniority, size and region before a rep ever opens the record.

## Highlights
- **Email to profile.** `POST /v1/people/by-email` returns title, seniority, location, history and employer for **2 credits**, only if found.
- **Works on personal addresses.** Email to profile accepts work and personal emails, so a free-mail sign-up is not a dead end.
- **Company fallback.** `GET /v1/companies/{domain}` returns 68 company data points for **1 credit**, only if found.
- **Route on real fields.** Branch on `seniority`, `department`, `employee_range`, `industry` and `country_code`.
- **Phones only for the top tier.** Add `include: ["phone"]` for high-value leads; +10 credits only when a number is found.
- **Misses are free.** No match means no charge, so enriching every submission is safe.

## Steps
1. **Capture the submission** — Send each form or sign-up event to a small handler you control.
2. **Look up the person** — Call `POST /v1/people/by-email` with the submitted address.
3. **Fall back to the company** — If no person matches and the domain is a work domain, call `GET /v1/companies/{domain}`.
4. **Score and route** — Apply your routing rules to seniority, department, company size, industry and region.
5. **Add phones for top-tier leads** — Re-run email to profile with `include: ["phone"]` only where speed to call matters.
6. **Write back to the CRM** — Store the fields you route on, plus the Dizo person id, on the lead record.

## APIs used
| API | Endpoint | Credits | Charged | Reference |
|---|---|---|---|---|
| Email to profile | `POST /v1/people/by-email` | 2 credits | Only if found | [docs](https://dizo.ai/docs/email-to-profile.md) |
| Domain to company | `GET /v1/companies/{domain}` | 1 credit | Only if found | [docs](https://dizo.ai/docs/domain-to-company.md) |
| Company enrich | `POST /v1/companies/enrich` | 1 credit | If matched | [docs](https://dizo.ai/docs/company-enrich.md) |
| Person enrich | `POST /v1/people/enrich` | 2 credits (+1 email, +10 phone) | If matched | [docs](https://dizo.ai/docs/people-enrich.md) |
| Suppression list | `POST /v1/suppression` | Free | Never | [docs](https://dizo.ai/docs/suppression.md) |


## What you are building

Inbound leads arrive with very little attached. A demo form might collect a name and an email. A product sign-up might collect only the email. Asking for more fields lowers conversion, but routing a lead without knowing who they are or where they work means either a slow manual review or a rep calling someone who was never a fit.

The fix is to enrich the lead the moment it arrives. You send the email to Dizo, get back the person and their employer, and route on real fields: seniority, department, company size, industry and region. The rep sees a complete record, and the lead reaches the right queue before anyone opens it. This guide walks through the flow, the fallbacks and what it costs per lead. The [inbound lead](/glossary/inbound-lead) entry covers the term itself.

You need somewhere to run a small piece of logic when a form is submitted: your own backend, a serverless function, or a workflow tool that can make HTTP requests. You need write access to the lead or contact object in your CRM, and agreed routing rules. If sales and marketing have not agreed what counts as a qualified lead, settle that first; enrichment makes routing fast, but it cannot decide the rules for you.

You also need a Dizo key with `data:read`, ideally restricted to the two or three endpoints this flow uses. You get a live key when you [sign up](/signup). A `dz_test_` key returns synthetic data, which is enough to build and test the whole pipeline.

## Step 1: capture the submission

Send every submission to one handler, whatever the source: website form, product sign-up, webinar registration or chat widget. A single entry point means one set of routing rules and one place to fix bugs. The handler needs the email address, the source, and a timestamp. Anything else the form collected is a bonus.

Make the handler idempotent. Forms get double-submitted and webhooks get retried. Pass an `Idempotency-Key` header derived from the submission id on every Dizo POST, so a retry within 24 hours is never charged twice, and check your CRM for an existing lead with that email before creating a new one.

## Step 2: look up the person by email

Call `POST /v1/people/by-email` with `{"email": "maya@ledgerline.io"}`. When Dizo knows the person, you get back the full contact record, 100+ data points, including `full_name`, `job_title`, `seniority`, `department`, `location` with `country_code` and `timezone`, `time_in_role`, a profile URL and an employer summary with `name`, `domain`, `employee_range` and `industry`. It costs 2 credits, and only when found. If nothing matches, the call is free.

This endpoint works on personal addresses as well as work ones. That matters for product-led sign-ups, where people often register with a personal email. If the person is known, you still learn where they work. Use `fields` to return only what you route on if you want a smaller payload. The [email to profile API](/products/email-to-profile-api) page covers the full response.

## Step 3: fall back to the company

When the person lookup misses, you can still learn a lot from the domain, as long as it is a work domain. Keep a short list of free-mail domains in your handler and skip this step for them. For everything else, call `GET /v1/companies/{domain}`, which returns 68 data points including headcount, revenue range, HQ, phones, SIC and NAICS codes, funding and technologies. It costs 1 credit only if the domain is known, and subdomains and `www.` are normalised for you.

A company-only match is often enough to route. A lead from a 2,000-person company in your core industry deserves a fast response even if you do not yet know the person's title. If you prefer the compact firmographic set, `POST /v1/companies/enrich` returns headcount, revenue band, industry, HQ, funding and technologies for the same 1 credit when matched.

## Step 4: score and route

Map the enriched fields onto rules your team already agreed. Keep the rules few and explicit; complicated scoring that nobody can explain is hard to trust and harder to debug. Write the reason for each routing decision onto the lead, such as "enterprise, VP, US", so reps and RevOps can see why a lead landed where it did.

Handle the gaps deliberately. A lead with no person match and a free-mail domain should go to a nurture or self-serve path, not be dropped. A lead whose `time_in_role` is very short may be new in the job and worth a different message. The [lead routing](/glossary/lead-routing) entry covers common patterns.

- **Seniority:** `c_level` and `vp` to the senior AE queue; `director` and `manager` to SDRs.
- **Company size:** `employee_range` above your enterprise threshold goes to the enterprise team.
- **Region:** `country_code` or `state` decides the territory owner.
- **Industry:** out-of-ICP industries go to nurture rather than a rep.
- **No match:** company-only matches route on firmographics; nothing at all goes to self-serve.

## Step 5: add phones only where they pay off

Phone numbers are the most expensive part of enrichment, so add them selectively. For leads that land in your highest tier, call email to profile again with `include: ["phone"]`, or include it on the first call if your routing can be decided upstream. Phones add 10 credits, only when a number is found, and come back with line type and a `dnc` flag reflecting the US National Do Not Call Registry.

Dizo returns the flag; how you use it is your decision and your compliance team's. This is not legal advice. At minimum, show the flag to reps next to the number so it is never hidden.

## Step 6: write back and keep it current

Write the routing fields and the Dizo person id onto the lead. The id lets you enrich again later without re-matching from scratch, and lets you add the person to a job-change watchlist with `POST /v1/signals/watch` if they become a customer champion.

One edge case: suppressed records are dropped from every Dizo lookup. If you suppress customer domains to keep them out of outbound, an existing customer filling in your form will come back without a match. Check your CRM for an existing account before calling Dizo, and route known customers to their account owner directly.

## Variations by setup

With your own backend, the handler is a few dozen lines: receive the event, call email to profile, branch on the result, write to the CRM. With a workflow tool, the same logic is an HTTP step, a condition step and a CRM update step; check your tool's own documentation for how it sends JSON bodies and auth headers. Either way, keep the Dizo key in the tool's secret store rather than pasted into a step.

If you already hold a backlog of unenriched inbound leads, do not loop over them one call at a time. Submit them through `POST /v1/batch` with `"endpoint": "/v1/people/by-email"`, up to 10,000 items per job, at the same per-item price with misses still free. Send it with `"dry_run": true` first to see the quote.

## Common mistakes

Asking for company size and title on the form and then enriching anyway wastes conversion; trust enrichment and shorten the form. Routing on fields you never write back leaves reps unable to see why a lead reached them. Calling the company fallback for free-mail domains spends nothing when it misses, but adds latency and clutter for no gain.

The quieter mistake is never revisiting the rules. Review where leads routed each month, especially the no-match and nurture buckets. If good leads keep landing in nurture, the rules need adjusting, not the data.

## What it costs per month

A hypothetical company receives 1,500 inbound leads a month. Say 900 match on email to profile, at 2 credits each: 1,800 credits. Of the 600 that miss, 400 are on work domains and 300 of those match on domain to company, at 1 credit each: 300 credits. The top tier is 100 leads, and phones are found for 60 of them at 10 credits: 600 credits.

The total is 2,700 credits. At the pay-as-you-go rate of $0.025 that is $67.50 a month, or about 4.5 cents per lead received. On a Builder purchase at $0.021 it is $56.70. Misses cost nothing, so a quiet month costs less automatically. See [pricing](/pricing) for every tier.

## FAQ

### What if someone signs up with a personal email?
Email to profile accepts personal addresses. If Dizo knows the person, you get their current employer and title back. If not, the call is free and you can route the lead to a self-serve or nurture path.

### Is enrichment fast enough to route in real time?
The lookups are single synchronous calls, so most teams run them inline in the form handler. Check `GET /v1/me` for your key's rate limits and use batch only for backfills.

### Should I use person enrich or email to profile?
For an email-only form, email to profile is built for exactly that input at 2 credits when found. Person enrich also identifies people from an email, phone, profile URL or name plus company, and can add email and phone in the same call.

### Do I pay for leads Dizo cannot identify?
No. Email to profile and domain to company are charged only when found. Company enrich is charged only when matched.

### Why did an existing customer come back with no match?
Suppressed records are dropped from every lookup. If you suppress customer domains for outbound, those people will not be enriched on inbound either. Match against your CRM first.

### Can an agent do this instead of a workflow?
Yes. Over the [MCP server](/mcp), an agent can call `dizo_email_to_profile` and `dizo_domain_to_company`, then apply your routing rules. For high-volume forms, a deterministic handler is usually simpler to audit.
