The Mailchimp connector lets your AI agent act in each user's Mailchimp account. Each user signs in to Mailchimp once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 73 tools.
- Tools
- 73
- What they doRead · write · destructive
- 36 · 30 · 736 read30 write7 destructive
- Users sign in with
- OAuth
- OAuth app
- Scalekit's or your own
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Mailchimp connection
In AgentKit > Connections, create a Mailchimp connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Scalekit credentials are available for Mailchimp, so you don't need to register an OAuth app. To show your own app on the consent screen, use your own credentials instead.
Use your own OAuth app
Register your Mailchimp account with Scalekit so Scalekit handles the OAuth flow and token refresh automatically. The connection name you create is used to identify and invoke the connection in your code.
-
Set up auth redirects
- In Scalekit dashboard, go to AgentKit > Connections > Create Connection. Find Mailchimp and click Create. Copy the redirect URI — it looks like
https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback.

- Log in to your Mailchimp account and go to Account & Billing > Extras > API keys > OAuth apps.

- Click Register An App, fill in the app details, and paste the redirect URI from Scalekit into the redirect URI field.

- In Scalekit dashboard, go to AgentKit > Connections > Create Connection. Find Mailchimp and click Create. Copy the redirect URI — it looks like
-
Get client credentials
- In your Mailchimp OAuth app, copy the Client ID and Client Secret.
-
Add credentials in Scalekit
- In Scalekit dashboard, open the Mailchimp connection you created and enter:
- Client ID
- Client Secret

- Click Save.
- In Scalekit dashboard, open the Mailchimp connection you created and enter:
-
Connect a user account
- Click the Connected Accounts tab, then Add Account.
- Enter your user’s ID and click Create Account — you’ll be redirected to Mailchimp to authorize access.

-
Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'mailchimp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Mailchimp:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'mailchimp_account_info',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "mailchimp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Mailchimp:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="mailchimp_account_info",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user signs in once. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolmailchimp_account_infoRetrieve details about the connected Mailchimp account, including username, contact info, and plan details.Read-onlyGet Account Info
Retrieve details about the connected Mailchimp account, including username, contact info, and plan details.
Inputs
fieldsstring- Comma-separated list of fields to return.
mailchimp_automation_emails_listGet a list of the individual emails (workflow emails) within a Mailchimp classic automation.Read-onlyList Automation Emails
Get a list of the individual emails (workflow emails) within a Mailchimp classic automation.
Inputs
workflow_idstringrequired- The ID of the automation. Get it from `mailchimp_automations_list`.
mailchimp_automation_getRetrieve details about a specific classic automation in Mailchimp.Read-onlyGet Automation
Retrieve details about a specific classic automation in Mailchimp.
Inputs
workflow_idstringrequired- The ID of the automation. Get it from `mailchimp_automations_list`.
mailchimp_automations_listReturn a summary of all classic automations (Email Series) in the Mailchimp account.Read-onlyList Automations
Return a summary of all classic automations (Email Series) in the Mailchimp account.
Inputs
countinteger- Number of records per page.
fieldsstring- Comma-separated fields to return.
offsetinteger- Number of records to skip.
statusstring- Filter by automation status: `save`, `paused`, `sending`.
mailchimp_batch_status_getCheck the status of a Mailchimp batch operation.Read-onlyGet Batch Status
Check the status of a Mailchimp batch operation. Use this to poll the result of a previously submitted batch request.
Inputs
batch_idstringrequired- The ID of the batch operation. Returned when a batch is created via the Mailchimp API.
mailchimp_campaign_content_getRetrieve the content (HTML, plain text, or template) of a Mailchimp campaign.Read-onlyGet Campaign Content
Retrieve the content (HTML, plain text, or template) of a Mailchimp campaign.
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
fieldsstring- Comma-separated fields to return.
mailchimp_campaign_getRetrieve details about a specific Mailchimp campaign.Read-onlyGet Campaign
Retrieve details about a specific Mailchimp campaign.
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
fieldsstring- Comma-separated fields to return.
mailchimp_campaigns_listReturn a list of all campaigns in the Mailchimp account, with optional filters.Read-onlyList Campaigns
Return a list of all campaigns in the Mailchimp account, with optional filters.
Inputs
countinteger- Number of records per page.
fieldsstring- Comma-separated fields to return.
list_idstring- Filter by audience ID.
offsetinteger- Number of records to skip.
sort_dirstring- Sort direction: `ASC` or `DESC`.
sort_fieldstring- Sort field: `create_time` or `send_time`.
statusstring- Filter by status: `save`, `paused`, `schedule`, `sending`, `sent`.
typestring- Filter by campaign type: `regular`, `plaintext`, `absplit`, `rss`, `variate`.
mailchimp_ecommerce_orders_listGet a list of orders for a Mailchimp ecommerce store.Read-onlyList Ecommerce Orders
Get a list of orders for a Mailchimp ecommerce store.
Inputs
store_idstringrequired- The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.
countinteger- Number of records to return per page (max 1000).
customer_idstring- Filter orders by customer ID.
offsetinteger- Number of records to skip.
mailchimp_ecommerce_product_getGet information about a specific product in a Mailchimp ecommerce store.Read-onlyGet Ecommerce Product
Get information about a specific product in a Mailchimp ecommerce store.
Inputs
product_idstringrequired- The ID of the product to retrieve.
store_idstringrequired- The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.
mailchimp_ecommerce_products_listGet a list of products for a Mailchimp ecommerce store.Read-onlyList Ecommerce Products
Get a list of products for a Mailchimp ecommerce store.
Inputs
store_idstringrequired- The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.
countinteger- Number of records to return per page (max 1000).
offsetinteger- Number of records to skip.
mailchimp_ecommerce_store_getGet information about a specific ecommerce store.Read-onlyGet Ecommerce Store
Get information about a specific ecommerce store.
Inputs
store_idstringrequired- The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.
mailchimp_ecommerce_stores_listGet information about all ecommerce stores connected to the Mailchimp account.Read-onlyList Ecommerce Stores
Get information about all ecommerce stores connected to the Mailchimp account.
Inputs
countinteger- Number of records to return per page (max 1000).
offsetinteger- Number of records to skip.
mailchimp_landing_pages_listList landing pages in the Mailchimp account.Read-onlyList Landing Pages
List landing pages in the Mailchimp account.
Inputs
countinteger- Number of records to return per page (max 1000).
fieldsstring- Comma-separated fields to return.
offsetinteger- Number of records to skip.
sort_dirstring- Sort direction: `ASC` or `DESC`.
sort_fieldstring- Field to sort results by: `created_at` or `updated_at`.
mailchimp_list_getRetrieve information about a specific Mailchimp audience (list) by its ID.Read-onlyGet Audience
Retrieve information about a specific Mailchimp audience (list) by its ID.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
fieldsstring- Comma-separated fields to return.
mailchimp_list_interest_categories_listGet a list of interest categories (groups) for a Mailchimp audience, used for subscriber segmentation and signup form preferences.Read-onlyList Interest Categories
Get a list of interest categories (groups) for a Mailchimp audience, used for subscriber segmentation and signup form preferences.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
countinteger- Number of records to return per page (max 1000).
offsetinteger- Number of records to skip.
mailchimp_list_member_getRetrieve information about a specific member in a Mailchimp audience.Read-onlyGet Member
Retrieve information about a specific member in a Mailchimp audience. The `subscriber_hash` is the MD5 hash of the member's lowercase email address.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
subscriber_hashstringrequired- MD5 hash of the member's lowercase email address.
fieldsstring- Comma-separated fields to return.
mailchimp_list_members_listReturn a list of members in a Mailchimp audience, with optional filters by status.Read-onlyList Members
Return a list of members in a Mailchimp audience, with optional filters by status.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
countinteger- Number of records per page (max 1000).
fieldsstring- Comma-separated fields to return.
offsetinteger- Number of records to skip.
sort_dirstring- Sort direction: `ASC` or `DESC`.
sort_fieldstring- Field to sort by: `last_changed` or `timestamp_opt`.
statusstring- Filter by member status: `subscribed`, `unsubscribed`, `cleaned`, `pending`, `transactional`, `archived`.
mailchimp_list_merge_fields_listGet a list of merge fields (audience fields, e.g.Read-onlyList Merge Fields
Get a list of merge fields (audience fields, e.g. FNAME, PHONE) for a Mailchimp audience.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
countinteger- Number of records to return per page (max 1000).
offsetinteger- Number of records to skip.
mailchimp_list_tag_searchSearch for tags used in a Mailchimp audience by name prefix.Read-onlySearch Tags
Search for tags used in a Mailchimp audience by name prefix. Returns all tags whose name starts with the given search string.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
namestring- The search prefix used to filter tags by name.
mailchimp_list_webhooks_listList webhooks configured on a Mailchimp audience (list).Read-onlyList Audience Webhooks
List webhooks configured on a Mailchimp audience (list).
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
fieldsstring- Comma-separated fields to return.
mailchimp_lists_listReturn a list of all Mailchimp audiences (lists) in the account.Read-onlyList Audiences
Return a list of all Mailchimp audiences (lists) in the account.
Inputs
countinteger- Number of records to return per page (max 1000).
fieldsstring- Comma-separated fields to return.
offsetinteger- Number of records to skip.
sort_dirstring- Sort direction: `ASC` or `DESC`.
sort_fieldstring- Field to sort results by: `date_created` or `campaign_last_sent`.
mailchimp_member_searchSearch for members by email or name fragment across every audience in the account, or restrict the search to one audience.Read-onlySearch Members
Search for members by email or name fragment across every audience in the account, or restrict the search to one audience. Use this when you don't already know the list_id and subscriber_hash that the other member tools require.
Inputs
querystringrequired- Search term to match against member email addresses and names.
exclude_fieldsstring- Comma-separated fields to exclude from the response.
fieldsstring- Comma-separated fields to return.
list_idstring- Restrict the search to a single audience. Omit to search across all audiences.
mailchimp_pingCheck the health of the Mailchimp API.Read-onlyPing
Check the health of the Mailchimp API. Returns a health status string.
Inputs
This tool takes no inputs.
mailchimp_report_click_detailsReturn click details and statistics for links in a Mailchimp campaign.Read-onlyGet Click Details
Return click details and statistics for links in a Mailchimp campaign.
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
countinteger- Number of records per page.
offsetinteger- Number of records to skip.
mailchimp_report_email_activityReturn per-subscriber email activity for a specific Mailchimp campaign, including opens, clicks, and bounces.Read-onlyGet Email Activity
Return per-subscriber email activity for a specific Mailchimp campaign, including opens, clicks, and bounces.
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
countinteger- Number of records per page.
fieldsstring- Comma-separated fields to return.
offsetinteger- Number of records to skip.
mailchimp_report_getRetrieve the report summary for a specific Mailchimp campaign, including opens, clicks, bounces, and unsubscribes.Read-onlyGet Report
Retrieve the report summary for a specific Mailchimp campaign, including opens, clicks, bounces, and unsubscribes.
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
fieldsstring- Comma-separated fields to return.
mailchimp_report_open_detailsReturn a list of members who opened a specific Mailchimp campaign.Read-onlyGet Open Details
Return a list of members who opened a specific Mailchimp campaign.
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
countinteger- Number of records per page.
offsetinteger- Number of records to skip.
mailchimp_report_unsubscribesReturn a list of members who unsubscribed from a specific Mailchimp campaign.Read-onlyGet Unsubscribes
Return a list of members who unsubscribed from a specific Mailchimp campaign.
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
countinteger- Number of records per page.
offsetinteger- Number of records to skip.
mailchimp_reports_listReturn a list of campaign reports in the Mailchimp account.Read-onlyList Reports
Return a list of campaign reports in the Mailchimp account.
Inputs
countinteger- Number of records per page.
fieldsstring- Comma-separated fields to return.
offsetinteger- Number of records to skip.
typestring- Filter by campaign type: `regular`, `absplit`, `variate`, `rss`, `plaintext`.
mailchimp_segment_getRetrieve details about a specific segment in a Mailchimp audience.Read-onlyGet Segment
Retrieve details about a specific segment in a Mailchimp audience.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
segment_idstringrequired- The ID of the segment. Get it from `mailchimp_segments_list`.
mailchimp_segment_members_listReturn a list of members in a specific segment of a Mailchimp audience.Read-onlyList Segment Members
Return a list of members in a specific segment of a Mailchimp audience.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
segment_idstringrequired- The ID of the segment. Get it from `mailchimp_segments_list`.
countinteger- Number of records per page.
offsetinteger- Number of records to skip.
mailchimp_segments_listReturn a list of segments for a specific Mailchimp audience.Read-onlyList Segments
Return a list of segments for a specific Mailchimp audience.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
countinteger- Number of records per page.
fieldsstring- Comma-separated fields to return.
offsetinteger- Number of records to skip.
typestring- Filter by segment type: `static` or `saved`.
mailchimp_template_getRetrieve information about a specific template in the Mailchimp account.Read-onlyGet Template
Retrieve information about a specific template in the Mailchimp account.
Inputs
template_idstringrequired- The ID of the template. Get it from `mailchimp_templates_list`.
fieldsstring- Comma-separated fields to return.
mailchimp_templates_listReturn a list of templates in the Mailchimp account, including user-created and Mailchimp base templates.Read-onlyList Templates
Return a list of templates in the Mailchimp account, including user-created and Mailchimp base templates.
Inputs
countinteger- Number of records per page.
fieldsstring- Comma-separated fields to return.
offsetinteger- Number of records to skip.
sort_dirstring- Sort direction: `ASC` or `DESC`.
sort_fieldstring- Sort field: `date_created`.
typestring- Filter by template type: `user`, `base`, `gallery`.
mailchimp_automation_pausePause all emails in a Mailchimp classic automation.WritePause Automation
Pause all emails in a Mailchimp classic automation.
Inputs
workflow_idstringrequired- The ID of the automation. Get it from `mailchimp_automations_list`.
mailchimp_automation_startStart all emails in a Mailchimp classic automation.WriteStart Automation
Start all emails in a Mailchimp classic automation.
Inputs
workflow_idstringrequired- The ID of the automation. Get it from `mailchimp_automations_list`.
mailchimp_batch_createSubmit a batch of up to 500 API operations to run asynchronously in a single call.WriteCreate Batch Operation
Submit a batch of up to 500 API operations to run asynchronously in a single call. Poll the result with `mailchimp_batch_status_get` using the returned batch id.
Inputs
operations_jsonstringrequired- JSON array of operation objects, each with method, path, and optionally params/body/operation_id. body must be a JSON-encoded string.
mailchimp_campaign_content_setSet the HTML or plain text content of a Mailchimp campaign.WriteSet Campaign Content
Set the HTML or plain text content of a Mailchimp campaign.
- Idempotent
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
htmlstring- Full HTML content for the campaign.
plain_textstring- Plain text version of the campaign content.
template_idstring- ID of a saved Mailchimp template to use. Get it from `mailchimp_templates_list`.
mailchimp_campaign_createCreate a new Mailchimp campaign (regular, plaintext, A/B split, RSS, or variate).WriteCreate Campaign
Create a new Mailchimp campaign (regular, plaintext, A/B split, RSS, or variate).
Inputs
list_idstringrequired- The ID of the audience to send to. Get it from `mailchimp_lists_list`.
typestringrequired- Campaign type: `regular`, `plaintext`, `absplit`, `rss`, `variate`.
from_namestring- The 'from' name for the campaign.
preview_textstring- Preview text displayed in the inbox.
reply_tostring- The reply-to email address.
segment_idstring- ID of a segment to send to (optional). Get it from `mailchimp_segments_list`.
subject_linestring- The subject line for the campaign.
titlestring- The internal title for this campaign (not shown to subscribers).
mailchimp_campaign_scheduleSchedule a Mailchimp campaign to be sent at a specific time.WriteSchedule Campaign
Schedule a Mailchimp campaign to be sent at a specific time.
Inputs
campaign_idstringrequired- The ID of the campaign to schedule. Get it from `mailchimp_campaigns_list`.
schedule_timestringrequired- UTC datetime to send the campaign in ISO 8601 format (e.g., `2026-05-01T14:00:00+00:00`).
mailchimp_campaign_sendSend a Mailchimp campaign immediately.WriteSend Campaign
Send a Mailchimp campaign immediately. The campaign must be in `save` status with valid content and recipients.
Inputs
campaign_idstringrequired- The ID of the campaign to send. Get it from `mailchimp_campaigns_list`.
mailchimp_campaign_testSend a test email for a Mailchimp campaign to one or more email addresses.WriteSend Test Email
Send a test email for a Mailchimp campaign to one or more email addresses.
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
test_emailsstringrequired- JSON array of email addresses to send the test to.
send_typestring- Email format for the test: `html` or `plaintext`.
mailchimp_campaign_unscheduleCancel a scheduled Mailchimp campaign and return it to draft status.WriteUnschedule Campaign
Cancel a scheduled Mailchimp campaign and return it to draft status.
Inputs
campaign_idstringrequired- The ID of the scheduled campaign. Get it from `mailchimp_campaigns_list`.
mailchimp_campaign_updateUpdate the settings of a Mailchimp campaign that has not yet been sent.WriteUpdate Campaign
Update the settings of a Mailchimp campaign that has not yet been sent.
Inputs
campaign_idstringrequired- The ID of the campaign. Get it from `mailchimp_campaigns_list`.
from_namestring- Updated 'from' name.
list_idstring- Updated audience ID.
preview_textstring- New preview text.
reply_tostring- Updated reply-to email address.
subject_linestring- New subject line.
titlestring- New internal campaign title.
mailchimp_ecommerce_customer_upsertAdd a new customer or update an existing customer in a Mailchimp ecommerce store (idempotent upsert).WriteAdd or Update Ecommerce Customer
Add a new customer or update an existing customer in a Mailchimp ecommerce store (idempotent upsert).
- Idempotent
Inputs
customer_idstringrequired- A unique identifier for the customer, chosen by you.
email_addressstringrequired- The customer's email address.
opt_in_statusbooleanrequired- Whether the customer is opted in to marketing (true/false).
store_idstringrequired- The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.
companystring- The customer's company.
first_namestring- The customer's first name.
last_namestring- The customer's last name.
mailchimp_ecommerce_order_createAdd an order to a Mailchimp ecommerce store, to drive purchase-based automations and reporting.WriteAdd Ecommerce Order
Add an order to a Mailchimp ecommerce store, to drive purchase-based automations and reporting.
Inputs
currency_codestringrequired- Three-letter ISO 4217 currency code for the order.
customer_jsonstringrequired- JSON object describing the customer who placed the order, e.g. '{"id":"cust-1","email_address":"jane@example.com"}'.
lines_jsonstringrequired- JSON array of the order's line items, e.g. '[{"id":"line-1","product_id":"prod-001","product_variant_id":"v1","quantity":2,"price":19.99}]'.
order_idstringrequired- A unique identifier for the order, chosen by you.
order_totalnumberrequired- The total amount for the order.
store_idstringrequired- The ID of the store to add the order to. Get it from `mailchimp_ecommerce_stores_list`.
campaign_idstring- The ID of the Mailchimp campaign that drove this order, if any.
financial_statusstring- The order's financial status, e.g. 'paid', 'pending', 'refunded'.
fulfillment_statusstring- The order's fulfillment status, e.g. 'partial', 'fulfilled'.
order_urlstring- The URL for the order.
mailchimp_ecommerce_product_createAdd a product to a Mailchimp ecommerce store.WriteAdd Ecommerce Product
Add a product to a Mailchimp ecommerce store. At least one variant is required.
Inputs
product_idstringrequired- A unique identifier for the product, chosen by you.
store_idstringrequired- The ID of the store to add the product to. Get it from `mailchimp_ecommerce_stores_list`.
titlestringrequired- The title of the product.
variants_jsonstringrequired- JSON array of variant objects. At least one variant is required, e.g. '[{"id":"v1","title":"Small","price":19.99}]'.
descriptionstring- The description of the product.
image_urlstring- The primary image URL for the product.
urlstring- The URL for the product page.
vendorstring- The vendor for the product.
mailchimp_ecommerce_store_createAdd a new ecommerce store to the Mailchimp account, linked to an audience.WriteAdd Ecommerce Store
Add a new ecommerce store to the Mailchimp account, linked to an audience.
Inputs
currency_codestringrequired- Three-letter ISO 4217 currency code the store accepts, e.g. USD.
list_idstringrequired- The ID of the audience associated with the store. Get it from `mailchimp_lists_list`.
namestringrequired- The name of the store.
store_idstringrequired- A unique identifier for the store, chosen by you (e.g. your platform's store ID).
domainstring- The store's domain.
email_addressstring- The email address for the store.
platformstring- The ecommerce platform of the store, e.g. Shopify, WooCommerce, Magento.
mailchimp_ecommerce_store_updateUpdate an existing ecommerce store's details.WriteUpdate Ecommerce Store
Update an existing ecommerce store's details.
- Idempotent
Inputs
store_idstringrequired- The ID of the store to update.
currency_codestring- New three-letter ISO 4217 currency code the store accepts.
domainstring- The new store domain.
email_addressstring- The new email address for the store.
namestring- The new name of the store.
mailchimp_landing_page_createCreate a new unpublished, contentless Mailchimp landing page.WriteCreate Landing Page
Create a new unpublished, contentless Mailchimp landing page. Connect it to an audience via list_id, or set use_default_list to use the account's default audience instead. Add content and publish it separately afterward.
Inputs
namestringrequired- Internal name for the landing page, shown in the Mailchimp UI.
list_idstring- The ID of the audience to connect this landing page to. Required unless use_default_list is true.
titlestring- Public-facing title of the landing page, shown to visitors.
use_default_listboolean- Create the landing page using the account's default audience instead of specifying list_id.
mailchimp_list_createCreate a new Mailchimp audience (list).WriteCreate Audience
Create a new Mailchimp audience (list). Requires a contact address and campaign defaults.
Inputs
contact_addressstringrequired- The street address for the contact address.
contact_citystringrequired- The city for the contact address.
contact_companystringrequired- The company name for the contact address (required by Mailchimp).
contact_countrystringrequired- The two-letter ISO country code for the contact address (e.g. `US`).
contact_statestringrequired- The state or province for the contact address.
contact_zipstringrequired- The postal/ZIP code for the contact address.
email_type_optionbooleanrequired- Whether to allow subscribers to choose email format (HTML or plain text).
from_emailstringrequired- The default sender email address for campaigns.
from_namestringrequired- The default display name for the campaign sender.
namestringrequired- The name of the audience.
permission_reminderstringrequired- A reminder for subscribers about why they were added.
languagestring- The default language for the audience (e.g. `en`, `fr`).
subjectstring- The default subject line for campaigns.
mailchimp_list_interest_category_createAdd a new interest category (group) to a Mailchimp audience for subscriber segmentation.WriteCreate Interest Category
Add a new interest category (group) to a Mailchimp audience for subscriber segmentation.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
titlestringrequired- The name of the interest category, shown on signup forms.
typestringrequired- How the interests in this category appear on signup forms: checkboxes, dropdown, radio, or hidden.
display_orderinteger- The display order of this category relative to others. Lower numbers display first.
mailchimp_list_member_addAdd a new member to a Mailchimp audience.WriteAdd Member
Add a new member to a Mailchimp audience.
Inputs
email_addressstringrequired- The member's email address.
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
statusstringrequired- Subscription status: `subscribed`, `unsubscribed`, `cleaned`, `pending`.
first_namestring- Member's first name (stored in FNAME merge field).
last_namestring- Member's last name (stored in LNAME merge field).
tagsstring- JSON array of tag names to apply to the member.
mailchimp_list_member_archiveArchive a member in a Mailchimp audience (soft delete).WriteArchive Member
Archive a member in a Mailchimp audience (soft delete). The member's data is preserved but they will not receive campaigns. The `subscriber_hash` is the MD5 hash of the lowercase email.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
subscriber_hashstringrequired- MD5 hash of the member's lowercase email address.
mailchimp_list_member_updateUpdate an existing member's data in a Mailchimp audience.WriteUpdate Member
Update an existing member's data in a Mailchimp audience. The `subscriber_hash` is the MD5 hash of the member's lowercase email address.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
subscriber_hashstringrequired- MD5 hash of the member's lowercase email address.
email_addressstring- Updated email address.
first_namestring- Updated first name (FNAME merge field).
last_namestring- Updated last name (LNAME merge field).
statusstring- New subscription status: `subscribed`, `unsubscribed`, `cleaned`, `pending`.
mailchimp_list_member_upsertAdd a new member or update an existing member in a Mailchimp audience (idempotent).WriteAdd or Update Member
Add a new member or update an existing member in a Mailchimp audience (idempotent). The `subscriber_hash` is the MD5 hash of the lowercase email address.
- Idempotent
Inputs
email_addressstringrequired- The member's email address.
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
status_if_newstringrequired- Status for new members: `subscribed`, `unsubscribed`, `cleaned`, `pending`.
subscriber_hashstringrequired- MD5 hash of the member's lowercase email address.
first_namestring- First name (FNAME merge field).
last_namestring- Last name (LNAME merge field).
statusstring- Status for existing members.
mailchimp_list_merge_field_createAdd a new merge field (custom audience field, e.g.WriteCreate Merge Field
Add a new merge field (custom audience field, e.g. PHONE, BIRTHDAY) to a Mailchimp audience.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
namestringrequired- The name of the merge field, shown in the Mailchimp UI.
typestringrequired- The field type: text, number, address, phone, date, url, imageurl, radio, dropdown, birthday, zip.
default_valuestring- The default value for the merge field if left blank.
help_textstring- Extra text shown to help the subscriber fill out the field on a signup form.
publicboolean- Whether the merge field is displayed on the signup form.
requiredboolean- Whether the merge field is required to import a contact.
tagstring- The merge tag used in campaigns, e.g. PHONE. Auto-generated if omitted.
mailchimp_list_updateUpdate an existing Mailchimp audience's name or settings.WriteUpdate Audience
Update an existing Mailchimp audience's name or settings.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
from_emailstring- Updated sender email address.
from_namestring- Updated sender display name.
namestring- New name for the audience.
permission_reminderstring- Updated permission reminder.
mailchimp_list_webhook_createCreate a webhook on a Mailchimp audience for subscribe/unsubscribe/profile-update/cleaned/email-change/campaign-sent events.WriteCreate Audience Webhook
Create a webhook on a Mailchimp audience for subscribe/unsubscribe/profile-update/cleaned/email-change/campaign-sent events.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
urlstringrequired- The URL that Mailchimp will send webhook events to.
event_campaignboolean- Trigger this webhook when a campaign is sent or cancelled.
event_cleanedboolean- Trigger this webhook when a member is cleaned (removed for bouncing).
event_profileboolean- Trigger this webhook when a member updates their profile.
event_subscribeboolean- Trigger this webhook when a new subscriber is added.
event_unsubscribeboolean- Trigger this webhook when a member unsubscribes.
event_upemailboolean- Trigger this webhook when a member changes their email address.
source_adminboolean- Fire the webhook for changes made by an admin in the Mailchimp dashboard.
source_apiboolean- Fire the webhook for changes made via the API.
source_userboolean- Fire the webhook for changes made by the subscriber themselves.
mailchimp_segment_createCreate a new static or saved segment in a Mailchimp audience.WriteCreate Segment
Create a new static or saved segment in a Mailchimp audience.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
namestringrequired- Name of the segment.
optionsstring- JSON object defining conditions for a saved segment. See Mailchimp docs for condition format.
static_segmentstring- JSON array of email addresses to add to a static segment.
mailchimp_segment_updateUpdate the name or conditions of a segment in a Mailchimp audience.WriteUpdate Segment
Update the name or conditions of a segment in a Mailchimp audience.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
segment_idstringrequired- The ID of the segment. Get it from `mailchimp_segments_list`.
namestring- New name for the segment.
static_segmentstring- Updated JSON array of emails for a static segment.
mailchimp_template_createCreate a new user-defined HTML template in Mailchimp.WriteCreate Template
Create a new user-defined HTML template in Mailchimp.
Inputs
htmlstringrequired- The HTML content for the template.
namestringrequired- A name for the template.
folder_idstring- ID of a folder to place the template in.
mailchimp_template_updateUpdate a user-defined template's name or HTML content in Mailchimp.WriteUpdate Template
Update a user-defined template's name or HTML content in Mailchimp.
Inputs
template_idstringrequired- The ID of the template. Get it from `mailchimp_templates_list`.
htmlstring- New HTML content for the template.
namestring- New name for the template.
mailchimp_automation_archiveArchive a Mailchimp classic automation.DestructiveArchive Automation
Archive a Mailchimp classic automation. Archived automations cannot be edited or resumed via the API.
Inputs
workflow_idstringrequired- The ID of the automation to archive. Get it from `mailchimp_automations_list`.
mailchimp_campaign_deleteRemove a campaign from a Mailchimp account.DestructiveDelete Campaign
Remove a campaign from a Mailchimp account. Only campaigns in draft or removed status can be deleted.
Inputs
campaign_idstringrequired- The ID of the campaign to delete. Get it from `mailchimp_campaigns_list`.
mailchimp_ecommerce_store_deletePermanently delete an ecommerce store, including all of its products, orders, and customers.DestructiveDelete Ecommerce Store
Permanently delete an ecommerce store, including all of its products, orders, and customers. This action cannot be undone.
- Idempotent
Inputs
store_idstringrequired- The ID of the store to delete.
mailchimp_list_deletePermanently delete a Mailchimp audience and all its members.DestructiveDelete Audience
Permanently delete a Mailchimp audience and all its members.
Inputs
list_idstringrequired- The ID of the audience to delete. Get it from `mailchimp_lists_list`.
mailchimp_list_member_delete_permanentPermanently delete a member from a Mailchimp audience.DestructivePermanently Delete Member
Permanently delete a member from a Mailchimp audience. This removes all of their data and cannot be undone. Use `mailchimp_list_member_archive` for a reversible soft delete.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
subscriber_hashstringrequired- MD5 hash of the member's lowercase email address.
mailchimp_segment_deleteDelete a segment from a Mailchimp audience.DestructiveDelete Segment
Delete a segment from a Mailchimp audience.
Inputs
list_idstringrequired- The ID of the audience. Get it from `mailchimp_lists_list`.
segment_idstringrequired- The ID of the segment to delete. Get it from `mailchimp_segments_list`.
mailchimp_template_deletePermanently delete a user-defined template from Mailchimp.DestructiveDelete Template
Permanently delete a user-defined template from Mailchimp.
Inputs
template_idstringrequired- The ID of the template to delete. Get it from `mailchimp_templates_list`.
No tools match.
Workflows
Proxy API call
const result = await actions.request({ connectionName: 'mailchimp', identifier: 'user_123', path: '/ping', method: 'GET',});console.log(result);result = actions.request( connection_name='mailchimp', identifier='user_123', path="/ping", method="GET")print(result)Add a subscriber
const member = await actions.executeTool({ connector: 'mailchimp', identifier: 'user_123', toolName: 'mailchimp_list_member_add', toolInput: { list_id: 'abc123def', email_address: 'jane.smith@example.com', status: 'subscribed', first_name: 'Jane', last_name: 'Smith', },});console.log('Added member:', member.id);member = actions.execute_tool( connection_name='mailchimp', identifier='user_123', tool_name="mailchimp_list_member_add", tool_input={ "list_id": "abc123def", "email_address": "jane.smith@example.com", "status": "subscribed", "first_name": "Jane", "last_name": "Smith", },)print("Added member:", member["id"])Create and send a campaign
const campaign = await actions.executeTool({ connector: 'mailchimp', identifier: 'user_123', toolName: 'mailchimp_campaign_create', toolInput: { type: 'regular', list_id: 'abc123def', subject_line: 'Your April newsletter', from_name: 'Acme Corp', reply_to: 'hello@acme.com', },});
await actions.executeTool({ connector: 'mailchimp', identifier: 'user_123', toolName: 'mailchimp_campaign_content_set', toolInput: { campaign_id: campaign.id, html: '<h1>Hello!</h1><p>Here is your monthly update.</p>', },});
await actions.executeTool({ connector: 'mailchimp', identifier: 'user_123', toolName: 'mailchimp_campaign_send', toolInput: { campaign_id: campaign.id },});console.log('Campaign sent:', campaign.id);campaign = actions.execute_tool( connection_name='mailchimp', identifier='user_123', tool_name="mailchimp_campaign_create", tool_input={ "type": "regular", "list_id": "abc123def", "subject_line": "Your April newsletter", "from_name": "Acme Corp", "reply_to": "hello@acme.com", },)
actions.execute_tool( connection_name='mailchimp', identifier='user_123', tool_name="mailchimp_campaign_content_set", tool_input={ "campaign_id": campaign["id"], "html": "<h1>Hello!</h1><p>Here is your monthly update.</p>", },)
actions.execute_tool( connection_name='mailchimp', identifier='user_123', tool_name="mailchimp_campaign_send", tool_input={"campaign_id": campaign["id"]},)print("Campaign sent:", campaign["id"])Get campaign report
const report = await actions.executeTool({ connector: 'mailchimp', identifier: 'user_123', toolName: 'mailchimp_report_get', toolInput: { campaign_id: 'abc123' },});console.log(`Opens: ${report.opens.open_rate}, Clicks: ${report.clicks.click_rate}`);report = actions.execute_tool( connection_name='mailchimp', identifier='user_123', tool_name="mailchimp_report_get", tool_input={"campaign_id": "abc123"},)print(f"Opens: {report['opens']['open_rate']}, Clicks: {report['clicks']['click_rate']}")