> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to Mailchimp

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.

**Authentication:** OAuth 2.0
**Categories:** Marketing, Automation, Analytics
**Tools:** 73: 36 read, 30 write, 7 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Scalekit connector
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=MAILCHIMP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Mailchimp connection

   In **AgentKit > Connections**, create a Mailchimp connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/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.

   1. ## Set up auth redirects

      - In [Scalekit dashboard](https://app.scalekit.com), 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`.

      > Image: Mailchimp connector shown in Scalekit's Create Connection search

      - Log in to your [Mailchimp account](https://mailchimp.com) and go to **Account & Billing** > **Extras** > **API keys** > **OAuth apps**.

      > Image: Screenshot

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

      > Image: Screenshot

   2. ## Get client credentials

      - In your Mailchimp OAuth app, copy the **Client ID** and **Client Secret**.

   3. ## Add credentials in Scalekit

      - In [Scalekit dashboard](https://app.scalekit.com), open the Mailchimp connection you created and enter:
        - **Client ID**
        - **Client Secret**

      > Image: Screenshot

      > note: No scopes required
      >
      > Mailchimp OAuth does not use scopes — all authenticated users get access to all API endpoints their plan supports.

      - Click **Save**.

   4. ## 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.

      > Image: Screenshot

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   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.actions

   const connector = 'mailchimp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { 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 call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'mailchimp_account_info',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_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.actions

   connection_name = "mailchimp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_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 call
   result = actions.execute_tool(
       tool_input={},
       tool_name="mailchimp_account_info",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'mailchimp_account_info',
  toolInput: {},
  connector: 'mailchimp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="mailchimp_account_info",
    tool_input={},
    connection_name="mailchimp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `mailchimp_account_info`

Get Account Info · Read-only

Retrieve details about the connected Mailchimp account, including username, contact info, and plan details.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fields` (`string`, optional): Comma-separated list of fields to return.

Example input: `{}`

### `mailchimp_automation_emails_list`

List Automation Emails · Read-only

Get a list of the individual emails (workflow emails) within a Mailchimp classic automation.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `workflow_id` (`string`, required): The ID of the automation. Get it from `mailchimp_automations_list`.

Example input: `{"workflow_id":"<workflow_id>"}`

### `mailchimp_automation_get`

Get Automation · Read-only

Retrieve details about a specific classic automation in Mailchimp.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `workflow_id` (`string`, required): The ID of the automation. Get it from `mailchimp_automations_list`.

Example input: `{"workflow_id":"<workflow_id>"}`

### `mailchimp_automations_list`

List Automations · Read-only

Return a summary of all classic automations (Email Series) in the Mailchimp account.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `count` (`integer`, optional): Number of records per page.
- `fields` (`string`, optional): Comma-separated fields to return.
- `offset` (`integer`, optional): Number of records to skip.
- `status` (`string`, optional): Filter by automation status: `save`, `paused`, `sending`.

Example input: `{}`

### `mailchimp_batch_status_get`

Get Batch Status · Read-only

Check the status of a Mailchimp batch operation. Use this to poll the result of a previously submitted batch request.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `batch_id` (`string`, required): The ID of the batch operation. Returned when a batch is created via the Mailchimp API.

Example input: `{"batch_id":"<batch_id>"}`

### `mailchimp_campaign_content_get`

Get Campaign Content · Read-only

Retrieve the content (HTML, plain text, or template) of a Mailchimp campaign.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `fields` (`string`, optional): Comma-separated fields to return.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_campaign_get`

Get Campaign · Read-only

Retrieve details about a specific Mailchimp campaign.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `fields` (`string`, optional): Comma-separated fields to return.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_campaigns_list`

List Campaigns · Read-only

Return a list of all campaigns in the Mailchimp account, with optional filters.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `count` (`integer`, optional): Number of records per page.
- `fields` (`string`, optional): Comma-separated fields to return.
- `list_id` (`string`, optional): Filter by audience ID.
- `offset` (`integer`, optional): Number of records to skip.
- `sort_dir` (`string`, optional): Sort direction: `ASC` or `DESC`.
- `sort_field` (`string`, optional): Sort field: `create_time` or `send_time`.
- `status` (`string`, optional): Filter by status: `save`, `paused`, `schedule`, `sending`, `sent`.
- `type` (`string`, optional): Filter by campaign type: `regular`, `plaintext`, `absplit`, `rss`, `variate`.

Example input: `{}`

### `mailchimp_ecommerce_orders_list`

List Ecommerce Orders · Read-only

Get a list of orders for a Mailchimp ecommerce store.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `store_id` (`string`, required): The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.
- `count` (`integer`, optional): Number of records to return per page (max 1000).
- `customer_id` (`string`, optional): Filter orders by customer ID.
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{"store_id":"<store_id>"}`

### `mailchimp_ecommerce_product_get`

Get Ecommerce Product · Read-only

Get information about a specific product in a Mailchimp ecommerce store.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `product_id` (`string`, required): The ID of the product to retrieve.
- `store_id` (`string`, required): The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.

Example input: `{"product_id":"<product_id>","store_id":"<store_id>"}`

### `mailchimp_ecommerce_products_list`

List Ecommerce Products · Read-only

Get a list of products for a Mailchimp ecommerce store.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `store_id` (`string`, required): The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.
- `count` (`integer`, optional): Number of records to return per page (max 1000).
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{"store_id":"<store_id>"}`

### `mailchimp_ecommerce_store_get`

Get Ecommerce Store · Read-only

Get information about a specific ecommerce store.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `store_id` (`string`, required): The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.

Example input: `{"store_id":"<store_id>"}`

### `mailchimp_ecommerce_stores_list`

List Ecommerce Stores · Read-only

Get information about all ecommerce stores connected to the Mailchimp account.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `count` (`integer`, optional): Number of records to return per page (max 1000).
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{}`

### `mailchimp_landing_pages_list`

List Landing Pages · Read-only

List landing pages in the Mailchimp account.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `count` (`integer`, optional): Number of records to return per page (max 1000).
- `fields` (`string`, optional): Comma-separated fields to return.
- `offset` (`integer`, optional): Number of records to skip.
- `sort_dir` (`string`, optional): Sort direction: `ASC` or `DESC`.
- `sort_field` (`string`, optional): Field to sort results by: `created_at` or `updated_at`.

Example input: `{}`

### `mailchimp_list_get`

Get Audience · Read-only

Retrieve information about a specific Mailchimp audience (list) by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `fields` (`string`, optional): Comma-separated fields to return.

Example input: `{"list_id":"<list_id>"}`

### `mailchimp_list_interest_categories_list`

List Interest Categories · Read-only

Get a list of interest categories (groups) for a Mailchimp audience, used for subscriber segmentation and signup form preferences.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `count` (`integer`, optional): Number of records to return per page (max 1000).
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{"list_id":"<list_id>"}`

### `mailchimp_list_member_get`

Get Member · Read-only

Retrieve information about a specific member in a Mailchimp audience. The `subscriber_hash` is the MD5 hash of the member's lowercase email address.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `subscriber_hash` (`string`, required): MD5 hash of the member's lowercase email address.
- `fields` (`string`, optional): Comma-separated fields to return.

Example input: `{"list_id":"<list_id>","subscriber_hash":"<subscriber_hash>"}`

### `mailchimp_list_member_tags_get`

Get Member Tags · Read-only

Retrieve the tags assigned to a specific member in a Mailchimp audience.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `subscriber_hash` (`string`, required): MD5 hash of the member's lowercase email address.

Example input: `{"list_id":"<list_id>","subscriber_hash":"<subscriber_hash>"}`

### `mailchimp_list_members_list`

List Members · Read-only

Return a list of members in a Mailchimp audience, with optional filters by status.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `count` (`integer`, optional): Number of records per page (max 1000).
- `fields` (`string`, optional): Comma-separated fields to return.
- `offset` (`integer`, optional): Number of records to skip.
- `sort_dir` (`string`, optional): Sort direction: `ASC` or `DESC`.
- `sort_field` (`string`, optional): Field to sort by: `last_changed` or `timestamp_opt`.
- `status` (`string`, optional): Filter by member status: `subscribed`, `unsubscribed`, `cleaned`, `pending`, `transactional`, `archived`.

Example input: `{"list_id":"<list_id>"}`

### `mailchimp_list_merge_fields_list`

List Merge Fields · Read-only

Get a list of merge fields (audience fields, e.g. FNAME, PHONE) for a Mailchimp audience.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `count` (`integer`, optional): Number of records to return per page (max 1000).
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{"list_id":"<list_id>"}`

### `mailchimp_list_tag_search`

Search Tags · Read-only

Search for tags used in a Mailchimp audience by name prefix. Returns all tags whose name starts with the given search string.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `name` (`string`, optional): The search prefix used to filter tags by name.

Example input: `{"list_id":"<list_id>"}`

### `mailchimp_list_webhooks_list`

List Audience Webhooks · Read-only

List webhooks configured on a Mailchimp audience (list).

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `fields` (`string`, optional): Comma-separated fields to return.

Example input: `{"list_id":"<list_id>"}`

### `mailchimp_lists_list`

List Audiences · Read-only

Return a list of all Mailchimp audiences (lists) in the account.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `count` (`integer`, optional): Number of records to return per page (max 1000).
- `fields` (`string`, optional): Comma-separated fields to return.
- `offset` (`integer`, optional): Number of records to skip.
- `sort_dir` (`string`, optional): Sort direction: `ASC` or `DESC`.
- `sort_field` (`string`, optional): Field to sort results by: `date_created` or `campaign_last_sent`.

Example input: `{}`

### `mailchimp_member_search`

Search Members · Read-only

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.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `query` (`string`, required): Search term to match against member email addresses and names.
- `exclude_fields` (`string`, optional): Comma-separated fields to exclude from the response.
- `fields` (`string`, optional): Comma-separated fields to return.
- `list_id` (`string`, optional): Restrict the search to a single audience. Omit to search across all audiences.

Example input: `{"query":"<query>"}`

### `mailchimp_ping`

Ping · Read-only

Check the health of the Mailchimp API. Returns a health status string.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `mailchimp_report_click_details`

Get Click Details · Read-only

Return click details and statistics for links in a Mailchimp campaign.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `count` (`integer`, optional): Number of records per page.
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_report_email_activity`

Get Email Activity · Read-only

Return per-subscriber email activity for a specific Mailchimp campaign, including opens, clicks, and bounces.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `count` (`integer`, optional): Number of records per page.
- `fields` (`string`, optional): Comma-separated fields to return.
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_report_get`

Get Report · Read-only

Retrieve the report summary for a specific Mailchimp campaign, including opens, clicks, bounces, and unsubscribes.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `fields` (`string`, optional): Comma-separated fields to return.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_report_open_details`

Get Open Details · Read-only

Return a list of members who opened a specific Mailchimp campaign.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `count` (`integer`, optional): Number of records per page.
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_report_unsubscribes`

Get Unsubscribes · Read-only

Return a list of members who unsubscribed from a specific Mailchimp campaign.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `count` (`integer`, optional): Number of records per page.
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_reports_list`

List Reports · Read-only

Return a list of campaign reports in the Mailchimp account.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `count` (`integer`, optional): Number of records per page.
- `fields` (`string`, optional): Comma-separated fields to return.
- `offset` (`integer`, optional): Number of records to skip.
- `type` (`string`, optional): Filter by campaign type: `regular`, `absplit`, `variate`, `rss`, `plaintext`.

Example input: `{}`

### `mailchimp_segment_get`

Get Segment · Read-only

Retrieve details about a specific segment in a Mailchimp audience.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `segment_id` (`string`, required): The ID of the segment. Get it from `mailchimp_segments_list`.

Example input: `{"list_id":"<list_id>","segment_id":"<segment_id>"}`

### `mailchimp_segment_members_list`

List Segment Members · Read-only

Return a list of members in a specific segment of a Mailchimp audience.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `segment_id` (`string`, required): The ID of the segment. Get it from `mailchimp_segments_list`.
- `count` (`integer`, optional): Number of records per page.
- `offset` (`integer`, optional): Number of records to skip.

Example input: `{"list_id":"<list_id>","segment_id":"<segment_id>"}`

### `mailchimp_segments_list`

List Segments · Read-only

Return a list of segments for a specific Mailchimp audience.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `count` (`integer`, optional): Number of records per page.
- `fields` (`string`, optional): Comma-separated fields to return.
- `offset` (`integer`, optional): Number of records to skip.
- `type` (`string`, optional): Filter by segment type: `static` or `saved`.

Example input: `{"list_id":"<list_id>"}`

### `mailchimp_template_get`

Get Template · Read-only

Retrieve information about a specific template in the Mailchimp account.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `template_id` (`string`, required): The ID of the template. Get it from `mailchimp_templates_list`.
- `fields` (`string`, optional): Comma-separated fields to return.

Example input: `{"template_id":"<template_id>"}`

### `mailchimp_templates_list`

List Templates · Read-only

Return a list of templates in the Mailchimp account, including user-created and Mailchimp base templates.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `count` (`integer`, optional): Number of records per page.
- `fields` (`string`, optional): Comma-separated fields to return.
- `offset` (`integer`, optional): Number of records to skip.
- `sort_dir` (`string`, optional): Sort direction: `ASC` or `DESC`.
- `sort_field` (`string`, optional): Sort field: `date_created`.
- `type` (`string`, optional): Filter by template type: `user`, `base`, `gallery`.

Example input: `{}`

### `mailchimp_automation_pause`

Pause Automation · Write

Pause all emails in a Mailchimp classic automation.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `workflow_id` (`string`, required): The ID of the automation. Get it from `mailchimp_automations_list`.

Example input: `{"workflow_id":"<workflow_id>"}`

### `mailchimp_automation_start`

Start Automation · Write

Start all emails in a Mailchimp classic automation.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `workflow_id` (`string`, required): The ID of the automation. Get it from `mailchimp_automations_list`.

Example input: `{"workflow_id":"<workflow_id>"}`

### `mailchimp_batch_create`

Create Batch Operation · Write

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.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `operations_json` (`string`, required): JSON array of operation objects, each with method, path, and optionally params/body/operation_id. body must be a JSON-encoded string.

Example input: `{"operations_json":"<operations_json>"}`

### `mailchimp_campaign_content_set`

Set Campaign Content · Write

Set the HTML or plain text content of a Mailchimp campaign.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `html` (`string`, optional): Full HTML content for the campaign.
- `plain_text` (`string`, optional): Plain text version of the campaign content.
- `template_id` (`string`, optional): ID of a saved Mailchimp template to use. Get it from `mailchimp_templates_list`.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_campaign_create`

Create Campaign · Write

Create a new Mailchimp campaign (regular, plaintext, A/B split, RSS, or variate).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience to send to. Get it from `mailchimp_lists_list`.
- `type` (`string`, required): Campaign type: `regular`, `plaintext`, `absplit`, `rss`, `variate`.
- `from_name` (`string`, optional): The 'from' name for the campaign.
- `preview_text` (`string`, optional): Preview text displayed in the inbox.
- `reply_to` (`string`, optional): The reply-to email address.
- `segment_id` (`string`, optional): ID of a segment to send to (optional). Get it from `mailchimp_segments_list`.
- `subject_line` (`string`, optional): The subject line for the campaign.
- `title` (`string`, optional): The internal title for this campaign (not shown to subscribers).

Example input: `{"list_id":"<list_id>","type":"<type>"}`

### `mailchimp_campaign_schedule`

Schedule Campaign · Write

Schedule a Mailchimp campaign to be sent at a specific time.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign to schedule. Get it from `mailchimp_campaigns_list`.
- `schedule_time` (`string`, required): UTC datetime to send the campaign in ISO 8601 format (e.g., `2026-05-01T14:00:00+00:00`).

Example input: `{"campaign_id":"<campaign_id>","schedule_time":"2026-05-01T14:00:00+00:00"}`

### `mailchimp_campaign_send`

Send Campaign · Write

Send a Mailchimp campaign immediately. The campaign must be in `save` status with valid content and recipients.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign to send. Get it from `mailchimp_campaigns_list`.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_campaign_test`

Send Test Email · Write

Send a test email for a Mailchimp campaign to one or more email addresses.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `test_emails` (`string`, required): JSON array of email addresses to send the test to.
- `send_type` (`string`, optional): Email format for the test: `html` or `plaintext`.

Example input: `{"campaign_id":"<campaign_id>","test_emails":"<test_emails>"}`

### `mailchimp_campaign_unschedule`

Unschedule Campaign · Write

Cancel a scheduled Mailchimp campaign and return it to draft status.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `campaign_id` (`string`, required): The ID of the scheduled campaign. Get it from `mailchimp_campaigns_list`.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_campaign_update`

Update Campaign · Write

Update the settings of a Mailchimp campaign that has not yet been sent.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign. Get it from `mailchimp_campaigns_list`.
- `from_name` (`string`, optional): Updated 'from' name.
- `list_id` (`string`, optional): Updated audience ID.
- `preview_text` (`string`, optional): New preview text.
- `reply_to` (`string`, optional): Updated reply-to email address.
- `subject_line` (`string`, optional): New subject line.
- `title` (`string`, optional): New internal campaign title.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_ecommerce_customer_upsert`

Add or Update Ecommerce Customer · Write

Add a new customer or update an existing customer in a Mailchimp ecommerce store (idempotent upsert).

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `customer_id` (`string`, required): A unique identifier for the customer, chosen by you.
- `email_address` (`string`, required): The customer's email address.
- `opt_in_status` (`boolean`, required): Whether the customer is opted in to marketing (true/false).
- `store_id` (`string`, required): The ID of the store. Get it from `mailchimp_ecommerce_stores_list`.
- `company` (`string`, optional): The customer's company.
- `first_name` (`string`, optional): The customer's first name.
- `last_name` (`string`, optional): The customer's last name.

Example input: `{"customer_id":"<customer_id>","email_address":"<email_address>","opt_in_status":true,"store_id":"<store_id>"}`

### `mailchimp_ecommerce_order_create`

Add Ecommerce Order · Write

Add an order to a Mailchimp ecommerce store, to drive purchase-based automations and reporting.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `currency_code` (`string`, required): Three-letter ISO 4217 currency code for the order.
- `customer_json` (`string`, required): JSON object describing the customer who placed the order, e.g. '{"id":"cust-1","email_address":"jane@example.com"}'.
- `lines_json` (`string`, required): 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_id` (`string`, required): A unique identifier for the order, chosen by you.
- `order_total` (`number`, required): The total amount for the order.
- `store_id` (`string`, required): The ID of the store to add the order to. Get it from `mailchimp_ecommerce_stores_list`.
- `campaign_id` (`string`, optional): The ID of the Mailchimp campaign that drove this order, if any.
- `financial_status` (`string`, optional): The order's financial status, e.g. 'paid', 'pending', 'refunded'.
- `fulfillment_status` (`string`, optional): The order's fulfillment status, e.g. 'partial', 'fulfilled'.
- `order_url` (`string`, optional): The URL for the order.

Example input: `{"currency_code":"<currency_code>","customer_json":"{\"id\":\"cust-1\",\"email_address\":\"jane@example.com\"}","lines_json":"[{\"id\":\"line-1\",\"product_id\":\"prod-001\",\"product_variant_id\":\"v1\",\"quantity\":2,\"price\":19.99}]","order_id":"<order_id>","order_total":1,"store_id":"<store_id>"}`

### `mailchimp_ecommerce_product_create`

Add Ecommerce Product · Write

Add a product to a Mailchimp ecommerce store. At least one variant is required.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `product_id` (`string`, required): A unique identifier for the product, chosen by you.
- `store_id` (`string`, required): The ID of the store to add the product to. Get it from `mailchimp_ecommerce_stores_list`.
- `title` (`string`, required): The title of the product.
- `variants_json` (`string`, required): JSON array of variant objects. At least one variant is required, e.g. '[{"id":"v1","title":"Small","price":19.99}]'.
- `description` (`string`, optional): The description of the product.
- `image_url` (`string`, optional): The primary image URL for the product.
- `url` (`string`, optional): The URL for the product page.
- `vendor` (`string`, optional): The vendor for the product.

Example input: `{"product_id":"<product_id>","store_id":"<store_id>","title":"<title>","variants_json":"[{\"id\":\"v1\",\"title\":\"Small\",\"price\":19.99}]"}`

### `mailchimp_ecommerce_store_create`

Add Ecommerce Store · Write

Add a new ecommerce store to the Mailchimp account, linked to an audience.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `currency_code` (`string`, required): Three-letter ISO 4217 currency code the store accepts, e.g. USD.
- `list_id` (`string`, required): The ID of the audience associated with the store. Get it from `mailchimp_lists_list`.
- `name` (`string`, required): The name of the store.
- `store_id` (`string`, required): A unique identifier for the store, chosen by you (e.g. your platform's store ID).
- `domain` (`string`, optional): The store's domain.
- `email_address` (`string`, optional): The email address for the store.
- `platform` (`string`, optional): The ecommerce platform of the store, e.g. Shopify, WooCommerce, Magento.

Example input: `{"currency_code":"<currency_code>","list_id":"<list_id>","name":"<name>","store_id":"<store_id>"}`

### `mailchimp_ecommerce_store_update`

Update Ecommerce Store · Write

Update an existing ecommerce store's details.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `store_id` (`string`, required): The ID of the store to update.
- `currency_code` (`string`, optional): New three-letter ISO 4217 currency code the store accepts.
- `domain` (`string`, optional): The new store domain.
- `email_address` (`string`, optional): The new email address for the store.
- `name` (`string`, optional): The new name of the store.

Example input: `{"store_id":"<store_id>"}`

### `mailchimp_landing_page_create`

Create Landing Page · Write

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.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): Internal name for the landing page, shown in the Mailchimp UI.
- `list_id` (`string`, optional): The ID of the audience to connect this landing page to. Required unless use_default_list is true.
- `title` (`string`, optional): Public-facing title of the landing page, shown to visitors.
- `use_default_list` (`boolean`, optional): Create the landing page using the account's default audience instead of specifying list_id.

Example input: `{"name":"<name>"}`

### `mailchimp_list_create`

Create Audience · Write

Create a new Mailchimp audience (list). Requires a contact address and campaign defaults.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `contact_address` (`string`, required): The street address for the contact address.
- `contact_city` (`string`, required): The city for the contact address.
- `contact_company` (`string`, required): The company name for the contact address (required by Mailchimp).
- `contact_country` (`string`, required): The two-letter ISO country code for the contact address (e.g. `US`).
- `contact_state` (`string`, required): The state or province for the contact address.
- `contact_zip` (`string`, required): The postal/ZIP code for the contact address.
- `email_type_option` (`boolean`, required): Whether to allow subscribers to choose email format (HTML or plain text).
- `from_email` (`string`, required): The default sender email address for campaigns.
- `from_name` (`string`, required): The default display name for the campaign sender.
- `name` (`string`, required): The name of the audience.
- `permission_reminder` (`string`, required): A reminder for subscribers about why they were added.
- `language` (`string`, optional): The default language for the audience (e.g. `en`, `fr`).
- `subject` (`string`, optional): The default subject line for campaigns.

Example input: `{"contact_address":"<contact_address>","contact_city":"<contact_city>","contact_company":"<contact_company>","contact_country":"US","contact_state":"<contact_state>","contact_zip":"<contact_zip>","email_type_option":true,"from_email":"<from_email>","from_name":"<from_name>","name":"<name>","permission_reminder":"<permission_reminder>"}`

### `mailchimp_list_interest_category_create`

Create Interest Category · Write

Add a new interest category (group) to a Mailchimp audience for subscriber segmentation.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `title` (`string`, required): The name of the interest category, shown on signup forms.
- `type` (`string`, required): How the interests in this category appear on signup forms: checkboxes, dropdown, radio, or hidden.
- `display_order` (`integer`, optional): The display order of this category relative to others. Lower numbers display first.

Example input: `{"list_id":"<list_id>","title":"<title>","type":"<type>"}`

### `mailchimp_list_member_add`

Add Member · Write

Add a new member to a Mailchimp audience.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `email_address` (`string`, required): The member's email address.
- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `status` (`string`, required): Subscription status: `subscribed`, `unsubscribed`, `cleaned`, `pending`.
- `first_name` (`string`, optional): Member's first name (stored in FNAME merge field).
- `last_name` (`string`, optional): Member's last name (stored in LNAME merge field).
- `tags` (`string`, optional): JSON array of tag names to apply to the member.

Example input: `{"email_address":"<email_address>","list_id":"<list_id>","status":"<status>"}`

### `mailchimp_list_member_archive`

Archive Member · Write

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.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `subscriber_hash` (`string`, required): MD5 hash of the member's lowercase email address.

Example input: `{"list_id":"<list_id>","subscriber_hash":"<subscriber_hash>"}`

### `mailchimp_list_member_tags_update`

Update Member Tags · Write

Add or remove tags for a specific member in a Mailchimp audience. Provide a JSON array of tag objects with `name` and `status` (`active` to add, `inactive` to remove).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `subscriber_hash` (`string`, required): MD5 hash of the member's lowercase email address.
- `tags` (`string`, required): JSON array of tag objects. Each has `name` (string) and `status` (`active` to add, `inactive` to remove).

Example input: `{"list_id":"<list_id>","subscriber_hash":"<subscriber_hash>","tags":"<tags>"}`

### `mailchimp_list_member_update`

Update Member · Write

Update an existing member's data in a Mailchimp audience. The `subscriber_hash` is the MD5 hash of the member's lowercase email address.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `subscriber_hash` (`string`, required): MD5 hash of the member's lowercase email address.
- `email_address` (`string`, optional): Updated email address.
- `first_name` (`string`, optional): Updated first name (FNAME merge field).
- `last_name` (`string`, optional): Updated last name (LNAME merge field).
- `status` (`string`, optional): New subscription status: `subscribed`, `unsubscribed`, `cleaned`, `pending`.

Example input: `{"list_id":"<list_id>","subscriber_hash":"<subscriber_hash>"}`

### `mailchimp_list_member_upsert`

Add or Update Member · Write

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.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `email_address` (`string`, required): The member's email address.
- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `status_if_new` (`string`, required): Status for new members: `subscribed`, `unsubscribed`, `cleaned`, `pending`.
- `subscriber_hash` (`string`, required): MD5 hash of the member's lowercase email address.
- `first_name` (`string`, optional): First name (FNAME merge field).
- `last_name` (`string`, optional): Last name (LNAME merge field).
- `status` (`string`, optional): Status for existing members.

Example input: `{"email_address":"<email_address>","list_id":"<list_id>","status_if_new":"<status_if_new>","subscriber_hash":"<subscriber_hash>"}`

### `mailchimp_list_merge_field_create`

Create Merge Field · Write

Add a new merge field (custom audience field, e.g. PHONE, BIRTHDAY) to a Mailchimp audience.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `name` (`string`, required): The name of the merge field, shown in the Mailchimp UI.
- `type` (`string`, required): The field type: text, number, address, phone, date, url, imageurl, radio, dropdown, birthday, zip.
- `default_value` (`string`, optional): The default value for the merge field if left blank.
- `help_text` (`string`, optional): Extra text shown to help the subscriber fill out the field on a signup form.
- `public` (`boolean`, optional): Whether the merge field is displayed on the signup form.
- `required` (`boolean`, optional): Whether the merge field is required to import a contact.
- `tag` (`string`, optional): The merge tag used in campaigns, e.g. PHONE. Auto-generated if omitted.

Example input: `{"list_id":"<list_id>","name":"<name>","type":"<type>"}`

### `mailchimp_list_update`

Update Audience · Write

Update an existing Mailchimp audience's name or settings.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `from_email` (`string`, optional): Updated sender email address.
- `from_name` (`string`, optional): Updated sender display name.
- `name` (`string`, optional): New name for the audience.
- `permission_reminder` (`string`, optional): Updated permission reminder.

Example input: `{"list_id":"<list_id>"}`

### `mailchimp_list_webhook_create`

Create Audience Webhook · Write

Create a webhook on a Mailchimp audience for subscribe/unsubscribe/profile-update/cleaned/email-change/campaign-sent events.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `url` (`string`, required): The URL that Mailchimp will send webhook events to.
- `event_campaign` (`boolean`, optional): Trigger this webhook when a campaign is sent or cancelled.
- `event_cleaned` (`boolean`, optional): Trigger this webhook when a member is cleaned (removed for bouncing).
- `event_profile` (`boolean`, optional): Trigger this webhook when a member updates their profile.
- `event_subscribe` (`boolean`, optional): Trigger this webhook when a new subscriber is added.
- `event_unsubscribe` (`boolean`, optional): Trigger this webhook when a member unsubscribes.
- `event_upemail` (`boolean`, optional): Trigger this webhook when a member changes their email address.
- `source_admin` (`boolean`, optional): Fire the webhook for changes made by an admin in the Mailchimp dashboard.
- `source_api` (`boolean`, optional): Fire the webhook for changes made via the API.
- `source_user` (`boolean`, optional): Fire the webhook for changes made by the subscriber themselves.

Example input: `{"list_id":"<list_id>","url":"<url>"}`

### `mailchimp_segment_create`

Create Segment · Write

Create a new static or saved segment in a Mailchimp audience.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `name` (`string`, required): Name of the segment.
- `options` (`string`, optional): JSON object defining conditions for a saved segment. See Mailchimp docs for condition format.
- `static_segment` (`string`, optional): JSON array of email addresses to add to a static segment.

Example input: `{"list_id":"<list_id>","name":"<name>"}`

### `mailchimp_segment_update`

Update Segment · Write

Update the name or conditions of a segment in a Mailchimp audience.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `segment_id` (`string`, required): The ID of the segment. Get it from `mailchimp_segments_list`.
- `name` (`string`, optional): New name for the segment.
- `static_segment` (`string`, optional): Updated JSON array of emails for a static segment.

Example input: `{"list_id":"<list_id>","segment_id":"<segment_id>"}`

### `mailchimp_template_create`

Create Template · Write

Create a new user-defined HTML template in Mailchimp.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `html` (`string`, required): The HTML content for the template.
- `name` (`string`, required): A name for the template.
- `folder_id` (`string`, optional): ID of a folder to place the template in.

Example input: `{"html":"<html>","name":"<name>"}`

### `mailchimp_template_update`

Update Template · Write

Update a user-defined template's name or HTML content in Mailchimp.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `template_id` (`string`, required): The ID of the template. Get it from `mailchimp_templates_list`.
- `html` (`string`, optional): New HTML content for the template.
- `name` (`string`, optional): New name for the template.

Example input: `{"template_id":"<template_id>"}`

### `mailchimp_automation_archive`

Archive Automation · Destructive

Archive a Mailchimp classic automation. Archived automations cannot be edited or resumed via the API.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `workflow_id` (`string`, required): The ID of the automation to archive. Get it from `mailchimp_automations_list`.

Example input: `{"workflow_id":"<workflow_id>"}`

### `mailchimp_campaign_delete`

Delete Campaign · Destructive

Remove a campaign from a Mailchimp account. Only campaigns in draft or removed status can be deleted.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `campaign_id` (`string`, required): The ID of the campaign to delete. Get it from `mailchimp_campaigns_list`.

Example input: `{"campaign_id":"<campaign_id>"}`

### `mailchimp_ecommerce_store_delete`

Delete Ecommerce Store · Destructive

Permanently delete an ecommerce store, including all of its products, orders, and customers. This action cannot be undone.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `store_id` (`string`, required): The ID of the store to delete.

Example input: `{"store_id":"<store_id>"}`

### `mailchimp_list_delete`

Delete Audience · Destructive

Permanently delete a Mailchimp audience and all its members.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience to delete. Get it from `mailchimp_lists_list`.

Example input: `{"list_id":"<list_id>"}`

### `mailchimp_list_member_delete_permanent`

Permanently Delete Member · Destructive

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.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `subscriber_hash` (`string`, required): MD5 hash of the member's lowercase email address.

Example input: `{"list_id":"<list_id>","subscriber_hash":"<subscriber_hash>"}`

### `mailchimp_segment_delete`

Delete Segment · Destructive

Delete a segment from a Mailchimp audience.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `list_id` (`string`, required): The ID of the audience. Get it from `mailchimp_lists_list`.
- `segment_id` (`string`, required): The ID of the segment to delete. Get it from `mailchimp_segments_list`.

Example input: `{"list_id":"<list_id>","segment_id":"<segment_id>"}`

### `mailchimp_template_delete`

Delete Template · Destructive

Permanently delete a user-defined template from Mailchimp.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `template_id` (`string`, required): The ID of the template to delete. Get it from `mailchimp_templates_list`.

Example input: `{"template_id":"<template_id>"}`

## Workflows

**Proxy API call**

  **Node.js**

  ```typescript
  const result = await actions.request({
    connectionName: 'mailchimp',
    identifier: 'user_123',
    path: '/ping',
    method: 'GET',
  });
  console.log(result);
  ```

  **Python**

  ```python
  result = actions.request(
      connection_name='mailchimp',
      identifier='user_123',
      path="/ping",
      method="GET"
  )
  print(result)
  ```

**Add a subscriber**

  **Node.js**

  ```typescript
  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);
  ```

  **Python**

  ```python
  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**

  **Node.js**

  ```typescript
  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);
  ```

  **Python**

  ```python
  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**

  **Node.js**

  ```typescript
  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}`);
  ```

  **Python**

  ```python
  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']}")
  ```

## Related

Other Marketing connectors ([all 97](/agentkit/connectors/?category=marketing)):

- [HubSpot](/agentkit/connectors/hubspot/): Scalekit connector, OAuth, 457 tools
- [Twitter / X](/agentkit/connectors/twitteroauth/): Scalekit connector, OAuth, 92 tools
- [LinkedIn](/agentkit/connectors/linkedin/): Scalekit connector, OAuth, 59 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
