Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I find the workflow id of an automation in Mailchimp?

I would like to use Mailchimp Api 3.0 to add a subscriber to an automation workflow, but I can't find where the workflow_id or workflow_email_id are located... this is from the documentation:

POST /automations/{workflow_id}/emails/{workflow_email_id}/queue Add a subscriber to a workflow email

http://developer.mailchimp.com/documentation/mailchimp/reference/automations/emails/queue/

Can anyone tell me to find it? It's probably somewhere really obvious. I mean the list_id is well covered, but I can't find any info about this.

like image 714
Gelun Avatar asked Dec 02 '16 03:12

Gelun


People also ask

What is an automated workflow in Mailchimp?

Automated workflows free up time for your team. You can send messages that are more personalized with less effort. Mailchimp makes it even easier by tracking the results of those messages, so you can go into your dashboard and see what's working best.

How do I change a workflow email in Mailchimp?

To edit an email's content, pause the email you want to work with and click Edit Email. Navigate through the steps of the Email Designer to make changes, and click Save and Return to Workflow after you're finished.

Where is classic automation in Mailchimp?

On your account dashboard, click the Automations icon. Click Classic Automations. Find and choose the automation you want to use.


2 Answers

The answer is found in the official mailchimp knowledge base: It explains that you simply go into the workflow and read the id from the URL.

Other ways to get id information about anything:

  1. Using the API endpoint, detailed here: http://developer.mailchimp.com/documentation/mailchimp/reference/automations/ You'll see that the Response body parameters return everything about the automations, including the id.
  2. Probably the easier way: use the developer playground https://us1.api.mailchimp.com/playground/?_ga=1.218336095.774374564.1480036371

So, once you set up your lists and automations, go into the playground, and you'll find all the ids you'll need for everything.

like image 31
Gelun Avatar answered Dec 30 '22 20:12

Gelun


I found this confusing as well. Here is how I got the answer:

  1. Send a GET request to https://us9.api.mailchimp.com/3.0/automations to find the workflow_id
  2. With the workflow_id, send a GET request to https://us9.api.mailchimp.com/3.0/automations/<workflow_id>/emails to find the workflow_email_id. The workflow_email_id will be the "id" in the array that's returned.
  3. From there you can make POST requests to https://us9.api.mailchimp.com/3.0/automations/<workflow_id>/emails/<workflow_email_id>/queue

Keep in mind you might need to subscribe an email address to a list first for the post request to work. To subscribe you can use: https://us9.api.mailchimp.com/3.0/lists/<list_id> with your data:

{
  "members": [{
        "email_address" : "[email protected]",
        "status": "subscribed"
  }]
}
like image 130
user1791914 Avatar answered Dec 30 '22 22:12

user1791914