Integrations / Workflow & GTM
// rest recipe Dizo + HubSpot
Auto-enrich new HubSpot contacts: a workflow webhook calls a small function that queries Dizo and writes fields back.
No native app needed. This calls the Dizo REST API at
https://api.dizo.ai/v1. Use a dz_test_ key while you build: it returns synthetic data and costs nothing.Steps
- Create a HubSpot private app with
crm.objects.contacts.writescope. - Build a contact-based workflow that sends a webhook (or runs a custom code action) on create.
- The function calls Dizo enrich, then PATCHes the contact via the HubSpot CRM API.
const enrich = await fetch("https://api.dizo.ai/v1/people/enrich", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.DIZO_API_KEY}`, "Content-Type": "application/json",
"Idempotency-Key": event.object.objectId.toString() },
body: JSON.stringify({ email: event.inputFields.email, include: ["phone"], max_credits: 12 }),
});
if (enrich.status === 404) return callback({ outputFields: { dizo: "not_found" } });
const { person } = await enrich.json();
await fetch(`https://api.hubapi.com/crm/v3/objects/contacts/${event.object.objectId}`, {
method: "PATCH",
headers: { Authorization: `Bearer ${process.env.HUBSPOT_TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify({ properties: { jobtitle: person.title, mobilephone: person.phones?.[0]?.number } }),
});
callback({ outputFields: { dizo: "enriched" } });Notes
- Custom code actions need a HubSpot tier that supports them; otherwise point a webhook action at a serverless function with the same code.
- Add job-change signals to watch your customer champions and create tasks when they move.
Endpoints used
Related integrations
n8n
Call Dizo from an n8n HTTP Request node to enrich leads, find emails and route results anywhere in your workflow.
Make
Enrich records in Make scenarios with the HTTP "Make a request" module and Dizo’s REST API. No custom app required.
Zapier
Use Webhooks by Zapier to send new leads to Dizo and write the verified email and phone back to your CRM or sheet.