{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mailchimp",
    "name": "Mailchimp",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/mailchimp",
    "canonicalUrl": "https://clawhub.ai/byungkyu/mailchimp",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/mailchimp",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mailchimp",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mailchimp"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/mailchimp",
    "agentPageUrl": "https://openagent3.xyz/skills/mailchimp/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mailchimp/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mailchimp/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Mailchimp",
        "body": "Access the Mailchimp Marketing API with managed OAuth authentication. Manage audiences, campaigns, templates, automations, reports, and subscribers for email marketing."
      },
      {
        "title": "Quick Start",
        "body": "# List all audiences\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/mailchimp/{native-api-path}\n\nReplace {native-api-path} with the actual Mailchimp API endpoint path (e.g., 3.0/lists). The gateway proxies requests to your Mailchimp data center and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Mailchimp OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=mailchimp&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'mailchimp'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"mailchimp\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Mailchimp connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Lists (Audiences)",
        "body": "Within the Mailchimp app, \"audience\" is the common term, but the API uses \"lists\" for endpoints.\n\nGet All Lists\n\nGET /mailchimp/3.0/lists\n\nQuery parameters:\n\ncount - Number of records to return (default 10, max 1000)\noffset - Number of records to skip (for pagination)\nfields - Comma-separated list of fields to include\nexclude_fields - Comma-separated list of fields to exclude\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists?count=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"lists\": [\n    {\n      \"id\": \"abc123def4\",\n      \"name\": \"Newsletter Subscribers\",\n      \"contact\": {\n        \"company\": \"Acme Corp\",\n        \"address1\": \"123 Main St\"\n      },\n      \"stats\": {\n        \"member_count\": 5000,\n        \"unsubscribe_count\": 100,\n        \"open_rate\": 0.25\n      }\n    }\n  ],\n  \"total_items\": 1\n}\n\nGet a List\n\nGET /mailchimp/3.0/lists/{list_id}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate a List\n\nPOST /mailchimp/3.0/lists\nContent-Type: application/json\n\n{\n  \"name\": \"Newsletter\",\n  \"contact\": {\n    \"company\": \"Acme Corp\",\n    \"address1\": \"123 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"zip\": \"10001\",\n    \"country\": \"US\"\n  },\n  \"permission_reminder\": \"You signed up for our newsletter\",\n  \"campaign_defaults\": {\n    \"from_name\": \"Acme Corp\",\n    \"from_email\": \"newsletter@acme.com\",\n    \"subject\": \"\",\n    \"language\": \"en\"\n  },\n  \"email_type_option\": true\n}\n\nUpdate a List\n\nPATCH /mailchimp/3.0/lists/{list_id}\n\nDelete a List\n\nDELETE /mailchimp/3.0/lists/{list_id}"
      },
      {
        "title": "List Members (Subscribers)",
        "body": "Members are contacts within an audience. The API uses MD5 hash of the lowercase email address as the subscriber identifier.\n\nGet List Members\n\nGET /mailchimp/3.0/lists/{list_id}/members\n\nQuery parameters:\n\nstatus - Filter by subscription status (subscribed, unsubscribed, cleaned, pending, transactional)\ncount - Number of records to return\noffset - Number of records to skip\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/members?status=subscribed&count=50')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"members\": [\n    {\n      \"id\": \"f4b7c8d9e0\",\n      \"email_address\": \"john@example.com\",\n      \"status\": \"subscribed\",\n      \"merge_fields\": {\n        \"FNAME\": \"John\",\n        \"LNAME\": \"Doe\"\n      },\n      \"tags\": [\n        {\"id\": 1, \"name\": \"VIP\"}\n      ]\n    }\n  ],\n  \"total_items\": 500\n}\n\nGet a Member\n\nGET /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}\n\nThe subscriber_hash is the MD5 hash of the lowercase email address.\n\nExample:\n\n# For email \"john@example.com\", subscriber_hash = md5(\"john@example.com\")\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/members/b4c9a0d1e2f3g4h5')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nAdd a Member\n\nPOST /mailchimp/3.0/lists/{list_id}/members\nContent-Type: application/json\n\n{\n  \"email_address\": \"newuser@example.com\",\n  \"status\": \"subscribed\",\n  \"merge_fields\": {\n    \"FNAME\": \"Jane\",\n    \"LNAME\": \"Smith\"\n  },\n  \"tags\": [\"Newsletter\", \"Premium\"]\n}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'email_address': 'newuser@example.com', 'status': 'subscribed', 'merge_fields': {'FNAME': 'Jane', 'LNAME': 'Smith'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/members', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate a Member\n\nPATCH /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'merge_fields': {'FNAME': 'Jane', 'LNAME': 'Doe'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/members/b4c9a0d1e2f3g4h5', data=data, method='PATCH')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nAdd or Update a Member (Upsert)\n\nPUT /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}\nContent-Type: application/json\n\n{\n  \"email_address\": \"user@example.com\",\n  \"status_if_new\": \"subscribed\",\n  \"merge_fields\": {\n    \"FNAME\": \"Jane\",\n    \"LNAME\": \"Smith\"\n  }\n}\n\nCreates a new member or updates an existing one based on the email hash. Use status_if_new to set the status when creating a new member.\n\nDelete a Member\n\nArchives a member (can be re-added later):\n\nDELETE /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}\n\nReturns 204 No Content on success.\n\nTo permanently delete (GDPR compliant):\n\nPOST /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}/actions/delete-permanent"
      },
      {
        "title": "Member Tags",
        "body": "Get Member Tags\n\nGET /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}/tags\n\nAdd or Remove Tags\n\nPOST /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}/tags\nContent-Type: application/json\n\n{\n  \"tags\": [\n    {\"name\": \"VIP\", \"status\": \"active\"},\n    {\"name\": \"Old Tag\", \"status\": \"inactive\"}\n  ]\n}\n\nReturns 204 No Content on success."
      },
      {
        "title": "Segments",
        "body": "Get Segments\n\nGET /mailchimp/3.0/lists/{list_id}/segments\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/segments')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate a Segment\n\nPOST /mailchimp/3.0/lists/{list_id}/segments\nContent-Type: application/json\n\n{\n  \"name\": \"Active Subscribers\",\n  \"options\": {\n    \"match\": \"all\",\n    \"conditions\": [\n      {\n        \"condition_type\": \"EmailActivity\",\n        \"field\": \"opened\",\n        \"op\": \"date_within\",\n        \"value\": \"30\"\n      }\n    ]\n  }\n}\n\nUpdate a Segment\n\nPATCH /mailchimp/3.0/lists/{list_id}/segments/{segment_id}\n\nGet Segment Members\n\nGET /mailchimp/3.0/lists/{list_id}/segments/{segment_id}/members\n\nDelete a Segment\n\nDELETE /mailchimp/3.0/lists/{list_id}/segments/{segment_id}\n\nReturns 204 No Content on success."
      },
      {
        "title": "Campaigns",
        "body": "Get All Campaigns\n\nGET /mailchimp/3.0/campaigns\n\nQuery parameters:\n\ntype - Campaign type (regular, plaintext, absplit, rss, variate)\nstatus - Campaign status (save, paused, schedule, sending, sent)\nlist_id - Filter by list ID\ncount - Number of records to return\noffset - Number of records to skip\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/campaigns?status=sent&count=20')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"campaigns\": [\n    {\n      \"id\": \"campaign123\",\n      \"type\": \"regular\",\n      \"status\": \"sent\",\n      \"settings\": {\n        \"subject_line\": \"Monthly Newsletter\",\n        \"from_name\": \"Acme Corp\"\n      },\n      \"send_time\": \"2025-02-01T10:00:00Z\",\n      \"report_summary\": {\n        \"opens\": 1500,\n        \"clicks\": 300,\n        \"open_rate\": 0.30,\n        \"click_rate\": 0.06\n      }\n    }\n  ],\n  \"total_items\": 50\n}\n\nGet a Campaign\n\nGET /mailchimp/3.0/campaigns/{campaign_id}\n\nCreate a Campaign\n\nPOST /mailchimp/3.0/campaigns\nContent-Type: application/json\n\n{\n  \"type\": \"regular\",\n  \"recipients\": {\n    \"list_id\": \"abc123def4\"\n  },\n  \"settings\": {\n    \"subject_line\": \"Your Monthly Update\",\n    \"from_name\": \"Acme Corp\",\n    \"reply_to\": \"hello@acme.com\"\n  }\n}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'type': 'regular', 'recipients': {'list_id': 'abc123def4'}, 'settings': {'subject_line': 'February Newsletter', 'from_name': 'Acme Corp', 'reply_to': 'newsletter@acme.com'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/campaigns', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate a Campaign\n\nPATCH /mailchimp/3.0/campaigns/{campaign_id}\n\nDelete a Campaign\n\nDELETE /mailchimp/3.0/campaigns/{campaign_id}\n\nReturns 204 No Content on success.\n\nGet Campaign Content\n\nGET /mailchimp/3.0/campaigns/{campaign_id}/content\n\nSet Campaign Content\n\nPUT /mailchimp/3.0/campaigns/{campaign_id}/content\nContent-Type: application/json\n\n{\n  \"html\": \"<html><body><h1>Hello!</h1><p>Newsletter content here.</p></body></html>\",\n  \"plain_text\": \"Hello! Newsletter content here.\"\n}\n\nOr use a template:\n\nPUT /mailchimp/3.0/campaigns/{campaign_id}/content\nContent-Type: application/json\n\n{\n  \"template\": {\n    \"id\": 12345,\n    \"sections\": {\n      \"body\": \"<p>Custom content for the template section</p>\"\n    }\n  }\n}\n\nGet Campaign Send Checklist\n\nCheck if a campaign is ready to send:\n\nGET /mailchimp/3.0/campaigns/{campaign_id}/send-checklist\n\nSend a Campaign\n\nPOST /mailchimp/3.0/campaigns/{campaign_id}/actions/send\n\nSchedule a Campaign\n\nPOST /mailchimp/3.0/campaigns/{campaign_id}/actions/schedule\nContent-Type: application/json\n\n{\n  \"schedule_time\": \"2025-03-01T10:00:00+00:00\"\n}\n\nCancel a Scheduled Campaign\n\nPOST /mailchimp/3.0/campaigns/{campaign_id}/actions/cancel-send"
      },
      {
        "title": "Templates",
        "body": "Get All Templates\n\nGET /mailchimp/3.0/templates\n\nQuery parameters:\n\ntype - Template type (user, base, gallery)\ncount - Number of records to return\noffset - Number of records to skip\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/templates?type=user')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet a Template\n\nGET /mailchimp/3.0/templates/{template_id}\n\nGet Template Default Content\n\nGET /mailchimp/3.0/templates/{template_id}/default-content\n\nCreate a Template\n\nPOST /mailchimp/3.0/templates\nContent-Type: application/json\n\n{\n  \"name\": \"Newsletter Template\",\n  \"html\": \"<html><body mc:edit=\\\"body\\\"><h1>Title</h1><p>Content here</p></body></html>\"\n}\n\nUpdate a Template\n\nPATCH /mailchimp/3.0/templates/{template_id}\n\nDelete a Template\n\nDELETE /mailchimp/3.0/templates/{template_id}\n\nReturns 204 No Content on success."
      },
      {
        "title": "Automations",
        "body": "Mailchimp's classic automations let you build email series triggered by dates, activities, or events.\n\nGet All Automations\n\nGET /mailchimp/3.0/automations\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/automations')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet an Automation\n\nGET /mailchimp/3.0/automations/{workflow_id}\n\nStart an Automation\n\nPOST /mailchimp/3.0/automations/{workflow_id}/actions/start-all-emails\n\nPause an Automation\n\nPOST /mailchimp/3.0/automations/{workflow_id}/actions/pause-all-emails\n\nGet Automation Emails\n\nGET /mailchimp/3.0/automations/{workflow_id}/emails\n\nAdd Subscriber to Automation Queue\n\nManually add a subscriber to an automation workflow:\n\nPOST /mailchimp/3.0/automations/{workflow_id}/emails/{workflow_email_id}/queue\nContent-Type: application/json\n\n{\n  \"email_address\": \"subscriber@example.com\"\n}"
      },
      {
        "title": "Reports",
        "body": "Get Campaign Reports\n\nGET /mailchimp/3.0/reports\n\nQuery parameters:\n\ncount - Number of records to return\noffset - Number of records to skip\ntype - Campaign type\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/reports?count=20')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"reports\": [\n    {\n      \"id\": \"campaign123\",\n      \"campaign_title\": \"Monthly Newsletter\",\n      \"emails_sent\": 5000,\n      \"opens\": {\n        \"opens_total\": 1500,\n        \"unique_opens\": 1200,\n        \"open_rate\": 0.24\n      },\n      \"clicks\": {\n        \"clicks_total\": 450,\n        \"unique_clicks\": 300,\n        \"click_rate\": 0.06\n      },\n      \"unsubscribed\": 10,\n      \"bounce_rate\": 0.02\n    }\n  ]\n}\n\nGet Campaign Report\n\nGET /mailchimp/3.0/reports/{campaign_id}\n\nGet Campaign Open Details\n\nGET /mailchimp/3.0/reports/{campaign_id}/open-details\n\nGet Campaign Click Details\n\nGET /mailchimp/3.0/reports/{campaign_id}/click-details\n\nGet List Activity\n\nGET /mailchimp/3.0/lists/{list_id}/activity\n\nReturns recent daily aggregated activity stats (unsubscribes, signups, opens, clicks) for up to 180 days."
      },
      {
        "title": "Batch Operations",
        "body": "Process multiple operations in a single call.\n\nCreate Batch Operation\n\nPOST /mailchimp/3.0/batches\nContent-Type: application/json\n\n{\n  \"operations\": [\n    {\n      \"method\": \"POST\",\n      \"path\": \"/lists/abc123def4/members\",\n      \"body\": \"{\\\"email_address\\\":\\\"user1@example.com\\\",\\\"status\\\":\\\"subscribed\\\"}\"\n    },\n    {\n      \"method\": \"POST\",\n      \"path\": \"/lists/abc123def4/members\",\n      \"body\": \"{\\\"email_address\\\":\\\"user2@example.com\\\",\\\"status\\\":\\\"subscribed\\\"}\"\n    }\n  ]\n}\n\nGet Batch Status\n\nGET /mailchimp/3.0/batches/{batch_id}\n\nList All Batches\n\nGET /mailchimp/3.0/batches\n\nDelete a Batch\n\nDELETE /mailchimp/3.0/batches/{batch_id}\n\nReturns 204 No Content on success."
      },
      {
        "title": "Pagination",
        "body": "Mailchimp uses offset-based pagination:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists?count=50&offset=100')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse includes total_items for calculating total pages:\n\n{\n  \"lists\": [...],\n  \"total_items\": 250\n}"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/mailchimp/3.0/lists',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\nimport hashlib\n\n# Get lists\nresponse = requests.get(\n    'https://gateway.maton.ai/mailchimp/3.0/lists',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n\n# Add a subscriber\nlist_id = 'abc123def4'\nemail = 'newuser@example.com'\n\nresponse = requests.post(\n    f'https://gateway.maton.ai/mailchimp/3.0/lists/{list_id}/members',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={\n        'email_address': email,\n        'status': 'subscribed'\n    }\n)\n\n# Get subscriber hash for updates\nsubscriber_hash = hashlib.md5(email.lower().encode()).hexdigest()"
      },
      {
        "title": "Notes",
        "body": "List IDs are 10-character alphanumeric strings\nSubscriber hashes are MD5 hashes of lowercase email addresses\nTimestamps are in ISO 8601 format\nThe API has a 120-second timeout on calls\nMaximum 1000 records per request for list endpoints\n\"Audience\" and \"list\" are used interchangeably (app vs API terminology)\n\"Contact\" and \"member\" are used interchangeably (app vs API terminology)\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping."
      },
      {
        "title": "Response Codes",
        "body": "StatusMeaning200Success with response body204Success with no content (DELETE, some POST operations)400Bad request or missing Mailchimp connection401Invalid or missing Maton API key403Forbidden - insufficient permissions404Resource not found405Method not allowed429Rate limited4xx/5xxPassthrough error from Mailchimp API\n\nMailchimp error responses include detailed information:\n\n{\n  \"type\": \"https://mailchimp.com/developer/marketing/docs/errors/\",\n  \"title\": \"Invalid Resource\",\n  \"status\": 400,\n  \"detail\": \"The resource submitted could not be validated.\",\n  \"instance\": \"abc123-def456\",\n  \"errors\": [\n    {\n      \"field\": \"email_address\",\n      \"message\": \"This value should be a valid email.\"\n    }\n  ]\n}"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with mailchimp. For example:\n\nCorrect: https://gateway.maton.ai/mailchimp/3.0/lists\nIncorrect: https://gateway.maton.ai/3.0/lists"
      },
      {
        "title": "Resources",
        "body": "Mailchimp Marketing API Documentation\nAPI Reference\nQuick Start Guide\nRelease Notes\nMaton Community\nMaton Support"
      }
    ],
    "body": "Mailchimp\n\nAccess the Mailchimp Marketing API with managed OAuth authentication. Manage audiences, campaigns, templates, automations, reports, and subscribers for email marketing.\n\nQuick Start\n# List all audiences\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/mailchimp/{native-api-path}\n\n\nReplace {native-api-path} with the actual Mailchimp API endpoint path (e.g., 3.0/lists). The gateway proxies requests to your Mailchimp data center and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Mailchimp OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=mailchimp&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'mailchimp'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"mailchimp\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Mailchimp connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\nLists (Audiences)\n\nWithin the Mailchimp app, \"audience\" is the common term, but the API uses \"lists\" for endpoints.\n\nGet All Lists\nGET /mailchimp/3.0/lists\n\n\nQuery parameters:\n\ncount - Number of records to return (default 10, max 1000)\noffset - Number of records to skip (for pagination)\nfields - Comma-separated list of fields to include\nexclude_fields - Comma-separated list of fields to exclude\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists?count=10')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"lists\": [\n    {\n      \"id\": \"abc123def4\",\n      \"name\": \"Newsletter Subscribers\",\n      \"contact\": {\n        \"company\": \"Acme Corp\",\n        \"address1\": \"123 Main St\"\n      },\n      \"stats\": {\n        \"member_count\": 5000,\n        \"unsubscribe_count\": 100,\n        \"open_rate\": 0.25\n      }\n    }\n  ],\n  \"total_items\": 1\n}\n\nGet a List\nGET /mailchimp/3.0/lists/{list_id}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate a List\nPOST /mailchimp/3.0/lists\nContent-Type: application/json\n\n{\n  \"name\": \"Newsletter\",\n  \"contact\": {\n    \"company\": \"Acme Corp\",\n    \"address1\": \"123 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"zip\": \"10001\",\n    \"country\": \"US\"\n  },\n  \"permission_reminder\": \"You signed up for our newsletter\",\n  \"campaign_defaults\": {\n    \"from_name\": \"Acme Corp\",\n    \"from_email\": \"newsletter@acme.com\",\n    \"subject\": \"\",\n    \"language\": \"en\"\n  },\n  \"email_type_option\": true\n}\n\nUpdate a List\nPATCH /mailchimp/3.0/lists/{list_id}\n\nDelete a List\nDELETE /mailchimp/3.0/lists/{list_id}\n\nList Members (Subscribers)\n\nMembers are contacts within an audience. The API uses MD5 hash of the lowercase email address as the subscriber identifier.\n\nGet List Members\nGET /mailchimp/3.0/lists/{list_id}/members\n\n\nQuery parameters:\n\nstatus - Filter by subscription status (subscribed, unsubscribed, cleaned, pending, transactional)\ncount - Number of records to return\noffset - Number of records to skip\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/members?status=subscribed&count=50')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"members\": [\n    {\n      \"id\": \"f4b7c8d9e0\",\n      \"email_address\": \"john@example.com\",\n      \"status\": \"subscribed\",\n      \"merge_fields\": {\n        \"FNAME\": \"John\",\n        \"LNAME\": \"Doe\"\n      },\n      \"tags\": [\n        {\"id\": 1, \"name\": \"VIP\"}\n      ]\n    }\n  ],\n  \"total_items\": 500\n}\n\nGet a Member\nGET /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}\n\n\nThe subscriber_hash is the MD5 hash of the lowercase email address.\n\nExample:\n\n# For email \"john@example.com\", subscriber_hash = md5(\"john@example.com\")\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/members/b4c9a0d1e2f3g4h5')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nAdd a Member\nPOST /mailchimp/3.0/lists/{list_id}/members\nContent-Type: application/json\n\n{\n  \"email_address\": \"newuser@example.com\",\n  \"status\": \"subscribed\",\n  \"merge_fields\": {\n    \"FNAME\": \"Jane\",\n    \"LNAME\": \"Smith\"\n  },\n  \"tags\": [\"Newsletter\", \"Premium\"]\n}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'email_address': 'newuser@example.com', 'status': 'subscribed', 'merge_fields': {'FNAME': 'Jane', 'LNAME': 'Smith'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/members', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate a Member\nPATCH /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'merge_fields': {'FNAME': 'Jane', 'LNAME': 'Doe'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/members/b4c9a0d1e2f3g4h5', data=data, method='PATCH')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nAdd or Update a Member (Upsert)\nPUT /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}\nContent-Type: application/json\n\n{\n  \"email_address\": \"user@example.com\",\n  \"status_if_new\": \"subscribed\",\n  \"merge_fields\": {\n    \"FNAME\": \"Jane\",\n    \"LNAME\": \"Smith\"\n  }\n}\n\n\nCreates a new member or updates an existing one based on the email hash. Use status_if_new to set the status when creating a new member.\n\nDelete a Member\n\nArchives a member (can be re-added later):\n\nDELETE /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}\n\n\nReturns 204 No Content on success.\n\nTo permanently delete (GDPR compliant):\n\nPOST /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}/actions/delete-permanent\n\nMember Tags\nGet Member Tags\nGET /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}/tags\n\nAdd or Remove Tags\nPOST /mailchimp/3.0/lists/{list_id}/members/{subscriber_hash}/tags\nContent-Type: application/json\n\n{\n  \"tags\": [\n    {\"name\": \"VIP\", \"status\": \"active\"},\n    {\"name\": \"Old Tag\", \"status\": \"inactive\"}\n  ]\n}\n\n\nReturns 204 No Content on success.\n\nSegments\nGet Segments\nGET /mailchimp/3.0/lists/{list_id}/segments\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists/abc123def4/segments')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate a Segment\nPOST /mailchimp/3.0/lists/{list_id}/segments\nContent-Type: application/json\n\n{\n  \"name\": \"Active Subscribers\",\n  \"options\": {\n    \"match\": \"all\",\n    \"conditions\": [\n      {\n        \"condition_type\": \"EmailActivity\",\n        \"field\": \"opened\",\n        \"op\": \"date_within\",\n        \"value\": \"30\"\n      }\n    ]\n  }\n}\n\nUpdate a Segment\nPATCH /mailchimp/3.0/lists/{list_id}/segments/{segment_id}\n\nGet Segment Members\nGET /mailchimp/3.0/lists/{list_id}/segments/{segment_id}/members\n\nDelete a Segment\nDELETE /mailchimp/3.0/lists/{list_id}/segments/{segment_id}\n\n\nReturns 204 No Content on success.\n\nCampaigns\nGet All Campaigns\nGET /mailchimp/3.0/campaigns\n\n\nQuery parameters:\n\ntype - Campaign type (regular, plaintext, absplit, rss, variate)\nstatus - Campaign status (save, paused, schedule, sending, sent)\nlist_id - Filter by list ID\ncount - Number of records to return\noffset - Number of records to skip\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/campaigns?status=sent&count=20')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"campaigns\": [\n    {\n      \"id\": \"campaign123\",\n      \"type\": \"regular\",\n      \"status\": \"sent\",\n      \"settings\": {\n        \"subject_line\": \"Monthly Newsletter\",\n        \"from_name\": \"Acme Corp\"\n      },\n      \"send_time\": \"2025-02-01T10:00:00Z\",\n      \"report_summary\": {\n        \"opens\": 1500,\n        \"clicks\": 300,\n        \"open_rate\": 0.30,\n        \"click_rate\": 0.06\n      }\n    }\n  ],\n  \"total_items\": 50\n}\n\nGet a Campaign\nGET /mailchimp/3.0/campaigns/{campaign_id}\n\nCreate a Campaign\nPOST /mailchimp/3.0/campaigns\nContent-Type: application/json\n\n{\n  \"type\": \"regular\",\n  \"recipients\": {\n    \"list_id\": \"abc123def4\"\n  },\n  \"settings\": {\n    \"subject_line\": \"Your Monthly Update\",\n    \"from_name\": \"Acme Corp\",\n    \"reply_to\": \"hello@acme.com\"\n  }\n}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'type': 'regular', 'recipients': {'list_id': 'abc123def4'}, 'settings': {'subject_line': 'February Newsletter', 'from_name': 'Acme Corp', 'reply_to': 'newsletter@acme.com'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/campaigns', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate a Campaign\nPATCH /mailchimp/3.0/campaigns/{campaign_id}\n\nDelete a Campaign\nDELETE /mailchimp/3.0/campaigns/{campaign_id}\n\n\nReturns 204 No Content on success.\n\nGet Campaign Content\nGET /mailchimp/3.0/campaigns/{campaign_id}/content\n\nSet Campaign Content\nPUT /mailchimp/3.0/campaigns/{campaign_id}/content\nContent-Type: application/json\n\n{\n  \"html\": \"<html><body><h1>Hello!</h1><p>Newsletter content here.</p></body></html>\",\n  \"plain_text\": \"Hello! Newsletter content here.\"\n}\n\n\nOr use a template:\n\nPUT /mailchimp/3.0/campaigns/{campaign_id}/content\nContent-Type: application/json\n\n{\n  \"template\": {\n    \"id\": 12345,\n    \"sections\": {\n      \"body\": \"<p>Custom content for the template section</p>\"\n    }\n  }\n}\n\nGet Campaign Send Checklist\n\nCheck if a campaign is ready to send:\n\nGET /mailchimp/3.0/campaigns/{campaign_id}/send-checklist\n\nSend a Campaign\nPOST /mailchimp/3.0/campaigns/{campaign_id}/actions/send\n\nSchedule a Campaign\nPOST /mailchimp/3.0/campaigns/{campaign_id}/actions/schedule\nContent-Type: application/json\n\n{\n  \"schedule_time\": \"2025-03-01T10:00:00+00:00\"\n}\n\nCancel a Scheduled Campaign\nPOST /mailchimp/3.0/campaigns/{campaign_id}/actions/cancel-send\n\nTemplates\nGet All Templates\nGET /mailchimp/3.0/templates\n\n\nQuery parameters:\n\ntype - Template type (user, base, gallery)\ncount - Number of records to return\noffset - Number of records to skip\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/templates?type=user')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet a Template\nGET /mailchimp/3.0/templates/{template_id}\n\nGet Template Default Content\nGET /mailchimp/3.0/templates/{template_id}/default-content\n\nCreate a Template\nPOST /mailchimp/3.0/templates\nContent-Type: application/json\n\n{\n  \"name\": \"Newsletter Template\",\n  \"html\": \"<html><body mc:edit=\\\"body\\\"><h1>Title</h1><p>Content here</p></body></html>\"\n}\n\nUpdate a Template\nPATCH /mailchimp/3.0/templates/{template_id}\n\nDelete a Template\nDELETE /mailchimp/3.0/templates/{template_id}\n\n\nReturns 204 No Content on success.\n\nAutomations\n\nMailchimp's classic automations let you build email series triggered by dates, activities, or events.\n\nGet All Automations\nGET /mailchimp/3.0/automations\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/automations')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet an Automation\nGET /mailchimp/3.0/automations/{workflow_id}\n\nStart an Automation\nPOST /mailchimp/3.0/automations/{workflow_id}/actions/start-all-emails\n\nPause an Automation\nPOST /mailchimp/3.0/automations/{workflow_id}/actions/pause-all-emails\n\nGet Automation Emails\nGET /mailchimp/3.0/automations/{workflow_id}/emails\n\nAdd Subscriber to Automation Queue\n\nManually add a subscriber to an automation workflow:\n\nPOST /mailchimp/3.0/automations/{workflow_id}/emails/{workflow_email_id}/queue\nContent-Type: application/json\n\n{\n  \"email_address\": \"subscriber@example.com\"\n}\n\nReports\nGet Campaign Reports\nGET /mailchimp/3.0/reports\n\n\nQuery parameters:\n\ncount - Number of records to return\noffset - Number of records to skip\ntype - Campaign type\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/reports?count=20')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"reports\": [\n    {\n      \"id\": \"campaign123\",\n      \"campaign_title\": \"Monthly Newsletter\",\n      \"emails_sent\": 5000,\n      \"opens\": {\n        \"opens_total\": 1500,\n        \"unique_opens\": 1200,\n        \"open_rate\": 0.24\n      },\n      \"clicks\": {\n        \"clicks_total\": 450,\n        \"unique_clicks\": 300,\n        \"click_rate\": 0.06\n      },\n      \"unsubscribed\": 10,\n      \"bounce_rate\": 0.02\n    }\n  ]\n}\n\nGet Campaign Report\nGET /mailchimp/3.0/reports/{campaign_id}\n\nGet Campaign Open Details\nGET /mailchimp/3.0/reports/{campaign_id}/open-details\n\nGet Campaign Click Details\nGET /mailchimp/3.0/reports/{campaign_id}/click-details\n\nGet List Activity\nGET /mailchimp/3.0/lists/{list_id}/activity\n\n\nReturns recent daily aggregated activity stats (unsubscribes, signups, opens, clicks) for up to 180 days.\n\nBatch Operations\n\nProcess multiple operations in a single call.\n\nCreate Batch Operation\nPOST /mailchimp/3.0/batches\nContent-Type: application/json\n\n{\n  \"operations\": [\n    {\n      \"method\": \"POST\",\n      \"path\": \"/lists/abc123def4/members\",\n      \"body\": \"{\\\"email_address\\\":\\\"user1@example.com\\\",\\\"status\\\":\\\"subscribed\\\"}\"\n    },\n    {\n      \"method\": \"POST\",\n      \"path\": \"/lists/abc123def4/members\",\n      \"body\": \"{\\\"email_address\\\":\\\"user2@example.com\\\",\\\"status\\\":\\\"subscribed\\\"}\"\n    }\n  ]\n}\n\nGet Batch Status\nGET /mailchimp/3.0/batches/{batch_id}\n\nList All Batches\nGET /mailchimp/3.0/batches\n\nDelete a Batch\nDELETE /mailchimp/3.0/batches/{batch_id}\n\n\nReturns 204 No Content on success.\n\nPagination\n\nMailchimp uses offset-based pagination:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/mailchimp/3.0/lists?count=50&offset=100')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse includes total_items for calculating total pages:\n\n{\n  \"lists\": [...],\n  \"total_items\": 250\n}\n\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/mailchimp/3.0/lists',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n\nPython\nimport os\nimport requests\nimport hashlib\n\n# Get lists\nresponse = requests.get(\n    'https://gateway.maton.ai/mailchimp/3.0/lists',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n\n# Add a subscriber\nlist_id = 'abc123def4'\nemail = 'newuser@example.com'\n\nresponse = requests.post(\n    f'https://gateway.maton.ai/mailchimp/3.0/lists/{list_id}/members',\n    headers={\n        'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}',\n        'Content-Type': 'application/json'\n    },\n    json={\n        'email_address': email,\n        'status': 'subscribed'\n    }\n)\n\n# Get subscriber hash for updates\nsubscriber_hash = hashlib.md5(email.lower().encode()).hexdigest()\n\nNotes\nList IDs are 10-character alphanumeric strings\nSubscriber hashes are MD5 hashes of lowercase email addresses\nTimestamps are in ISO 8601 format\nThe API has a 120-second timeout on calls\nMaximum 1000 records per request for list endpoints\n\"Audience\" and \"list\" are used interchangeably (app vs API terminology)\n\"Contact\" and \"member\" are used interchangeably (app vs API terminology)\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping.\nResponse Codes\nStatus\tMeaning\n200\tSuccess with response body\n204\tSuccess with no content (DELETE, some POST operations)\n400\tBad request or missing Mailchimp connection\n401\tInvalid or missing Maton API key\n403\tForbidden - insufficient permissions\n404\tResource not found\n405\tMethod not allowed\n429\tRate limited\n4xx/5xx\tPassthrough error from Mailchimp API\n\nMailchimp error responses include detailed information:\n\n{\n  \"type\": \"https://mailchimp.com/developer/marketing/docs/errors/\",\n  \"title\": \"Invalid Resource\",\n  \"status\": 400,\n  \"detail\": \"The resource submitted could not be validated.\",\n  \"instance\": \"abc123-def456\",\n  \"errors\": [\n    {\n      \"field\": \"email_address\",\n      \"message\": \"This value should be a valid email.\"\n    }\n  ]\n}\n\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with mailchimp. For example:\nCorrect: https://gateway.maton.ai/mailchimp/3.0/lists\nIncorrect: https://gateway.maton.ai/3.0/lists\nResources\nMailchimp Marketing API Documentation\nAPI Reference\nQuick Start Guide\nRelease Notes\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/mailchimp",
    "publisherUrl": "https://clawhub.ai/byungkyu/mailchimp",
    "owner": "byungkyu",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mailchimp",
    "downloadUrl": "https://openagent3.xyz/downloads/mailchimp",
    "agentUrl": "https://openagent3.xyz/skills/mailchimp/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mailchimp/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mailchimp/agent.md"
  }
}