Mailchimp
Getting started? Check out How To Connect Forms to Mailchimp guide first.
| Type | Description |
|---|---|
addOrUpdateContact | Adds or updates a contact |
Add or update contact
Adds or updates a contact in a Mailchimp audience. Under the hood, this action calls the add or update a list member API endpoint. If the call fails, we'll retry it for you.
| Key | Type | Default | Description |
|---|---|---|---|
audience | String | @mailchimp-audience | Your Mailchimp audience ID (a static value or a @secret reference) |
apiKey | String | @mailchimp-api-key | The name of the StaticKit secret holding your API key (must be a @secret reference) |
statusIfNew | String | subscribed | The contact's status if they are new (possible values: subscribed, unsubscribed, cleaned, pending, transaction) |
mergeFields | Object | {} | A mapping of Mailchimp merge tags to form field names |
emailAddressField | String | email | The email address field name |
Usage Example
{
"forms": {
"contact": {
"name": "Contact Form",
"actions": [
{
"app": "mailchimp",
"type": "addOrUpdateContact",
"audience": "8djs8fg8d",
"mergeFields": {
"FNAME": "first_name"
}
}
]
}
}
}