$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "leads": [
< {
< "domain": "brightedge.com",
< "companyName": "BrightEdge",
< "industry": "Marketing Agency",
< "services": [
< "SEO",
< "Content Marketing",
< "Analytics"
< ],
< "companySize": "51-200",
< "emails": [
< "hello@brightedge.com"
< ],
< "contacts": [
< {
< "name": "Sarah Chen",
< "title": "Head of SEO",
< "email": "s.chen@brightedge.com"
< }
< ],
< "phones": [
< "+1 415-555-0182"
< ],
< "address": "1 Market St, San Francisco, CA",
< "rating": 4.7,
< "reviewCount": 143,
< "hasChatWidget": true,
< "hasContactForm": true,
< "techStack": [
< "HubSpot",
< "Google Analytics",
< "Salesforce"
< ],
< "foundedYear": 2011,
< "description": "Enterprise SEO and content performance platform for B2B companies."
< }
< ],
< "targetIndustries": [
< "Marketing Agency",
< "Digital Agency"
< ],
< "targetCompanySizes": [
< "11-50",
< "51-200"
< ],
< "targetServices": [
< "SEO",
< "Content Marketing"
< ],
< "targetTechStack": [
< "HubSpot",
< "Google Analytics"
< ]
<}
<EOF
$curl "https://api.apify.com/v2/acts/ryanclinton~lead-scoring-engine/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'