Add a single lead to a campaign
Add one lead at a time to a campaign. Useful for adding individual leads without uploading a CSV file.
import requests
campaign_id = "550e8400-e29b-41d4-a716-446655440000"
lead_data = {
"email": "john.doe@example.com",
"first_name": "John",
"last_name": "Doe",
"company": "Acme Inc",
"custom_fields": {
"industry": "Technology",
"source": "LinkedIn"
}
}
response = requests.post(
f"https://api.coldsend.pro/api/public/v1/campaigns/{campaign_id}/leads/manual",
headers={"X-API-Key": "your-api-key"},
json=lead_data
)
print(response.json())
API key with format cs_live_xxx
Lead added successfully
Response schema for individual lead.
Lead ID
Batch ID this lead belongs to
Lead email address
First name
Last name
Company name
Lead status
Last contact timestamp
Email opened timestamp
Reply timestamp
Lead creation timestamp
Custom lead fields
Current sequence step
Whether email was opened
Whether lead replied
Whether lead unsubscribed