$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "htmlContent": "<!DOCTYPE html><html><body style='margin:0;padding:0;'><table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td align='center' style='background:#f4f4f4;padding:20px;'><table width='600' cellpadding='0' cellspacing='0' border='0' style='background:white;'><tr><td align='center'><img src='https://via.placeholder.com/600x200?text=Promo+Banner' alt='Promo Banner' width='600' height='200'></td></tr><tr><td style='padding:20px;text-align:center;'><h2 style='margin-bottom:10px;'>Limited Time Offer!</h2><p style='margin:0 0 20px;'>Get 50% off all subscriptions. Hurry, offer ends soon.</p><a href='https://example.com/deal' style='display:inline-block;padding:12px 24px;background:#28a745;color:white;text-decoration:none;border-radius:5px;'>Claim Offer</a></td></tr></table></td></tr></table></body></html>",
< "subjectLine": "Your 50% OFF Coupon ๐",
< "sender": "no-reply@example.com",
< "targetClients": [
< "Gmail",
< "Outlook",
< "AppleMail"
< ],
< "devices": [
< "desktop",
< "mobile"
< ]
<}
<EOF
$curl "https://api.apify.com/v2/acts/rocketagro~html-email-debugger/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'