# Mailchimp

### Connection <a href="#connect" id="connect"></a>

When you're setting up your first workflow with Mailchimp, you'll need to add your API key so that Mailchimp is a connected app within MESA.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FQ8FBKsoSoXmKUaQOhuOR%2Fimage.png?alt=media&#x26;token=f485b810-22a2-426e-a995-8b6ca469f699" alt=""><figcaption></figcaption></figure>

1\. You can locate your [API key](https://us4.admin.mailchimp.com/account/api/) by clicking your Account bubble, located at the top right of the Mailchimp Dashboard. Then, locate Account & billing and click on it.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FyuVaNS1RYQzR6qMJXReF%2Fmailchimp-account.png?alt=media&#x26;token=c7bd5d6f-78c7-4bdc-be00-8c9a8b4ce49b" alt=""><figcaption></figcaption></figure>

2\. Next, click on the Extras dropdown and select API keys.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FwBwWllUcnBrXrdiHEuao%2Fmailchimp-api-keys.png?alt=media&#x26;token=f8a5d315-77e4-4ad6-9220-2333bc07c9de" alt=""><figcaption></figcaption></figure>

3\. Scroll down until you see Your API Keys. if you have an existing API key, skip this step. If you do not have any active API keys, you can click on Create A Key.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F0jppychaUeSHA2EuNQDO%2Fmailchimp-active-api-keys.png?alt=media&#x26;token=2cf35850-73fa-45c1-839f-3ada729cf078" alt=""><figcaption></figcaption></figure>

4\. Once you have an API key, copy the value under API key.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FDi166Oupz2i68lwmKFDV%2Fmailchimp-your-api-keys.png?alt=media&#x26;token=d82b4b24-5780-4c5c-ab89-1b2bda18cb90" alt=""><figcaption></figcaption></figure>

5\. Then, paste that into your MESA's workflow's Mailchimp step and click on Add Connection.

Afterwards, you are all set and you can re-use the newly created connection for your future workflows!

### Configure <a href="#configuring" id="configuring"></a>

#### Locate your Admin URL <a href="#admin-url" id="admin-url"></a>

For MESA's Mailchimp [action](https://docs.getmesa.com/workflow-builder/triggers), you can enter your Admin URL by selecting the checkbox under More options.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F8DBN9hnxtpO0mORYxrVZ%2Fmailchimp-more-options.png?alt=media&#x26;token=b77e62b8-4861-4ae7-9d36-28088b1fbf54" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FaYzw5tALuGrGMWwUxQG4%2Fmailchimp-admin-url.png?alt=media&#x26;token=825e7e37-75ae-42fe-9063-e01785b60954" alt=""><figcaption></figcaption></figure>

To locate the Admin URL, log into your [Mailchimp account](https://us7.admin.mailchimp.com/login). Then, view your browser's URL and copy the values before .admin. Paste that into the **Admin URL** field in your MESA workflow.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FQAa0JQ9xRExUUaqc0CAv%2Fmailchimp-url.png?alt=media&#x26;token=47efd27c-a026-463e-89a7-9b45273ff879" alt=""><figcaption></figcaption></figure>

Here is an example of what the Admin URL could look like.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F29BJM6l6Oqstt6LJsguR%2Fmailchimp-admin-url-example.png?alt=media&#x26;token=b137fbe1-70fa-438c-86c6-a9ad6406d2fb" alt=""><figcaption></figcaption></figure>

#### Locate your Audience ID <a href="#audience-id" id="audience-id"></a>

For MESA's Mailchimp [action](https://docs.getmesa.com/workflow-builder/triggers), you can enter your Audience ID by selecting the checkbox under More options.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FGVFnA1Oe4GZGi45eN1Sm%2Fmailchimp-audience-id-selector.png?alt=media&#x26;token=c72d45c3-9151-4fc5-8efe-fd0b7c1d3e38" alt=""><figcaption></figcaption></figure>

1\. To locate the Audience ID, log into your [Mailchimp account](https://us7.admin.mailchimp.com/login). Then, go to [Audience](https://us7.admin.mailchimp.com/audience/) and select your audience.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FtdXGjaIGuEW748q3KfOC%2Fmailchimp-audience.png?alt=media&#x26;token=2c7a0a9b-4c58-44d1-a683-e419b52848c3" alt=""><figcaption></figcaption></figure>

2\. Once the audience is selected, click on Settings under the Manage Audience drop-down menu.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FbdFWFmntDI2y57qoMM5S%2Fmailchimp-settings.png?alt=media&#x26;token=6da68a59-3a73-4e11-a2fc-bc056deb9b0a" alt=""><figcaption></figcaption></figure>

3\. Under Audience name and campaign defaults, you will see your Audience ID on the right-hand side.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FjWTqorxNhQV3Rnq9hvfA%2Fmailchimp-audience-name.png?alt=media&#x26;token=ef39c180-7619-485a-8f8d-6c8288479293" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FcESV2JkLCAQUW2niIkA1%2Fmailchimp-audience-id.png?alt=media&#x26;token=8d78ffea-d5d9-43c2-91f1-bcfc53a6ef4b" alt=""><figcaption></figcaption></figure>

4\. Copy the value and then paste that into the Audience ID field in your MESA workflow.

Here is an example of what the Audience ID could look like.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FPoJobakjVGvAUGKyy82F%2Fmailchimp-audience-id-mesa.png?alt=media&#x26;token=617f4f03-e070-480d-9eb6-b17d1c0d36b1" alt=""><figcaption></figcaption></figure>
