$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "creatives": [
< {
< "id": "creative-1",
< "brand": "Example Brand",
< "body": "Turn your ad creatives into measurable insights.",
< "cta": "Learn More",
< "assetUrl": "https://images.unsplash.com/photo-1556742049-0cfed4f6a45d",
< "assetType": "image"
< }
< ],
< "csvInput": "id,brand,body,cta,assetUrl,assetType\ncreative-1,Example Brand,Turn your ad creatives into measurable insights.,Learn More,https://images.unsplash.com/photo-1556742049-0cfed4f6a45d,image",
< "ads": [
< {
< "libraryID": "example-ad-1",
< "brand": "Example Brand",
< "body": "Turn your ad creatives into measurable insights.",
< "ctaText": "Learn More",
< "format": "image",
< "images": [
< {
< "url": "https://images.unsplash.com/photo-1556742049-0cfed4f6a45d"
< }
< ],
< "active": true,
< "runTimeDays": 21,
< "multipleVersions": false,
< "similarAdCount": 1,
< "totalPlatforms": 1
< }
< ],
< "maxAds": 100,
< "maxConcurrency": 2,
< "maxVideoFrames": 8,
< "videoFrameIntervalSeconds": 2
<}
<EOF
$curl "https://api.apify.com/v2/acts/whoareyouanas~creative-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'