Create Audience
mailchimp.create_list
ActionEmailconnection required
Calls the Mailchimp API with the connection's credentials.
Create an audience (list). Mailchimp requires a physical contact address and campaign defaults on every audience, and rejects the call naming whichever sub-key is missing.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Mailchimp
- Secret shape
- the Mailchimp API key (…-<dc>)
- Config it needs
- dc
- Resolved by
- config.connection_id, else node.connection_id
Configuration
6 fields, 4 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
name The audience name, as it appears in Mailchimp. | string | Yes | — | — | — |
permission_reminder The reminder shown to members of why they are receiving mail from you; it appears in every campaign footer. | string | Yes | — | — | — |
contact The physical mailing address, as a JSON object with at least "company", "address1", "city" and "country" (a two-letter code). | object | Yes | — | — | — |
campaign_defaults Defaults for campaigns sent to this audience, as a JSON object with "from_name", "from_email", "subject" and "language". | object | Yes | — | — | — |
email_type_option Let members choose between HTML and plain-text mail. | boolean | No | false | — | — |
extra Further keys to merge into the audience sent to Mailchimp, such as double_optin or notify_on_subscribe, as a JSON object. | object | No | — | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"email_type_option": false
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The audience id, used as 'list_id' by every member node. | string | — |
web_id The id this audience has in the Mailchimp web UI's URLs. | number | — |
name The audience name. | string | — |
contact The physical mailing address shown in this audience's footer. | object | — |
permission_reminder The reminder text shown to this audience. | string | — |
campaign_defaults Default from_name, from_email, subject and language. | object | — |
date_created When the audience was created, ISO 8601. | string | — |
email_type_option Whether members may choose html or plain text. | boolean | — |
double_optin Whether new members must confirm by email. | boolean | — |
stats Member counts and engagement rates for the audience. | object | — |
{
"campaign_defaults": {},
"contact": {},
"date_created": "",
"double_optin": false,
"email_type_option": false,
"id": "",
"name": "",
"permission_reminder": "",
"stats": {},
"web_id": 0
}See Create Audience run in a workflow.
In a technical demo we add the Mailchimp connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.