Returns all active campaigns with their request and contact counts
{
"campaigns": [
{
"id": 1,
"name": "Campaign Name",
"status": "active",
"total_requests": 10,
"total_contacts": 5
}
]
}
Returns random contacts that have domains but no emails from the specified campaign (supports batch requests)
campaign_id - ID of the campaignbatch - Number of contacts to return (0-1000, default: 1)/api/campaign/1/nomail - Single contact/api/campaign/1/nomail?batch=10 - Batch of 10 contactsSingle contact (batch=1):
{
"contacts": [
{
"id": "66",
"domain": "example.com"
}
],
"count": 1
}
Multiple contacts (batch>1):
{
"contacts": [
{
"id": "66",
"domain": "example.com"
},
{
"id": "67",
"domain": "sample.org"
}
],
"count": 2
}
Updates emails for one or multiple contacts in a campaign (supports batch updates)
campaign_id - ID of the campaign
Single update:
{
"id": "66",
"email": "example@example.com"
}
Batch update (up to 100 contacts):
{
"contacts": [
{
"id": "66",
"email": "example@example.com"
},
{
"id": "67",
"email": "test@sample.org"
}
]
}
Single update response:
{
"status": "Email updated successfully"
}
Batch update response:
{
"status": "Batch update completed",
"updated_count": 2,
"failed_count": 0,
"failed_updates": []
}
Returns detailed information about a specific campaign
campaign_id - ID of the campaign
{
"campaign": {
"id": 1,
"name": "Campaign Name",
"status": "active"
},
"requests": [...],
"contacts": [...]
}
Returns pending requests for a specific campaign
campaign_name - Name of the campaign
{
"requests": [
{
"id": 1,
"campaign_id": 1,
"req_text": "search phrase",
"status": "pending"
}
]
}
Updates the status of a specific request
request_id - ID of the requeststatus - New status ('inuse' or 'completed')
{
"status": "Request status updated successfully"
}
Marks a campaign as completed
campaign_id - ID of the campaign to complete
{
"status": "Campaign marked as completed"
}
Saves one or multiple contacts for a campaign
Single contact object or array of contact objects with the following properties:
campaign_id - Campaign IDrequest_id - Request IDbusiness_name - Name of the businessreview_count - Number of reviewsphone - Phone numberdomain - Website domainemail - Email addressaddress - Business addresscategory - Business categoryrating - Business ratingplace_id - Place IDfacebook - Facebook URLinstagram - Instagram URLtwitter - Twitter URLyelp - Yelp URLfull_name - Full namefirstname - First namelastname - Last nameindustry - Industrycity - Citystate - Statecountry - Countrywww - Website URLcompany - Company namecompany_social - Company social mediacompany_size - Company sizepersonal_job_position - Job positionpersonal_prospect_location - Prospect locationpersonal_user_social - Personal social mediascreenshot - Screenshot URLlogo - Logo URLicebreaker - Icebreaker texttime_zone_offset_min - Timezone offset in minutesnotes - Additional notestags_import - Import tagscustom_1 - Custom field 1custom_2 - Custom field 2custom_3 - Custom field 3custom_4 - Custom field 4custom_5 - Custom field 5custom_6 - Custom field 6custom_7 - Custom field 7custom_8 - Custom field 8custom_9 - Custom field 9custom_10 - Custom field 10custom_11 - Custom field 11custom_12 - Custom field 12custom_13 - Custom field 13custom_14 - Custom field 14custom_15 - Custom field 15custom_16 - Custom field 16custom_17 - Custom field 17custom_18 - Custom field 18custom_19 - Custom field 19custom_20 - Custom field 20email_status - Email verification status (unverified, verified, invalid, bounced, catch-all, unknown)
[
{
"campaign_id": 1,
"request_id": 2,
"business_name": "Business 1",
"review_count": 10,
"phone": "123-456-7890",
"domain": "example1.com",
"email": "contact@example1.com",
"address": "123 Main St, New York, NY",
"category": "Restaurant",
"rating": 4.5,
"full_name": "John Doe",
"firstname": "John",
"lastname": "Doe",
"company": "Example Corp",
"city": "New York",
"state": "NY",
"country": "USA",
"industry": "Food & Beverage",
"www": "https://example1.com",
"company_size": "50-100",
"personal_job_position": "Manager",
"facebook": "https://facebook.com/business1",
"instagram": "https://instagram.com/business1",
"custom_1": "Custom value 1",
"custom_2": "Custom value 2",
"notes": "High-quality prospect",
"tags_import": "restaurant,nyc,premium"
},
{
"campaign_id": 1,
"request_id": 2,
"business_name": "Business 2",
"review_count": 20,
"phone": "098-765-4321",
"domain": "example2.com",
"email": "contact@example2.com",
"address": "456 Oak Ave, Los Angeles, CA",
"category": "Retail",
"rating": 4.8,
"full_name": "Jane Smith",
"firstname": "Jane",
"lastname": "Smith",
"company": "Sample Inc",
"city": "Los Angeles",
"state": "CA",
"country": "USA",
"industry": "Retail",
"www": "https://example2.com",
"company_size": "10-50",
"personal_job_position": "Owner",
"twitter": "https://twitter.com/business2",
"yelp": "https://yelp.com/biz/business2",
"time_zone_offset_min": -480,
"icebreaker": "Great reviews on your latest products!"
}
]
{
"status": "Contacts saved successfully",
"saved_contacts": [
{
"contact_id": 1,
"campaign_id": 1,
"request_id": 2
},
{
"contact_id": 2,
"campaign_id": 1,
"request_id": 2
}
]
}