Skip to main content

Mailchimp

1. Create an API key​

  1. Sign in to Mailchimp and open your profile → Profile → Extras → API keys.
  2. Click Create A Key, name it (for example Blokkio) and copy it.

The key ends with your account's data center, for example …-us6. Blokkio reads it from there and sends requests to https://us6.api.mailchimp.com/3.0, so you don't have to enter it separately.

2. Create the connection​

  1. In Blokkio, go to Apps and open Mailchimp.
  2. Click Connect, paste the key into API key (or click Use secret) and click Create.
  3. Test connection calls GET /ping and shows Connected — us6.api.mailchimp.com answered 200.

Finding the audience id​

Most actions need an Audience ID (Mailchimp's API calls it a list id). Run List audiences, or in Mailchimp open Audience → All contacts → Settings → Audience name and defaults.

Actions​

ActionWhat it doesMain inputs
List audiencesYour audiences with member countsHow many
Add or update memberAdds the email to the audience, or updates it if it's already thereAudience ID, Email, Status for new members (subscribed, pending sends a confirmation email), Status for existing members, Merge fields, Tags, Language, VIP
Get memberOne member by emailAudience ID, Email
Add tags to memberAdds tags (new tag names are created)Audience ID, Email, Tags (comma-separated)
Remove tags from memberRemoves tagsAudience ID, Email, Tags
List membersMembers, most recently changed firstAudience ID, Status, How many

Merge fields are the audience's custom fields as JSON, using their merge tags: { "FNAME": "Ada", "LNAME": "Lovelace" }. Find the tags under Audience → Settings → Audience fields and merge tags. If the audience has required fields, fill them or new members are rejected.

To change an existing member's address, put the current address in Email and the new one in New email.

Troubleshooting​

MessageWhat to do
HTTP 401 … API Key InvalidThe key is wrong or was disabled.
the field 'password' doesn't look right / is emptyThe key is missing its -us… ending. Copy the whole key again.
HTTP 400 … Member ExistsUse Add or update member (it updates existing members).
HTTP 400 … looks fake or invalid / was permanently deletedMailchimp refuses this address; it can't be re-added through the API.
HTTP 404 … The requested resource could not be foundWrong Audience ID, or the email isn't in the audience (Get member).