curl "https://api.sendpilot.ai/api/v1/leads?campaignId=camp_xyz789&status=CONNECTION_ACCEPTED" \ -H "X-API-Key: YOUR_API_KEY"
{ "leads": [ { "id": "lead_abc123", "linkedinUrl": "https://www.linkedin.com/in/john-doe", "status": "CONNECTION_ACCEPTED", "firstName": "John", "lastName": "Doe", "title": "VP of Engineering", "company": "TechCorp", "campaignId": "camp_xyz789", "createdAt": "2024-02-20T10:00:00.000Z", "updatedAt": "2024-02-23T15:30:00.000Z" } ], "pagination": { "total": 45, "page": 1, "limit": 50, "totalPages": 1 } }
Retrieve leads with optional filtering by campaign and status
PENDING
CONNECTION_SENT
CONNECTION_ACCEPTED
MESSAGE_SENT
REPLY_RECEIVED
DONE
Show Lead Object
Show Pagination Object