$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "creatives": [
< {
< "id": "ugc-v1",
< "platform": "tiktok",
< "objective": "conversion",
< "product": "Loop earplugs",
< "audience": "light sleepers",
< "script": "Okay so I haven't slept through the night in two years because my partner snores. I tried Loop earplugs for a week, not sponsored. Night one I woke up at 7am, no alarm. They cut about 25 decibels but I can still hear my kid. Only thing, the small tips fit me better than the medium. If you're a light sleeper, grab them with the link in my bio and use code SLEEP10.",
< "onScreenText": [
< "2 years of no sleep",
< "Loop earplugs, day 7",
< "code SLEEP10"
< ],
< "caption": "Honestly wish I'd found these sooner. Code SLEEP10 in bio #loopearplugs #lightsleeper #sleep",
< "durationSec": 24,
< "hookSec": 1.2
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/exepal~ad-creative-score/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'