Create Email Campaign
documentedCreate a new email campaign.
POST /emailsEmail Campaignsno 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.cc.email/v3/emails" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"name": "{{$name}}", "email_campaign_activities": [{"format_type": {{$format_type}}, "from_email": "{{$from_email}}", "reply_to_email": "{{$reply_to_email}}", "from_name": "{{$from_name}}", "subject": "{{$subject}}", "html_content": "{{$html_content}}", "preheader": "{{$preheader}}", "physical_address_in_footer": {"address_line1": "{{$address_line1}}", "address_line2": "{{$address_line2}}", "city": "{{$city}}", "state_code": "{{$state_code}}", "postal_code": "{{$postal_code}}", "country_code": "{{$country_code}}", "organization_name": "{{$organization_name}}", "address_optional": "{{$address_optional}}"}}]}'}