Create Campaign
documentedCreate a new campaign.
POST /api/campaignsCampaignsno 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://a.klaviyo.com/api/campaigns" \
-X POST \
-H "Authorization: Klaviyo-API-Key {{KLAVIYO_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Revision: 2026-01-15" \\
-d '{"data": {"type": "campaign","attributes": {"name": "{{$campaign_name}}","audiences": {"included": ["{{$list_id}}"]},"send_strategy": {"method": "static","options_static": {"datetime": "{{$send_datetime}}"}},"campaign-messages": {"data": [{"type": "campaign-message","attributes": {"definition": {"channel": "email","subject": "{{$subject}}","from_email": "{{$from_email}}","from_name": "{{$from_name}}","content": "{{$html_content}}"}}]}]}}}}'