Trigger broadcast
documentedTrigger an API-triggered broadcast for a given broadcast_id.
POST /v1/campaigns/{broadcast_id}/triggersBroadcastsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.customer.io/v1/campaigns/{{$broadcast_id}}/triggers" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"recipients": {"and": [ {"attribute": {"region": "{{$region}}"} } ]}, "data": {"headline": "{{$headline}}", "date": "{{$date}}", "text": "{{$text}}"}, "per_user_data": [{"email": "{{$recipient_email}}", "data": {"voucher_code": "{{$voucher_code}}"} } ] }'