Prerequisites
- A Zapier account (Webhooks by Zapier requires a paid plan)
- A Data Legion API key
Person Enrichment Setup
Add the Webhooks Action
In your Zap, add a new action step. Search for Webhooks by Zapier and select the Custom Request event.Use Custom Request instead of the POST event. Custom Request lets you set custom headers (needed for API key authentication) and send raw JSON in the body.
Configure the Request
Set the following fields:
See the Person Enrichment API reference for the full list of available fields.
Headers
Add three headers:Data
Set Payload Type to Raw and enter the JSON body in the Data field:{{trigger_email}} is the mapped field from your trigger step (the actual field reference appears as a pill in the Zapier editor).
You can add more input fields to improve match accuracy:
include_fields to the body:
Response Handling
Zapier automatically parses the JSON response. The API returns:Test
Click Test step to send a test request. Verify that the response fields appear correctly in the output, then continue building your Zap.Company Enrichment Setup
The same approach works for company enrichment. Use the Company Enrich endpoint:include_fields to limit the response:
matches__0__company (e.g., matches__0__company__legion_employee_count).
See the Company Enrichment API reference for all supported input and output fields.
Example Zap: Enrich New CRM Contacts
A common pattern: trigger on new contacts, enrich them, and update the CRM record.- HubSpot > New Contact (or Salesforce, Pipedrive, etc.) — triggers when a new contact is created
- Webhooks by Zapier > Custom Request — calls
POST /person/enrichwith the contact’s email - HubSpot > Update Contact — writes enriched fields (title, company, phone, LinkedIn) back to the contact record
Rate Limits
The Data Legion API returns rate limit headers on every response (RateLimit-Remaining, RateLimit-Reset). Zapier runs Zap steps sequentially, so rate limits are rarely hit for trigger-based Zaps. For bulk operations using Zapier’s Transfer tool, monitor your API plan limits when processing large datasets.
See Rate Limiting for details.
Related
- Person Enrichment API
- Company Enrichment API
- Clay integration for Clay table enrichment
- MCP Server for AI assistant integrations
- Webhooks by Zapier documentation