Skip to content

Automations

Marco Cusano edited this page Jun 15, 2019 · 1 revision

Mailchimp’s free Automation feature lets you build a series of emails that send to subscribers when triggered by a specific date, activity, or event. Use the API to manage Automation workflows, emails, and queues.

archive

Archiving will permanently end your automation and keep the report data. You’ll be able to replicate your archived automation, but you can’t restart it.

$mailchimp->automations->archive("WORKFLOW_ID");

create

Create a new Automation in your Mailchimp account.

$params = array(
    "recipients" => {
        "list_id" => "YOUR_LIST_ID",
        "store_id" => "YOUR_STORE_ID"
    },
    "settings" => {
        "from_name" => "Not an email address",
        "reply_to" => "your@email.xyz"
    },
    "trigger_settings" => {
        "workflow_type" => "abandonedCart"
    }
);
$mailchimp->automations->create($params);

createQueue

Manually add a subscriber to a workflow, bypassing the default trigger settings. You can also use this endpoint to trigger a series of automated emails in an API 3.0 workflow type or add subscribers to an automated email queue that uses the API request delay type.

$params = array( "email_address" => "subscriber@email.xyz" );
$mailchimp->automations->create("WORKFLOW_ID", "WORKFLOW_EMAIL_ID", $params);

deleteEmail

Removes an individual Automation workflow email. Emails from certain workflow types, including the Abandoned Cart Email (abandonedCart) and Product Retargeting Email (abandonedBrowse) Workflows, cannot be deleted.

$mailchimp->automations->deleteEmail("WORKFLOW_ID", "WORKFLOW_EMAIL_ID");

deleteSubscriber

Remove a subscriber from a specific Automation workflow. You can remove a subscriber at any point in an Automation workflow, regardless of how many emails they’ve been sent from that workflow. Once they’re removed, they can never be added back to the same workflow.

$params = array( "email_address" => "subscriber@email.xyz" );
$mailchimp->automations->deleteSubscriber("WORKFLOW_ID", $params);

edit

Update some or all of the settings for a Automation.

$params = array(
    settings => {
        "title" => "",
        "from_name" => "Not an email",
        "reply_to" => "your@email.xyz"
    }
);
$mailchimp->automations->edit("WORKFLOW_ID", $params);

get

Get a summary of an account’s Automations (Get a list of Automations or get information about a specific Automation workflow passing a $workflow_id).

// WORKFLOW_ID is optional to get a specific WORKFLOW instead of a list of automations.
$mailchimp->automations->get("WORKFLOW_ID");

pause

Pause all emails in a specific Automation workflow.

$mailchimp->automations->pause("WORKFLOW_ID");

start

Start all emails in an Automation workflow.

$mailchimp->automations->start("WORKFLOW_ID");




  • create
  • createFeedback
  • createFolder
  • delete
  • deleteFeedback
  • deleteFolder
  • edit
  • editContent
  • editFeedback
  • editFolder
  • get
  • getContent
  • getFeedback
  • getFolders
  • sendChecklist

  • create
  • delete
  • edit
  • get


Under Development



  • create
  • createMember/subscribe
  • createMemberNote
  • createMemberTag
  • createSegment
  • createSignup
  • delete
  • deleteMember/Unsubscribe
  • deleteMemberPermanently
  • deleteMemberNote
  • deleteMergeField
  • deleteSegment
  • edit
  • editMember
  • editMemberNote
  • editMemberTag
  • editMergeField
  • editSegment
  • get
  • getAbuse
  • getActivity
  • getClients
  • getGrowthHistory
  • getLocations
  • getMembers
  • getMemberNotes
  • getMemberTags
  • getMergeFields
  • getSegments
  • getSignup


Under Development

Clone this wiki locally