$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "salesObject": {
< "candidates": [
< {
< "candidateId": "candidate id",
< "action_type": "action required 'connect_message' or 'inmail'",
< "outreach_status": "'start','connection_sent','connection_sent_messaged','connection_pending','connected','connected_messaged' or 'inmail_sent'",
< "fullName": "Full name of the candidate",
< "salesUrl": "sales navigator url of the candidate",
< "linkedinUrl": "linkedin profile url of the candidate",
< "message": {
< "subject": "Subject of the message",
< "content": "Content of the message"
< }
< }
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/obedient_stars~cmg-linkedin-outreach-service/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'