This event is triggered when a Lead Database (A-Leads) bulk search finishes processing and all leads are stored in the database.Documentation Index
Fetch the complete documentation index at: https://docs.sendpilot.ai/llms.txt
Use this file to discover all available pages before exploring further.
When This Event Fires
- A Lead Database search initiated via the API completes
- All leads from the search have been processed and stored
- The search status changes to
completed
Payload
Payload Fields
| Field | Type | Description |
|---|---|---|
eventId | string | Unique event identifier for idempotency |
eventType | string | Always lead_database.search.completed |
timestamp | string | ISO 8601 timestamp when the search completed |
workspaceId | string | Your workspace ID |
data.search_id | string | Unique identifier for the search |
data.search_name | string | Name you provided for the search |
data.total_leads_found | number | Total number of leads found |
data.requested_limit | number | Maximum leads you requested |
data.started_at | string | When the search started |
data.completed_at | string | When the search completed |
data.duration_ms | number | Processing time in milliseconds |
data.filters | object | Filters used for the search |
data.leads | array | Array of all found leads with full data |
data.results_url | string | API endpoint to fetch results |
Lead Object Fields
Each lead in theleads array contains:
| Field | Type | Description |
|---|---|---|
id | string | Unique lead identifier |
first_name | string | Lead’s first name |
last_name | string | Lead’s last name |
full_name | string | Lead’s full name |
email | string | Email address |
phone | string | Phone number |
linkedin_url | string | LinkedIn profile URL |
job_title | string | Current job title |
company | string | Current company name |
location | string | Location |
country | string | Country |
industry | string | Industry |
seniority | string | Seniority level |
company_linkedin_url | string | Company LinkedIn URL |
website | string | Company website |
employees | string | Company size |
Use Cases
CRM Import
Automatically import leads into your CRM when search completes
Campaign Creation
Trigger campaign creation with the found leads
Notifications
Alert your team when lead lists are ready
Data Enrichment
Trigger additional enrichment workflows
Example Handler
The
leads array contains all found leads with complete data. For large result sets, consider processing leads asynchronously.