# Integration Setup

Configuring your Mailchimp integration with Emailpref is a straightforward process. Here's how to seamlessly connect your accounts:

\
**1) Navigate to Integrations:** Begin by accessing the "Integrations" tab located on the left-hand side of your dashboard. This is where you can manage all your ESP integrations.

**2) Add Mailchimp:** Click on the "Add Integration" button and select "Mailchimp" from the list of available integrations.

<figure><img src="https://3292524555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FctRzYUzjkmxzY6BMiOev%2Fuploads%2FOH5RBtbjfmGAwo9iULuq%2FScreenshot%202024-08-22%20at%2017.18.57.png?alt=media&#x26;token=d75113d8-676b-4f64-b927-8908870e4582" alt=""><figcaption><p>Emailpref Integrations</p></figcaption></figure>

**3) Provide Integration Details:** You'll be prompted to provide essential integration details:\
\
&#x20;     **a) Integration Name:** Assign a name for this integration to help you identify it easily within your Emailpref account.\
\
&#x20;     **b) API Key :** &#x20;

To retrieve your Mailchimp API key:

1. Log in to your Mailchimp account.
2. Click on your **profile icon** (bottom left), then go to **Account Settings**.
3. Navigate to the **Extras** tab and select **API Keys** from the dropdown.
4. Under "Your API Keys," enter a name (e.g., *Preference Center*) and click **Generate Key**.
5. Copy the generated API key.
6. Paste the key into **Emailpref** where prompted.

**4) Confirmation:** Once you've filled in all the necessary information, click "Accept." If any information is incorrect, Emailpref will display an error message for correction. When the details are correct, you'll receive a confirmation message, signaling that your integration is successfully set up.&#x20;

{% hint style="danger" %}
Once your integration is successfully established, Emailpref takes care of two crucial tasks: list retrieval and default action creation. Here's how this process unfolds:

1. **Automatic List Fetching**: Emailpref promptly fetches all your lists from Mailchimp and conveniently displays them in the 'Lists' tab. This automation eliminates the need for manual list transfers or data management.
2. **Real-time Data Synchronization**: Simultaneously, Emailpref creates default actions for lists, which you can readily access in the 'Actions' tab. These default actions are essential for real-time data synchronization, ensuring that your preference pages and Mailchimp lists remain seamlessly aligned.

By performing these tasks efficiently, Emailpref simplifies the management of your lists and actions.
{% endhint %}

\
By following these steps, you'll establish a seamless connection between Emailpref and Mailchimp, ensuring efficient data synchronization and enabling users to manage their email preferences effortlessly.
