leads-to-email

Create a domains-only workflow: the server finds people at the given company domains, enriches them, and delivers the results to your webhook

Changed on
post/v1/leads-to-email/domains

Request

Request body

domainsstring[] required

Company domains to enrich. Each entry is a bare domain/URL string or an object { domain, jobTitle?, department?, managementLevel?, decisionMaker? } whose criteria filter the people picked for THAT domain.

webhookUrlstring required

Webhook URL that receives the final result once enrichment completes (single webhook with the enriched records).

filtersobject

Search filters AND-combined onto every domain's people search — e.g. { "location": { "includes": ["United States"] } }.

exportColumnsstring[]

Columns for the enriched output. Defaults to the key-columns set when omitted or empty.

leadsPerDomainnumber

How many people to enrich per domain (top-ranked by lead score). Defaults to 2 when omitted.

Example request

{
  "domains": [
    "saleshandy.com",
    {
      "domain": "stripe.com",
      "jobTitle": "VP",
      "department": "Marketing"
    }
  ],
  "webhookUrl": "https://example.com/webhooks/leads-to-email"
}

Response

Workflow created. Returns the workflow id to track progress.

messagestring

Example response

{
  "message": "Success",
  "payload": {
    "success": true,
    "id": "64f1a2b3c4d5e6f7a8b9c0d1",
    "status": "in_progress"
  }
}

Changes