$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "ledgerText": "client,site,contract,date,clientType,needs,preferences,tendencies,amount,status,deliveryPath,nextTime,leadTimeHours,askedAndReceived,cautions\nBloomCafe,CrowdWorks,C-101,2026-09-02,Cafe owner running Instagram,3 Instagram posts for the autumn menu,Warm beige tones; no stock-photo look,Replies within hours; friendly,6000,completed,/work/bloomcafe/2026-09,Send two color options first,26,Logo and menu photos (received),\nBloomCafe,CrowdWorks,C-118,2026-10-05,Cafe owner running Instagram,Halloween post and story,Same beige palette; short copy,Quick approval,4000,completed,/work/bloomcafe/2026-10,Keep the copy under 20 words,20,Logo already on file,\nKito Design,Lancers,L-552,2026-09-15,Design agency (contest style),Spa campaign banner 1080x1080,Strict brief: colors and fonts fixed,Formal; does not announce results,1000,delivered,/work/kito/spa,Follow the brief exactly; no extra options,5,Brief PDF (received),Asked to continue on LINE\nKito Design,Lancers,L-590,2026-10-20,Design agency (contest style),Winter banner set,Fonts fixed; NG word list,Slow replies,1000,not selected,/work/kito/winter,Check the NG words twice,4,,Invited to a paid course\nSunnyClinic,Coconala,K-77,2026-10-01,Small clinic,A4 flyer for flu shots,Clean white; large type for seniors,Careful; asks many questions,15000,completed,/work/sunny/flyer,Prepare a print-ready PDF and a PNG,48,Opening hours and map (received),\nSunnyClinic,Coconala,K-91,2026-11-02,Small clinic,Website banner for the new opening hours,Same layout as the flyer,Repeat client; trusts us,8000,in progress,/work/sunny/banner,Reuse the flyer colors,,Hours already received,\n",
< "client": "BloomCafe",
< "request": "Christmas Instagram post with the same warm look"
<}
<EOF
$curl "https://api.apify.com/v2/actors/kotaro-project~client-history-brief/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'