# Enrichment and triggers inside the product.

> Enrich signups in the request path, route qualified accounts to sales, and trigger automations from signed webhooks for job changes and new matches.

Identify the company and person behind each signup, score and route them in the same request, and react to job changes and new matching accounts through signed webhooks. Misses are free, and every key has its own caps.

## Highlights
- **Signup identification.** Email to profile returns title, seniority and employer for a signup email, at 2 credits only if found.
- **Company in one GET.** `GET /v1/companies/{domain}` returns 68 data points, at 1 credit only if found.
- **Signed event stream.** Webhooks for job changes, monitor results, finished jobs and billing alerts, each with an HMAC signature.
- **Trim the payload.** Use `fields` to return only what your routing or scoring logic reads.
- **New matches only.** Monitors rerun a saved search and send only accounts or people that newly match.
- **Per-environment keys.** Separate keys for staging and production, each with caps and an endpoint allow-list.

## Steps
1. **Enrich at signup** — Call domain to company or email to profile when a user registers, with a tight per-request cap.
2. **Score and route** — Apply your rules to the returned fields and send qualified accounts to sales.
3. **Subscribe to events** — Register a webhook for job changes and monitor results, and verify every signature.
4. **Measure and iterate** — Compare conversion by enriched segment and adjust the rules.

## 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) |
| Webhooks | `POST /v1/webhooks` | Free | Never | [docs](https://dizo.ai/docs/webhooks.md) |
| Monitors | `POST /v1/monitors` | 1 credit / 25 new results | Per new result | [docs](https://dizo.ai/docs/monitors.md) |
| Job-change signals | `POST /v1/signals/watch` | 1 credit / change | Per change detected | [docs](https://dizo.ai/docs/signals.md) |
| API keys | `POST /v1/keys` | Free | Never | [docs](https://dizo.ai/docs/keys.md) |


## Growth engineering's data problems

Growth engineers sit between the product and the revenue team. Your work is the plumbing that turns product activity into pipeline: signup flows, onboarding branches, lead scoring, routing rules, lifecycle emails and the automations that tell a salesperson an account is worth a call. Almost all of it is limited by what you know about the user. An email address on its own says little. The same address with a title, a seniority level, an employer and that employer's size says a great deal.

So growth engineers end up owning enrichment. Product managers want shorter forms. Sales wants better routing. Marketing wants segments. Finance wants to know what it costs. This page covers how to build enrichment and event-driven automation with Dizo inside a product, with the endpoints in order and the controls you need to run it in production.

## Why enrichment projects stall

The usual blockers are latency, cost and maintenance. Enrichment in the signup request path has to be quick and has to fail open, since a slow third-party call cannot be allowed to block account creation. Cost is unpredictable when a provider bills per attempt, and a viral week or a bot attack can produce a bill nobody planned for. Maintenance creeps in when enrichment runs once at signup and then never again, so routing decisions rely on data that is months old.

Dizo's design addresses each: lookups that find nothing are free, every request can carry a `max_credits` ceiling, each key has daily and monthly caps, and job-change signals and monitors push changes to you instead of requiring a nightly re-enrichment job.

## Automation 1: enrich at signup

At registration you have an email and, often, nothing else. If the address is on a business domain, call [`GET /v1/companies/{domain}`](/docs/domain-to-company). It returns 68 data points for the company, including employee count and range, revenue range, industry, HQ, funding round and technologies, for 1 credit only if found. Pass `fields` to limit the response to what your logic reads. Cache the result per domain so the second signup from the same company costs nothing.

For person-level data, call [`POST /v1/people/by-email`](/docs/email-to-profile). It returns title, seniority, department, location and employer, for 2 credits only if found, and works on personal addresses too. Run either call asynchronously after account creation, with a short timeout and a `max_credits` of 2 or 3, so the user never waits on it. The [PLG signup enrichment](/use-cases/plg-signup-enrichment) use case covers this flow end to end.

## Automation 2: score and route

With firmographics and seniority attached, routing becomes a set of rules you can test. A director or above, at a company with more than 200 employees, in a target industry, goes to an account executive within the hour. A manager at a mid-sized company goes into a product-led nurture with a sales assist after activation. Everyone else stays self-serve. Keep the rules in code or configuration with version history so you can tie changes to conversion results.

For accounts that qualify, sales usually wants more than the signup. The decision-maker finder returns the right leader at the company from your ranked titles, and the org chart lists the wider buying committee. Run those only for qualified accounts, since they cost more than the signup lookup. The [inbound lead routing](/use-cases/inbound-lead-routing) use case has a worked set of rules.

Treat routing thresholds as experiments. Split qualified signups between a fast sales touch and a product-only path for a few weeks, and compare activation and paid conversion. Enrichment makes the split meaningful because both arms are defined by the same fields. Record which rule version routed each account, so a later change in conversion can be traced to a specific threshold rather than guessed at.

## Automation 3: event-driven triggers

Register one endpoint with [`POST /v1/webhooks`](/docs/webhooks) and subscribe to the events you need: `signal.job_change`, `monitor.new_results`, `batch.completed`, `list.completed` and the billing events. Every delivery has a `Dizo-Signature` header computed as HMAC-SHA256 over the timestamp, a dot and the raw body. Verify it before parsing, reject stale timestamps, and process each event idempotently because deliveries are retried with backoff for 24 hours.

Job-change signals are often the highest-value trigger. Add your active users and key customer contacts to a watchlist with [`POST /v1/signals/watch`](/docs/signals). Watching is free, and each detected change costs 1 credit and arrives with the old and new role. When a power user moves to a new company, create a task for sales or send a personal note; that person already knows your product.

## Automation 4: monitors for net-new accounts

Outbound growth loops need a steady supply of new targets. A [monitor](/docs/monitors) reruns a saved search daily or weekly and sends `monitor.new_results` with only the people or companies that started matching since the last run. A query like new heads of data at Series B software companies in North America produces a short list each week, at 1 credit per 25 new results, and nothing is delivered or charged twice.

Add `include: ["email"]` for verified emails on each new match, billed only when found, and set `max_credits_per_run`. Feed the webhook into the same routing code as your signups, so new targets and new users go through one set of rules. If you prefer configuration over code, the [n8n](/integrations/n8n) integration page covers connecting a workflow tool to Dizo.

## Backfilling the users you already have

The automations above cover new signups. Your existing user table needs a one-time backfill, and the request path is the wrong place for it. Use [`POST /v1/batch`](/docs/batch), which accepts up to 10,000 lookups per job, runs asynchronously and sends `batch.completed` to your webhook when the results are ready as JSONL or CSV. Each item is charged by the same rules as a single call, so rows that find nothing are free, and checking job status costs nothing.

Order the work so the cheap call comes first. Deduplicate business domains and send them through domain to company at 1 credit each if found. Then send only the users at companies that pass your size and industry rules through email to profile at 2 credits each. Take a hypothetical table of 80,000 users with 12,000 distinct business domains, 10,000 of them found: 10,000 credits. If 15,000 users sit at qualifying companies and 9,000 match, that adds 18,000. The 28,000 credits cost $588 as a single purchase at the $0.021 Builder rate.

Add `"dry_run": true` to the first job for an exact quote, split the table into jobs of 10,000, and write results with the same upsert code your signup path uses.

## Production hygiene

Create separate keys for staging and production with [`POST /v1/keys`](/docs/keys). Staging can use a `dz_test_` key that returns synthetic data and never spends credits. Production gets `data:read`, an `allowed_endpoints` list with just the paths the product calls, a `max_credits_per_request` sized to the most expensive call, and daily and monthly caps above normal volume but below what a bot attack could reach.

Send an `Idempotency-Key` on every POST so job-queue retries are never charged twice. Branch on `error.code` and retry only when `error.retryable` is true. Log `x-dizo-credits-used` per call and tag it with the feature name, which makes cost per feature easy to report. Subscribe to `billing.cap_warning` so the team hears about unusual volume before a cap stops enrichment.

## Cost model at product scale

Take a hypothetical product with 20,000 signups a month. Suppose 9,000 use a business domain, those domains include 6,000 the cache has not seen, and 5,100 resolve: 5,100 credits. Email to profile on the 9,000 business addresses matches 5,400 people: 10,800 credits. For 600 qualified accounts, the decision-maker finder returns 500 people with 420 emails, about 440 credits. A watchlist of 30,000 users producing 600 job changes adds 600 credits, and a weekly monitor with 1,000 new matches and 700 emails adds 740.

The month totals about 17,680 credits. Bought through a $500 auto-refill at the Builder rate of $0.021, that is about $371. Moving to $2,000 refills at $0.017 brings it to about $301. Set the monthly cap with [`PUT /v1/billing/limits`](/docs/billing-limits) a little above the expected spend, and auto-refill will never go past it.

- Domain lookups, 5,100 found: 5,100 credits
- Email to profile, 5,400 found: 10,800 credits
- Decision-maker finder for qualified accounts: about 440 credits
- Job-change signals, 600 changes: 600 credits
- Monitor results and emails: 740 credits

## Measuring the impact, and getting started

Measure enrichment by the decisions it improves. Compare signup-to-paid conversion for routed versus unrouted segments, time from signup to first sales touch for qualified accounts, and form completion before and after you remove fields that enrichment now fills. Track match rate per endpoint as a health metric, and report bounced emails or wrong data through the feedback endpoint for refunds on confirmed reports.

Showing enriched data to your own users, rather than using it internally, needs Dizo's embed or OEM licence; email sales@dizo.ai if that is the plan. Dizo honours opt-outs within 24 hours and supports GDPR and CCPA data-subject requests; this is not legal advice on your own consent flows. Build the first automation on test keys, then [sign up](/signup) for live access.

## FAQ

### Will enrichment slow down my signup flow?
It should not be in the critical path. Call Dizo asynchronously after the account is created, with a short timeout, and fail open if the lookup is slow or finds nothing.

### What does it cost when a signup uses a personal email?
Domain to company on a webmail domain will not return an employer, so skip it on your side. Email to profile accepts personal addresses and is free when nothing is found.

### How do I secure Dizo webhooks?
Verify the `Dizo-Signature` header, an HMAC-SHA256 over the timestamp and raw body using your signing secret, and reject stale timestamps. Rotate the secret with `POST /v1/webhooks/{id}/rotate`.

### Can I protect against bot signups running up costs?
Yes. Set a per-request ceiling, daily and monthly caps on the production key, and a monthly USD cap on the account. When a cap is hit, calls stop with a 402.

### How do I keep enriched data current?
Watch key users with job-change signals rather than re-enriching on a schedule. Each detected change costs 1 credit and arrives as a signed webhook.

### Can I show enriched data to my customers?
Displaying Dizo data to your own users needs the embed or OEM licence, with per-customer keys and caps. Internal use for routing and scoring does not.
