Mailchimp Templates API

The Templates API from Mailchimp — 11 operation(s) for templates.

Operations 20

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /templates List marketing email templates · List templates #
Ask an LLM
“Which email templates are available in my marketing account?”
“Can I list only the templates I created myself, sorted by date?”
Tell an agent
List my marketing email templates.
Show marketing templates in folder {folder_id}.
POST /templates Create a classic marketing template from HTML · Add template #
Ask an LLM
“How do I upload my own HTML as a reusable campaign template?”
“Can I put a new campaign template straight into a folder when I create it?”
Tell an agent
Create a classic campaign template named {name} from this HTML: {html}.
Add campaign template {name} with HTML {html} into folder {folder_id}.
GET /templates/{template_id} Get a marketing template's details · Get template info #
Ask an LLM
“What type, category and thumbnail does a specific campaign template have?”
“Can I look up one marketing template by its numeric ID?”
Tell an agent
Show campaign template {template_id}.
Get details of marketing template {template_id}, including when it was created.
PATCH /templates/{template_id} Update a marketing template's name, HTML or folder · Update template #
Ask an LLM
“Can I replace the HTML of an existing campaign template?”
“How do I move a campaign template into a different folder?”
Tell an agent
Update campaign template {template_id}: name {name}, HTML {html}.
Move campaign template {template_id} named {name} with HTML {html} into folder {folder_id}.
DELETE /templates/{template_id} Delete a marketing template · Delete template #
Ask an LLM
“Can I delete a campaign template I no longer use?”
“What's the way to remove a user-created marketing template by ID?”
Tell an agent destructive · confirm first
Delete campaign template {template_id}.
Remove marketing template {template_id} from my account.
GET /templates/{template_id}/default-content View a template's editable sections · View default content #
Ask an LLM
“Which sections of a campaign template can I edit, and what's their default content?”
“Can I see the placeholder content in each editable region of a template?”
Tell an agent
Show the editable sections and default content of template {template_id}.
List default content blocks for campaign template {template_id}.
GET /3.0/templates List templates #
POST /3.0/templates Add template #
DELETE /3.0/templates/{template_id} Delete template #
GET /3.0/templates/{template_id} Get template info #
PATCH /3.0/templates/{template_id} Update template #
GET /3.0/templates/{template_id}/default-content View default content #
POST /templates/add Add a transactional email template · Add template #
Ask an LLM
“How do I create a transactional email template with a default subject and from address?”
“Can I add a transactional template as a draft without publishing it?”
Tell an agent
Add transactional template {name} with code {code} using API key {key}.
Create transactional template {name} with subject {subject} from {from_email}, publish {publish}, key {key}.
POST /templates/info Get a transactional template's details · Get template info #
Ask an LLM
“What code, subject and labels does a named transactional template have?”
“Can I see both the draft and published versions of a transactional template?”
Tell an agent
Show transactional template {name} using key {key}.
Get the published code of transactional template {name} with API key {key}.
POST /templates/update Update a transactional template's draft · Update template #
Ask an LLM
“Can I change the code or subject of a transactional template and leave other fields untouched?”
“How do I update a transactional template and publish the change right away?”
Tell an agent
Update transactional template {name} with new code {code} using key {key}.
Change the subject of transactional template {name} to {subject}, key {key}.
POST /templates/publish Publish a transactional template's draft · Publish template content #
Ask an LLM
“How do I make my draft changes to a transactional template go live for new messages?”
“Will publishing a transactional template affect messages sent after it?”
Tell an agent
Publish the draft of transactional template {name} using key {key}.
Push draft content live for transactional template {name}, API key {key}.
POST /templates/delete Delete a transactional template · Delete template #
Ask an LLM
“Can I delete a transactional email template by its name?”
“What's the way to remove an unused transactional template?”
Tell an agent destructive · confirm first
Delete transactional template {name} using key {key}.
Remove the transactional template called {name}, API key {key}.
POST /templates/list List transactional templates · List templates #
Ask an LLM
“Which transactional email templates exist on my account?”
“Can I filter my transactional templates by label?”
Tell an agent
List all transactional templates using key {key}.
Show transactional templates labeled {label}, API key {key}.
POST /templates/time-series Get hourly send stats for a transactional template · Get template history #
Ask an LLM
“How has a transactional template performed hour by hour over the last 30 days?”
“Can I see recent opens and clicks for messages using one template?”
Tell an agent
Show the last 30 days of hourly stats for template {name} using key {key}.
Get the send history of transactional template {name}, API key {key}.
POST /templates/render Render a transactional template to HTML · Render html template #
Ask an LLM
“Can I preview the final HTML of a template with my content and merge fields filled in?”
“What does a transactional template look like once merge variables are injected?”
Tell an agent
Render template {template_name} with content {template_content} using key {key}.
Preview template {template_name} with content {template_content} and merge vars {merge_vars}, key {key}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mailchimp:mailchimp-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mailchimp-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mailchimp Templates API
  x-refined-note:
  - x-permalink differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged templates across 3 of this provider''s published API definitions: mailchimp-marketing-api-openapi-original.json, mailchimp-openapi.json, mailchimp-transactional-api-openapi-original.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://server.api.mailchimp.com/3.0
- description: Mailchimp API
  url: https://api.mailchimp.com
- url: https://mandrillapp.com/api/1.3
tags:


# --- truncated at 32 KB (277 KB total) ---
# Full source: https://artifacts.apis.io/mailchimp/openapi/mailchimp-templates-api-openapi.yml