$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "sp_intended_usage": "Describe your intended use...",
< "sp_improvement_suggestions": "Share your suggestions here...",
< "sp_contact": "Share your email here...",
< "cvText": "John Smith\nSoftware Engineer | 5 years experience\n\nExperience:\n- Software Engineer at Acme Corp (2020–present): Built REST APIs with Node.js, led team of 3.\n- Junior Dev at StartupXYZ (2018–2020): Frontend React work, improved page load by 40%.\n\nSkills: JavaScript, TypeScript, Node.js, React, PostgreSQL, Docker\nEducation: B.Sc Computer Science, State University 2018",
< "jobDescription": "Senior Full-Stack Engineer at TechCorp\n\nWe are looking for a Senior Full-Stack Engineer with 5+ years of experience.\n\nRequired:\n- 5+ years of software engineering experience\n- Proficiency in TypeScript, Node.js, and React\n- Experience with cloud platforms (AWS, GCP, or Azure)\n- Strong knowledge of SQL and NoSQL databases\n- Experience with CI/CD pipelines and DevOps practices\n\nNice to have:\n- Kubernetes / Docker experience\n- Experience mentoring junior engineers\n- GraphQL knowledge",
< "model": "gpt-4o-mini"
<}
<EOF
$curl "https://api.apify.com/v2/acts/jungle_synthesizer~ai-resume-cv-optimizer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'