Mailchimp
1. Create an API key
- Sign in to Mailchimp and open your profile → Profile → Extras → API keys.
- 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
- In Blokkio, go to Apps and open Mailchimp.
- Click Connect, paste the key into API key (or click Use secret) and click Create.
- Test connection calls
GET /pingand 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
| Action | What it does | Main inputs |
|---|---|---|
| List audiences | Your audiences with member counts | How many |
| Add or update member | Adds the email to the audience, or updates it if it's already there | Audience ID, Email, Status for new members (subscribed, pending sends a confirmation email), Status for existing members, Merge fields, Tags, Language, VIP |
| Get member | One member by email | Audience ID, Email |
| Add tags to member | Adds tags (new tag names are created) | Audience ID, Email, Tags (comma-separated) |
| Remove tags from member | Removes tags | Audience ID, Email, Tags |
| List members | Members, most recently changed first | Audience 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
| Message | What to do |
|---|---|
HTTP 401 … API Key Invalid | The key is wrong or was disabled. |
| the field 'password' doesn't look right / is empty | The key is missing its -us… ending. Copy the whole key again. |
HTTP 400 … Member Exists | Use Add or update member (it updates existing members). |
HTTP 400 … looks fake or invalid / was permanently deleted | Mailchimp refuses this address; it can't be re-added through the API. |
HTTP 404 … The requested resource could not be found | Wrong Audience ID, or the email isn't in the audience (Get member). |