# Attio + Dizo

> Enrich new People records inside an Attio workflow: a Send HTTP request block calls Dizo, Parse JSON reads it, Update record writes it.

Type: REST recipe — base URL `https://api.dizo.ai/v1`. No native app needed.

## Steps
1. In Attio, create a workflow with the **Record created** trigger on the People object.
2. Add the **Send HTTP request** block (Utilities) with the method, URL, headers and body below.
3. Add a **Parse JSON** block on the response body, then an **Update record** block that maps the title onto the person.
4. Publish, create a test person with a work email, and check the run history.

## Where to go
Automations → Workflows → add the **Send HTTP request** block, then Parse JSON and Update record.

Open the Attio workflow block library: https://attio.com/help/reference/automations/workflows/workflows-block-library

## Send HTTP request block
```
Method:   POST
URL:      https://api.dizo.ai/v1/people/enrich
Headers:  Authorization: Bearer dz_live_...
          Content-Type: application/json
          Idempotency-Key: <Trigger → Record ID>
Body:
{
  "email": "<Trigger → Email addresses>",
  "max_credits": 2
}
```

## Following blocks
```
If:             Successful = true  (a 404 means not found, not charged)
Parse JSON:     HTTP response body → person.title, person.seniority
Update record:  Object = People, Record = <Trigger → Record>
                <your title attribute> = <Parse JSON → person.title>
```

## Notes
- The block takes credentials as headers, so the key sits in the workflow itself. Limit who can edit it.
- Use a Dizo key created only for Attio, with a daily cap and an allow-list of `/v1/people/enrich`.

## Related API docs
- [/docs/people-enrich](https://dizo.ai/docs/people-enrich.md)
- [/docs/keys](https://dizo.ai/docs/keys.md)
- [/docs/billing-limits](https://dizo.ai/docs/billing-limits.md)


## Attio and where Dizo fits

Attio is a CRM built around flexible objects. People, Companies and Deals come as standard, you can add your own objects and attributes, and workflows automate what happens when records change. Workflows are assembled from blocks: a trigger such as **Record created**, then steps for branching, record changes, AI classification and utilities.

One of those utility steps is **Send HTTP request**. It takes a method, a URL, optional headers, an optional content type and a body, and it returns the HTTP status code, the response body and a simple successful flag that is true for any 2xx status. That is enough to call Dizo's REST API directly from inside Attio, with no middleware and no native app. A **Parse JSON** block turns the response into values that later blocks can map onto the record.

## Why enrich People records in Attio

People records in Attio often start thin. A contact synced from email or calendar has a name and an address. A person added from a form has whatever the form asked for. Lists, views and deal routing work much better with title, seniority and department filled in, and reps should not have to research each new person by hand before deciding whether to follow up.

Dizo returns those fields from one call. [Person enrich](/docs/people-enrich) takes an email and returns title, seniority, department, location, work history and social profiles for 2 credits when a person is matched. When nobody matches, the response is `404` and you are charged nothing, which matters for a workflow that runs on every new record, including personal addresses and shared inboxes that will never match.

## Workflows you can build

The same three-block pattern, HTTP request, Parse JSON and Update record, works for any Dizo lookup. Change the URL and body to fit the job:

- Fill title and seniority on every new person so views like "VPs at open deals" work without manual research.
- Enrich a new company record from its domain with `POST /v1/companies/enrich` at 1 credit if matched, and store headcount, industry and funding stage.
- Find a work email for a person who only has a name and a company with `POST /v1/email/find`, 1 credit only if found.
- Add a mobile number when a deal reaches a late stage, using `include: ["phone"]` and `max_credits: 12`.
- Re-identify a contact whose email bounced with `POST /v1/people/enrich` at 2 credits if matched, and report the bounce through `POST /v1/feedback`.
- Watch champions on closed-won deals for job changes with `POST /v1/signals/watch`, so a departure becomes a task.

## Setting up the workflow

Create a new workflow and choose the **Record created** trigger with People as the object. The trigger outputs the new record's data, which includes the email addresses you will send to Dizo. Add a **Send HTTP request** block. Set the method to POST and the URL to `https://api.dizo.ai/v1/people/enrich`. Add headers for `Authorization` with the value `Bearer dz_live_...`, `Content-Type` with `application/json`, and an `Idempotency-Key` mapped to the record ID so a re-run never pays twice.

In the body, map the person's email into the `email` field and add `"max_credits": 2`. That is the exact cost of a matched profile without email or phone add-ons, so a single request can never spend more. Attio documents a two-minute timeout on this block, which is far longer than a single enrich call needs.

Add an **If** block that continues only when the request was successful. Then add **Parse JSON** on the response body and pull out `person.title` and `person.seniority`. Finish with **Update record** on the People object, pointing at the trigger's record, and map the parsed values to your title attribute and any custom seniority attribute you have created.

[Sign up](/signup) for a live key and 250 free credits, with no card. A `dz_test_` key returns synthetic data and never spends credits, so you can build and test the workflow before you have live access.

## Controlling spend

Three limits keep an always-on workflow predictable. The first is `max_credits` in every body. The second is a dedicated key for Attio, created through [API keys](/docs/keys) with `data:read` scope, a daily credit cap, a monthly credit cap, a per-request ceiling and an allow-list holding only the endpoints the workflow uses. The third is an account-wide monthly USD cap set through [spend limits](/docs/billing-limits); auto-refill never pushes past it.

If a bulk import creates thousands of people at once, the workflow fires for each of them. The daily cap is what turns that into a controlled stop: Dizo returns a 402 and charges nothing further. Before a large import, consider pausing the workflow and enriching the imported list as one batch instead.

Hypothetical volumes at the $10–$499 tier of $0.025 per credit, assuming 70% of new people match:

- **400 new people a month:** 280 matches × 2 = 560 credits, or $14.
- **Adding phones for 50 late-stage deal contacts:** 50 × 12 = 600 credits, or $15, if every phone is found.
- **Enriching 200 new companies:** at most 200 credits, or $5, since unmatched domains are free.

## Example end-to-end flows

**New contact triage.** A person is created from a synced email thread. The workflow enriches them, writes title and seniority, and a **Switch** block routes by seniority: c-suite and VP records get added to a list the founders review, while everyone else simply gets the data. The cost is 2 credits per matched person and nothing for the rest.

**Deal-stage phone append.** A separate workflow triggers when a deal moves into a negotiation stage. It calls person enrich for the deal's main contact with `include: ["phone"]`. Dizo returns up to three phones in E.164 format, each with line type, a confidence score and a `dnc` flag, so a **Filter** block can skip numbers marked `dnc` before the number is written to the record.

**Company firmographics.** When a company record is created, the workflow sends its domain to company enrich and writes headcount, revenue band and industry to company attributes. Your account views can then filter by size without anyone filling in fields by hand.

**Backfilling existing records.** Record created only fires for new records, so people already in Attio need a one-off job. Export the people missing a title, send them to Dizo as one [batch](/docs/batch) of up to 10,000 lookups, and import the results file back into Attio when the job completes. Misses inside a batch are still free, and a dry run on the batch tells you the maximum cost before you commit.

## Troubleshooting

If the request fails with 401, check the `Authorization` header. The value must be `Bearer`, a single space, then the key, with no quotes or trailing spaces. If the response comes back but later blocks see nothing, the Parse JSON block is probably reading the wrong field; parse the response body, then reference `person.title` rather than `title`.

A `404` from enrich is a normal not-found result, not an error to retry, and it is free. A 402 means a cap was reached, so check the balance and limits with the free `GET /v1/billing` endpoint. For any other failure, Dizo returns a stable `error.code` with a plain-English `error.fix`, and a request is worth retrying only when `error.retryable` is true. The free `GET /v1/me` endpoint shows the key's scopes, allow-list and remaining budget, which quickly explains a request blocked by an allow-list.

## Security practices

Because the key sits in a header inside the workflow, anyone who can edit that workflow can see it. Restrict editing to the people who own your CRM automation, and use a key that exists only for Attio so you can rotate or revoke it without touching other tools. Keep `billing:write` and `keys:write` off it; keys are read-only for billing by default.

Build against a `dz_test_` key first and switch to a live key only when the mapping is correct. If an enriched email bounces or a phone number is wrong, report it through `POST /v1/feedback`; confirmed reports are credited back. For opt-outs and data-subject requests, see [trust](/trust).

## FAQ

### Is there a Dizo app in the Attio marketplace?
No. You call Dizo from Attio's built-in Send HTTP request workflow block, with your key in the Authorization header. Every Dizo endpoint is reachable that way.

### How do I get fields from the Dizo response into the record?
Follow the HTTP block with Parse JSON on the response body, then use Update record and map the parsed values, such as `person.title`, to the attributes you want to fill.

### What happens when Dizo cannot find the person?
Dizo returns `404` and charges nothing. Add an If block that continues only when the request was successful, so the workflow ends cleanly for unmatched records.

### Will the workflow overspend during a big import?
Only up to the caps you set. Give the Attio key a daily cap and a per-request ceiling, send `max_credits` in every body, and Dizo returns a 402 instead of charging once a cap is reached.

### Can I add phone numbers too?
Yes. Add `"include": ["phone"]` to the enrich body and set `max_credits` to 12. You pay the extra 10 credits only if a phone is found, and each number carries a Do Not Call flag.

### Can I test without spending credits?
Yes. Use a `dz_test_` key, which returns synthetic data for free, or add `"dry_run": true` to the body for an exact quote that spends nothing.
