$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "jobs": [
< {
< "jobUrl": "https://www.upwork.com/nx/proposals/job/~xxxxxxxxxxxxxxxxxxxx/apply/",
< "coverLetter": "Hi there,\n\nI am excited to apply for this position. I have extensive experience in...\n\nBest regards,\n[Your Name]"
< }
< ],
< "applicationPreferences": {
< "profileMapping": [
< {
< "tokenKeywords": [
< "full stack",
< "backend",
< "frontend"
< ],
< "profileIndex": 1
< }
< ],
< "defaultProfileIndex": 0,
< "fixedPricePreferences": {
< "projectDuration": "1 to 3 months",
< "raiseFrequency": "Never",
< "raiseAmount": "10%"
< },
< "skipBiddingOnly": true,
< "genericScreeningResponse": "I would be happy to discuss this in detail. Let us jump on a call to go over your specific requirements."
< },
< "browserPersistence": {
< "enabled": true,
< "sessionTimeout": 24,
< "autoSave": true,
< "fallbackToManual": true,
< "closeAfterRun": false
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/philberhane~upwork-auto-applier/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'