$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "leads": [
< {
< "name": "Sarah Chen",
< "email": "sarah.chen@acmecorp.com",
< "jobTitle": "VP of Engineering",
< "companyName": "Acme Corp",
< "industry": "SaaS",
< "services": "Cloud infrastructure management",
< "recentNews": "Recently raised $20M Series B",
< "painPoints": "Scaling engineering team, reducing deployment friction"
< },
< {
< "name": "James Miller",
< "email": "james@buildco.io",
< "jobTitle": "Head of Growth",
< "companyName": "BuildCo",
< "industry": "Construction Technology",
< "services": "Project management software for contractors"
< }
< ],
< "openaiApiKey": "",
< "anthropicApiKey": ""
<}
<EOF
$curl "https://api.apify.com/v2/acts/ryanclinton~ai-email-writer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'