Skip to main content
POST
Create a lead database search
Requires lead_sourcing:run and the creator’s ALLOW_LEAD_FINDER workspace permission. Supply name, filters, and limit (at least 1). The generated filter schema defines supported job, person, company, technology and experience fields. Use Discover Lead Filters for current schemas and values before creating a search. industries is mapped to experimental_industries at the provider boundary; exclusions and department aliases are preserved. SIC/NAICS code objects are converted to their code values for the provider. Removed/unknown filters and conflicting aliases fail validation rather than being silently discarded. job_title_match_mode accepts exact, contains or smart; job_title_smart_mode is used with smart. is_mapped_industries_strict controls exact versus related industry matching. Date filters accept the documented dd/mm/yyyy form and existing ISO date input. Use integers for numeric criteria and at most 100 entries per array filter. Matching controls alone do not restrict a search: include an actual criterion such as job titles, locations or industries. If a previous attempt failed definitively, its idempotency result can still be cached; treat a corrected attempt as a new operation only after checking the original outcome. Never use a new key to bypass an uncertain submission. The search reserves 2 credits per requested lead; unused credits are returned on completion. REST has no fixed lead-count ceiling in this DTO beyond available credits; the MCP search tool separately limits requests to 1,000 leads. The response’s id is the search job ID, not a campaign ID. Save it and poll status, then read results. Do not start another paid search merely because the first is still processing. webhook_url is an optional public HTTPS completion destination. Use an Idempotency-Key for retryable creation.

Authorizations

X-API-Key
string
header
required

API key for authentication (prefix: sp_live_ or sp_test_)

Body

application/json
name
string
required

Search name

filters
object
required
limit
number
required

Maximum leads to find (no hard limit - capped by available credits)

Required range: x >= 1
webhook_url
string

HTTPS URL to receive a completion notification. Must be a public host.

Example:

"https://my-app.example.com/webhooks/sendpilot"

Response

id
string
required
name
string
required
status
string
required
created_at
string
required
estimated_quota
number
required

Quota to be consumed