curl -X GET "https://api.sendpilot.ai/v1/lead-database/searches/search_abc123xyz/results?limit=50" \
-H "X-API-Key: your-api-key"
{
"leads": [
{
"id": "lead_xyz789",
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1-555-123-4567",
"linkedin_url": "https://www.linkedin.com/in/johndoe",
"job_title": "CEO",
"company": "TechCorp Inc",
"location": "San Francisco, CA",
"country": "United States",
"industry": "Technology",
"seniority": "C-Level",
"company_linkedin_url": "https://www.linkedin.com/company/techcorp",
"website": "https://techcorp.com",
"employees": "51-200"
}
],
"pagination": {
"total": 100,
"offset": 0,
"limit": 50,
"has_more": true
}
}
Lead Database
Get Search Results
Get the leads found by a lead database search
GET
/
v1
/
lead-database
/
searches
/
{id}
/
results
curl -X GET "https://api.sendpilot.ai/v1/lead-database/searches/search_abc123xyz/results?limit=50" \
-H "X-API-Key: your-api-key"
{
"leads": [
{
"id": "lead_xyz789",
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1-555-123-4567",
"linkedin_url": "https://www.linkedin.com/in/johndoe",
"job_title": "CEO",
"company": "TechCorp Inc",
"location": "San Francisco, CA",
"country": "United States",
"industry": "Technology",
"seniority": "C-Level",
"company_linkedin_url": "https://www.linkedin.com/company/techcorp",
"website": "https://techcorp.com",
"employees": "51-200"
}
],
"pagination": {
"total": 100,
"offset": 0,
"limit": 50,
"has_more": true
}
}
Returns the leads found by a completed lead database search.
Request
string
required
Your API key
Path Parameters
string
required
The search ID returned from the create search endpoint
Query Parameters
number
default:"0"
Number of leads to skip (for pagination)
number
default:"100"
Maximum number of leads to return (1-1000)
Response
array
Array of found leads
object
curl -X GET "https://api.sendpilot.ai/v1/lead-database/searches/search_abc123xyz/results?limit=50" \
-H "X-API-Key: your-api-key"
{
"leads": [
{
"id": "lead_xyz789",
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1-555-123-4567",
"linkedin_url": "https://www.linkedin.com/in/johndoe",
"job_title": "CEO",
"company": "TechCorp Inc",
"location": "San Francisco, CA",
"country": "United States",
"industry": "Technology",
"seniority": "C-Level",
"company_linkedin_url": "https://www.linkedin.com/company/techcorp",
"website": "https://techcorp.com",
"employees": "51-200"
}
],
"pagination": {
"total": 100,
"offset": 0,
"limit": 50,
"has_more": true
}
}
Authorizations
API key for authentication
Path Parameters
Search ID
Query Parameters
Page number
Required range:
x >= 1Items per page
Required range:
1 <= x <= 100