$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "salesObject": {
< "candidates": [
< {
< "candidateId": "candidate id",
< "outreach_status": "'start','messaged'",
< "fullName": "Full name of the candidate",
< "werkNlUrl": "Werk NL profile url of the candidate",
< "message": {
< "subject": "Subject of the message",
< "content": "Content of the message"
< }
< }
< ],
< "user_id": {
< "title": "User ID",
< "type": "string",
< "description": "User ID to use for the outreach"
< }
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/obedient_stars~cmg-werknl-outreach-service/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'