Mailchimp

Perform tasks like adding or updating a contact in your Mailchimp account or tracking an event for automation. We have the following function types available for Mailchimp:

TypeDescription
addOrUpdateListMemberAdds or updates a list member
createEventAdds or updates a contact and tracks an event

API Key

Here's where to find your Mailchimp API key:

  • Log in to your Mailchimp account
  • Open the menu with your avatar in the upper right
  • Navigate to Profile › Extras › API keys
  • Under "Your API keys", click Create A Key

It will look something like this: ecee71ce9jkl636820fb55e0163515c6-us16

Run the following command to store it in your secrets:

statickit secrets add mailchimp-api-key {your-api-key}

Audience ID

Here's where to find your Audience ID place in the audience property:

  • Log in to your Mailchimp account
  • Click Audience tab at the top
  • Navigate to Manage Audience › Settings
  • Click Audience name and defaults
  • Locate the ID under the "Audience ID" heading (it looks like 5ca598e7e8)