> For the complete documentation index, see [llms.txt](https://docs.anedot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anedot.com/integrations/email-marketing-communication/mailchimp.md).

# Mailchimp

Connect Anedot to Mailchimp to send Action Page contacts to your audience, manage your connection, and review field mapping, payload data, and troubleshooting.

The **Mailchimp** integration sends Action Page contacts to a Mailchimp audience, and lives in **Settings > Integrations**. This article covers how to get your credentials, create the connection, manage your connection, review what Anedot sends, find your data, and review field mapping, payload data, and troubleshooting.

## Before You Begin

You need **Integrations: Edit permissions** to add, edit, push or delete a connection. Integrations: Edit permissions also require **Action Pages: View permissions** and **Integrations: View permissions**. See [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md).

You also need these items from Mailchimp:

* A **Mailchimp API key**
* The **Audience ID** for the audience that should receive contacts
* Merge tags for the fields you want to store

Mailchimp users with Manager permissions can generate their own API keys. Users with Mailchimp Admin permissions can also see API keys that other account users have generated.

## Connect Anedot to Mailchimp

### Step 1: Get Your Mailchimp Credentials

#### Get Your Mailchimp API Key

1. Go to Mailchimp and click your profile icon.
2. Choose **Profile**.
3. Click the **Extras** drop-down, then choose **API keys**.
4. In the **Your API Keys** section, click **Create A Key**.
5. Enter a name for your key.
6. Click **Generate Key**.
7. Click **Copy Key to Clipboard**.
8. Click **Done**.

You now have an API key to enter in Anedot.

{% hint style="warning" %}
Mailchimp shows the full key only right after you generate it. After that, it shows only the name and the first 4 digits, so if you lose the key, generate a new one, then delete the Anedot connection and connect again.
{% endhint %}

{% hint style="info" %}
Mailchimp API keys created after June 22, 2026 expire one year after they're created, and keys created before that date don't expire. Anedot doesn't send a separate expiration warning.
{% endhint %}

Mailchimp treats API keys like passwords. Give each Anedot connection its own API key, and never email an API key.

#### Get Your Audience ID

The Audience ID is also known as the list ID, and it can't be changed.

1. Go to Mailchimp and click **Audience**.
2. If you have more than one audience, click the **Audience** drop-down and choose the one you want.
3. Click the **More options** drop-down menu, then select **Audience settings**.
4. In the settings table, find **Audience ID**.
5. Click the copy icon.

You now have the Audience ID to enter in Anedot.

#### Set Up Merge Tags

Default Mailchimp audiences include **FNAME**, **LNAME**, and **PHONE**. The other merge tags Anedot sends aren't in a default audience, so create the ones you want to store.

1. Go to Mailchimp and click **Audience**.
2. If you have more than one audience, choose it from the **Audience** drop-down.
3. Click the horizontal three-dot icon, then choose **Audience fields and merge tags**.
4. Click **Create a new field**.
5. Enter a name, data type, and merge tag.
6. Save the field.

Your audience now has a merge tag ready to store that Anedot value. See [Field Mapping](https://docs.anedot.com/integrations/email-marketing-communication/mailchimp.md#field-mapping) for every tag Anedot sends.

### Step 2: Create the Connection in Anedot

1. Go to **Settings > Integrations**.
2. Click **New integration**.
3. Choose **Mailchimp**. The card is in the **Email Marketing** category and is described as "Send Action Page data to Mailchimp audiences."
4. Leave **All Action Pages** checked to include all current and future pages. The checkbox includes the note "Includes future pages added after this integration is saved."
5. (Optional) To pick pages instead, uncheck **All Action Pages** and choose pages in **Selected pages**. If you choose two or more pages, Action Pages you add later are also included.
6. (Optional) If **All Action Pages** is checked, enter a comma separated list of Action Page IDs, with no spaces, in **Exclude Pages** to leave those pages out.
7. Leave **Team** set to **All teams**, or choose a team. The help text is "Optionally limit this connection to one team."
8. Enter your **Mailchimp API key**.
9. Enter your **Audience ID**.
10. Click **Create integration**.

Anedot shows "Integration created." and the connection appears in your list as **Integration** followed by the connection ID.

{% hint style="warning" %}
If you uncheck **All Action Pages**, select at least one page. Otherwise, Anedot shows "Select at least one Action Page, or choose All Action Pages."
{% endhint %}

If you see "Action pages must load before you can save this integration." or "Action pages are still loading. Try again in a moment.", wait for your Action Pages to load, then click **Create integration** again.

The create form doesn't include **Name** or **Enabled**, and there's no Test button. **Enabled** is on by default. Anedot takes the data center from the text after the hyphen in your API key.

Creating the connection doesn't send a contact or test your credentials. Anedot starts sending with the next qualifying submission or successful recurring charge.

## Manage Your Connection

### Edit A Connection

1. Go to **Settings > Integrations**.
2. Click **Edit** on your connection. The **Edit integration** form opens.
3. Enter a **Name**. This field is required to save. A Name you save appears on the connection.
4. (Optional) Change the Action Pages, **Exclude Pages**, or **Team**.
5. Leave the **Credentials/details JSON** box as it is. It shows only details, or "None" when empty. Credentials are never shown.
6. Click **Save integration**.

Anedot shows "Integration updated."

The **Provider** field is read-only. If the **Credentials/details JSON** box doesn't contain valid JSON, Anedot shows "Details must be valid JSON."

{% hint style="warning" %}
You can't change the API key or Audience ID after you create the connection. To use different credentials, delete the connection and connect again.
{% endhint %}

{% hint style="info" %}
To remove a team limit, choose **All teams** in **Team** and click **Save integration**. The connection then sends for every eligible Action Page in its Action Page selection.
{% endhint %}

### Turn A Connection Off or On

The **Edit integration** form includes an **Enabled** checkbox, which is on by default. Uncheck **Enabled** and click **Save integration** to stop live sends and **Push unsent**. When **Enabled** is off, Anedot doesn't create an Integration Requests row.

### Push Unsent Donations

**Push unsent** sends submissions and recurring charges in a date range that haven't already been sent successfully. This includes records that failed and records that were never tried.

1. Go to **Settings > Integrations**.
2. Click **Push unsent** on your Mailchimp connection.
3. Choose a date range of up to 31 days that starts within the last 12 months.
4. Start the push.

Anedot shows "Push started." Wait about five minutes, then check **Settings > Integration Requests** for the new rows.

**Push unsent** follows **Enabled**, **Team**, the Action Page scope, and **Exclude Pages**. If a record was already sent successfully to any Mailchimp connection that uses the same API key, Anedot doesn't send it again. See [Push Unsent](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#push-unsent) in Webhooks (API).

### Delete A Connection

1. Go to **Settings > Integrations**.
2. Click **Delete** on your Mailchimp connection.
3. Confirm when you see the prompt "Delete this integration?"

Anedot shows "Integration deleted." and stops sending contacts to Mailchimp. Records already in Mailchimp don't change.

{% hint style="danger" %}
Deleting a connection can't be undone. To send contacts to Mailchimp again, connect again.
{% endhint %}

## Data Relays

Mailchimp is a direct-send integration. Anedot sends each contact to the Mailchimp Marketing API.

### What Anedot Sends

Anedot creates or updates one audience member per qualifying submission or successful recurring charge, keyed by the email address. This includes:

* Donation Page submissions after capture, with the **EVENT** merge tag set to "Anedot: Submission Completed"
* Lead Page submissions, with **EVENT** set to "Anedot: Submission Completed", **AMOUNT** set to "0.0", and **FUNDALLOC** empty
* Paid and free Event Page submissions, with **EVENT** set to "Anedot: Submission Completed"
* Each successful recurring charge, with **EVENT** set to "Anedot: ActionPagesRecurrence Completed"

A later submission or charge from the same email updates the same Mailchimp member. Anedot sends the new merge values, including blank values for empty fields.

New contacts are always added as subscribed, even when the donor didn't opt in to email. The **OPTINEMAIL** and **OPTINPHONE** merge tags still send the donor's consent as "true" or "false".

If two Mailchimp connections share the same API key, each contact is usually sent to only one of those connections. To send contacts to more than one audience, use a different API key for each connection.

Live sends follow your Action Page scope, **Exclude Pages**, **Team**, and **Enabled**.

### Records Anedot Skips

Anedot doesn't send these records to Mailchimp:

* Failed recurring charges
* Refunds, voids, chargebacks, ACH returns, and settlements
* Abandoned Actions, later edits, and commitment changes (see [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md))
* Submissions with no email address
* Donation Page submissions that don't include a donation
* Records already sent successfully to a Mailchimp connection that uses the same API key
* Any record while **Enabled** is off

When Anedot skips a send, it doesn't create an Integration Requests row. Anedot doesn't send a Donation Completed event.

### Delivery And Retries

You can review every send in **Settings > Integration Requests**. See [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md).

* **Success:** Mailchimp returned HTTP 200.
* **Failure:** Mailchimp returned any other HTTP status. Anedot sends the failure email and doesn't retry.
* **Error:** Anedot couldn't complete the request, for example because of a timeout. Anedot doesn't send the failure email, and the send can be retried automatically. Each retry can add another Error row.

When a send fails, Anedot emails users who have the **Integration sync failed** notification turned on. This notification is off by default. The subject is "Anedot Mailchimp Integration Failed" when the connection has no name. When a Name is set, the subject is "Anedot" followed by the connection Name and "Integration Failed". See [Notifications](https://docs.anedot.com/get-started/security/notifications.md).

After five consecutive HTTP 401 or 403 responses, Anedot unchecks **Enabled**, and the **Status** column shows disabled. There's no other notice. To start again, check **Enabled** and click **Save integration**.

{% hint style="warning" %}
The count of consecutive 401 or 403 responses resets only after a successful send, so the next 401 or 403 can turn **Enabled** off again. If that happens, delete the connection, connect again with a valid API key, and use **Push unsent**.
{% endhint %}

## Find Your Data in Mailchimp

1. Go to **Settings > Integration Requests**.
2. Find a Success row for the submission or charge.
3. Open Mailchimp and go to **Audience**.
4. Choose the audience.
5. Review the contact.

What happens after Mailchimp accepts a contact is controlled by Mailchimp.

To learn more, see [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md).

## Field Mapping

All merge tag values are strings.

| Merge Tag                                                                | What Anedot Sends                                                                                                                                                    |
| ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **FNAME**, **LNAME**, **PHONE**                                          | The person's name and phone. These tags are in a default Mailchimp audience.                                                                                         |
| **STREET**, **STREET2**, **CITY**, **STATE**, **ZIPCODE**                | Address fields.                                                                                                                                                      |
| **UTMCAMPGN**, **UTMCONTENT**, **UTMMEDIUM**, **UTMSOURCE**, **UTMTERM** | UTM values, or empty.                                                                                                                                                |
| **SRCECODE**                                                             | The source code, or empty.                                                                                                                                           |
| **EVENT**                                                                | "Anedot: Submission Completed" for submissions, or "Anedot: ActionPagesRecurrence Completed" for successful recurring charges.                                       |
| **OPTINPHONE**, **OPTINEMAIL**                                           | "true" or "false".                                                                                                                                                   |
| **AMOUNT**                                                               | A dollar string such as "25.0". For Lead Pages, this is "0.0".                                                                                                       |
| **DONATEDATE**                                                           | The record's creation date in the account time zone, in MM/DD/YYYY format.                                                                                           |
| **DONATEURL**                                                            | The referrer, or empty.                                                                                                                                              |
| **FUNDALLOC**                                                            | InternalIdentifier, the fund ID, Amount, and the dollar amount, such as 25.0. A semicolon separates funds when there's more than one. For Lead Pages, this is empty. |

Create the merge tags you want to store, other than **FNAME**, **LNAME**, and **PHONE**, in Mailchimp under **Audience**, then the horizontal three-dot icon, then **Audience fields and merge tags**. See [Set Up Merge Tags](https://docs.anedot.com/integrations/email-marketing-communication/mailchimp.md#set-up-merge-tags).

### Custom Fields

Custom field labels become their own merge tags. Anedot uppercases the label, removes characters that aren't letters or numbers, and keeps the first 10 characters. For example, the label "custom foo field" becomes **CUSTOMFOOF**. Create the same tag in Mailchimp.

{% hint style="warning" %}
A custom tag can overwrite a standard one if the two tags match. If two custom field labels start with the same 10 characters, adjust the labels so each tag is unique.
{% endhint %}

## Payload Data

This example shows a stored Integration Requests request body for a $25.00 one-time card donation from Annie Dot (<annie.dot@example.com>). Values in angle brackets are placeholders.

```json
{
  "email_address": "annie.dot@example.com",
  "status_if_new": "subscribed",
  "merge_fields": {
    "FNAME": "Annie",
    "LNAME": "Dot",
    "PHONE": "<phone or empty>",
    "STREET": "<line 1>",
    "STREET2": "<line 2 or empty>",
    "CITY": "<city>",
    "STATE": "<state>",
    "ZIPCODE": "<zip>",
    "UTMCAMPGN": "<or empty>",
    "UTMCONTENT": "<or empty>",
    "UTMMEDIUM": "<or empty>",
    "UTMSOURCE": "<or empty>",
    "UTMTERM": "<or empty>",
    "SRCECODE": "<source code or empty>",
    "EVENT": "Anedot: Submission Completed",
    "OPTINPHONE": "<true or false>",
    "OPTINEMAIL": "<true or false>",
    "AMOUNT": "25.0",
    "DONATEDATE": "<MM/DD/YYYY>",
    "DONATEURL": "<referrer or empty>",
    "FUNDALLOC": "InternalIdentifier:<fund id>,Amount:25.0"
  }
}
```

Anedot saves Mailchimp's response on the Integration Requests row. This article doesn't include a sample Mailchimp response.

## Troubleshooting

### A Contact Isn't in Mailchimp

* Check **Settings > Integration Requests** for a row for the submission or charge.
* Review the Action Page scope, **Exclude Pages**, **Team**, and **Enabled** on the connection.
* Submissions with no email, Donation Page submissions with no donation, refunds, and other skipped records don't create a row. See [Records Anedot Skips](https://docs.anedot.com/integrations/email-marketing-communication/mailchimp.md#records-anedot-skips).
* If two Mailchimp connections share the same API key, the contact may have been sent to the other connection.

### You Need to Use Different Credentials

You can't change the API key or Audience ID on an existing connection. Delete the connection, connect again with the new credentials, then use **Push unsent** to send submissions and charges that weren't sent successfully.

### The Connection Shows Disabled

After five consecutive HTTP 401 or 403 responses, Anedot unchecks **Enabled**, and **Status** shows disabled. Check **Enabled** and click **Save integration** to start again. If the next send returns 401 or 403, **Enabled** can turn off again. In that case, delete the connection, connect again with a valid API key, and use **Push unsent**.

### Integration Requests Shows Failure or Error

Review the row in **Settings > Integration Requests**. Failure rows come from any HTTP status other than 200. Use **Push unsent** to send those records again. Error rows can be retried automatically.

If the issue continues, contact our Support team at <help@anedot.com>.

## Related Articles

* [Integrations](https://docs.anedot.com/integrations.md)
* [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md)
* [Webhooks (API)](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md)
* [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md)
* [Teams](https://docs.anedot.com/settings/access/teams.md)
* [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md)
* [Notifications](https://docs.anedot.com/get-started/security/notifications.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.anedot.com/integrations/email-marketing-communication/mailchimp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
