Mailchimp Templates API

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

Operations 14

GET /templates List templates #
POST /templates Add template #
GET /templates/{template_id} Get template info #
PATCH /templates/{template_id} Update template #
DELETE /templates/{template_id} Delete template #
GET /templates/{template_id}/default-content View default content #
POST /templates/add Add template #
POST /templates/info Get template info #
POST /templates/update Update template #
POST /templates/publish Publish template content #
POST /templates/delete Delete template #
POST /templates/list List templates #
POST /templates/time-series Get template history #
POST /templates/render Render html template #

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-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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 2 of this provider''s published API definitions: mailchimp-marketing-api-openapi-original.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
- url: https://mandrillapp.com/api/1.3
tags:
- name: templates
paths:
  /templates:
    get:
      summary: List templates
      description: Get a list of an account's available templates.
      operationId: getTemplates
      parameters:
      - name: fields
        x-title: Fields
        in: query
        description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        required: false
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
      - name: exclude_fields
        x-title: Exclude Fields
        in: query
        description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        required: false
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
      - name: count
        x-title: Count
        in: query
        description: The number of records to return. Default value is 10. Maximum value is 1000
        required: false
        schema:
          type: integer
          default: 10
          maximum: 1000
      - name: offset
        x-title: Offset
        in: query
        description: Used for [pagination](https://mailchimp.com/developer/marketing/docs/methods-parameters/#pagination), this is the number of records from a collection to skip. Default value is 0.
        required: false
        schema:
          type: integer
          default: 0
      - name: created_by
        x-title: Created By
        in: query
        description: The Mailchimp account user who created the template.
        required: false
        schema:
          type: string
      - name: since_date_created
        x-title: Since Date Created
        in: query
        description: 'Restrict the response to templates created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        required: false
        schema:
          type: string
      - name: before_date_created
        x-title: Before Date Created
        in: query
        description: 'Restrict the response to templates created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        required: false
        schema:
          type: string
      - name: type
        x-title: Template Type
        in: query
        required: false
        description: Limit results based on template type.
        schema:
          type: string
      - name: category
        x-title: Category
        in: query
        description: Limit results based on category.
        required: false
        schema:
          type: string
      - name: folder_id
        x-title: Folder ID
        in: query
        description: The unique folder id.
        required: false
        schema:
          type: string
      - name: sort_field
        x-title: Sort By Field
        description: Returns user templates sorted by the specified field.
        in: query
        required: false
        schema:
          type: string
          enum:
          - date_created
          - date_edited
          - name
      - name: content_type
        x-title: Content Type
        in: query
        required: false
        description: Limit results based on how the template's content is put together. Only templates of type `user` can be filtered by `content_type`. If you want to retrieve saved templates created with the legacy email editor, then filter `content_type` to `template`. If you'd rather pull your saved templates for the new editor, filter to `multichannel`. For code your own templates, filter to `html`.
        schema:
          type: string
          enum:
          - html
          - template
          - multichannel
      - name: sort_dir
        x-title: Sort Direction
        description: Determines the order direction for sorted results.
        in: query
        required: false
        schema:
          type: string
          enum:
          - ASC
          - DESC
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                title: Templates
                description: A list an account's available templates.
                properties:
                  templates:
                    type: array
                    items:
                      type: object
                      title: Template Instance
                      description: Information about a specific template.
                      properties:
                        id:
                          type: integer
                          title: Template ID
                          description: The individual id for the template.
                          readOnly: true
                        type:
                          type: string
                          title: Template Type
                          description: The type of template (user, base, or gallery).
                          readOnly: true
                        name:
                          type: string
                          title: Template Name
                          description: The name of the template.
                        drag_and_drop:
                          type: boolean
                          title: Drag and Drop
                          description: Whether the template uses the drag and drop editor.
                          readOnly: true
                        responsive:
                          type: boolean
                          title: Responsive
                          description: Whether the template contains media queries to make it responsive.
                          readOnly: true
                        category:
                          type: string
                          title: Template Category
                          description: If available, the category the template is listed in.
                          readOnly: true
                        date_created:
                          type: string
                          title: Date Created
                          description: The date and time the template was created in ISO 8601 format.
                          format: date-time
                          readOnly: true
                        date_edited:
                          type: string
                          title: Date Edited
                          description: The date and time the template was edited in ISO 8601 format.
                          format: date-time
                          readOnly: true
                        created_by:
                          type: string
                          title: Created By
                          description: The login name for template's creator.
                          readOnly: true
                        edited_by:
                          type: string
                          title: Edited By
                          description: The login name who last edited the template.
                          readOnly: true
                        active:
                          type: boolean
                          title: Active
                          description: User templates are not 'deleted,' but rather marked as 'inactive.' Returns whether the template is still active.
                          readOnly: true
                        folder_id:
                          type: string
                          title: Folder ID
                          description: The id of the folder the template is currently in.
                        thumbnail:
                          type: string
                          title: Template Thumbnail
                          description: If available, the URL for a thumbnail of the template.
                          readOnly: true
                        share_url:
                          type: string
                          title: Share URL
                          description: The URL used for [template sharing](https://mailchimp.com/help/share-a-template/).
                          readOnly: true
                        content_type:
                          type: string
                          title: Content Type
                          description: How the template's content is put together.
                          enum:
                          - template
                          - multichannel
                          - html
                          readOnly: true
                        _links:
                          title: Links
                          description: A list of link types and descriptions for the API schema documents.
                          type: array
                          items:
                            type: object
                            title: Resource Link
                            description: This object represents a link from the resource where it is found to another resource or action that may be performed.
                            properties:
                              rel:
                                type: string
                                title: Rel
                                description: As with an HTML 'rel' attribute, this describes the type of link.
                                readOnly: true
                              href:
                                type: string
                                title: Href
                                description: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
                                readOnly: true
                              method:
                                type: string
                                title: Method
                                description: The HTTP method that should be used when accessing the URL defined in 'href'.
                                enum:
                                - GET
                                - POST
                                - PUT
                                - PATCH
                                - DELETE
                                - OPTIONS
                                - HEAD
                                readOnly: true
                              targetSchema:
                                type: string
                                title: Target Schema
                                description: For GETs, this is a URL representing the schema that the response should conform to.
                                readOnly: true
                              schema:
                                type: string
                                title: Schema
                                description: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
                                readOnly: true
                          readOnly: true
                    title: User Templates
                    description: All of an account's saved or custom templates.
                  total_items:
                    type: integer
                    title: Item Count
                    description: The total number of items matching the query regardless of pagination.
                    readOnly: true
                  _links:
                    title: Links
                    description: A list of link types and descriptions for the API schema documents.
                    type: array
                    items:
                      type: object
                      title: Resource Link
                      description: This object represents a link from the resource where it is found to another resource or action that may be performed.
                      properties:
                        rel:
                          type: string
                          title: Rel
                          description: As with an HTML 'rel' attribute, this describes the type of link.
                          readOnly: true
                        href:
                          type: string
                          title: Href
                          description: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
                          readOnly: true
                        method:
                          type: string
                          title: Method
                          description: The HTTP method that should be used when accessing the URL defined in 'href'.
                          enum:
                          - GET
                          - POST
                          - PUT
                          - PATCH
                          - DELETE
                          - OPTIONS
                          - HEAD
                          readOnly: true
                        targetSchema:
                          type: string
                          title: Target Schema
                          description: For GETs, this is a URL representing the schema that the response should conform to.
                          readOnly: true
                        schema:
                          type: string
                          title: Schema
                          description: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
                          readOnly: true
                    readOnly: true
            application/problem+json:
              schema:
                type: object
                title: Templates
                description: A list an account's available templates.
                properties:
                  templates:
                    type: array
                    items:
                      type: object
                      title: Template Instance
                      description: Information about a specific template.
                      properties:
                        id:
                          type: integer
                          title: Template ID
                          description: The individual id for the template.
                          readOnly: true
                        type:
                          type: string
                          title: Template Type
                          description: The type of template (user, base, or gallery).
                          readOnly: true
                        name:
                          type: string
                          title: Template Name
                          description: The name of the template.
                        drag_and_drop:
                          type: boolean
                          title: Drag and Drop
                          description: Whether the template uses the drag and drop editor.
                          readOnly: true
                        responsive:
                          type: boolean
                          title: Responsive
                          description: Whether the template contains media queries to make it responsive.
                          readOnly: true
                        category:
                          type: string
                          title: Template Category
                          description: If available, the category the template is listed in.
                          readOnly: true
                        date_created:
                          type: string
                          title: Date Created
                          description: The date and time the template was created in ISO 8601 format.
                          format: date-time
                          readOnly: true
                        date_edited:
                          type: string
                          title: Date Edited
                          description: The date and time the template was edited in ISO 8601 format.
                          format: date-time
                          readOnly: true
                        created_by:
                          type: string
                          title: Created By
                          description: The login name for template's creator.
                          readOnly: true
                        edited_by:
                          type: string
                          title: Edited By
                          description: The login name who last edited the template.
                          readOnly: true
                        active:
                          type: boolean
                          title: Active
                          description: User templates are not 'deleted,' but rather marked as 'inactive.' Returns whether the template is still active.
                          readOnly: true
                        folder_id:
                          type: string
                          title: Folder ID
                          description: The id of the folder the template is currently in.
                        thumbnail:
                          type: string
                          title: Template Thumbnail
                          description: If available, the URL for a thumbnail of the template.
                          readOnly: true
                        share_url:
                          type: string
                          title: Share URL
                          description: The URL used for [template sharing](https://mailchimp.com/help/share-a-template/).
                          readOnly: true
                        content_type:
                          type: string
                          title: Content Type
                          description: How the template's content is put together.
                          enum:
                          - template
                          - multichannel
                          - html
                          readOnly: true
                        _links:
                          title: Links
                          description: A list of link types and descriptions for the API schema documents.
                          type: array
                          items:
                            type: object
                            title: Resource Link
                            description: This object represents a link from the resource where it is found to another resource or action that may be performed.
                            properties:
                              rel:
                                type: string
                                title: Rel
                                description: As with an HTML 'rel' attribute, this describes the type of link.
                                readOnly: true
                              href:
                                type: string
                                title: Href
                                description: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
                                readOnly: true
                              method:
                                type: string
                                title: Method
                                description: The HTTP method that should be used when accessing the URL defined in 'href'.
                                enum:
                                - GET
                                - POST
                                - PUT
                                - PATCH
                                - DELETE
                                - OPTIONS
                                - HEAD
                                readOnly: true
                              targetSchema:
                                type: string
                                title: Target Schema
                                description: For GETs, this is a URL representing the schema that the response should conform to.
                                readOnly: true
                              schema:
                                type: string
                                title: Schema
                                description: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
                                readOnly: true
                          readOnly: true
                    title: User Templates
                    description: All of an account's saved or custom templates.
                  total_items:
                    type: integer
                    title: Item Count
                    description: The total number of items matching the query regardless of pagination.
                    readOnly: true
                  _links:
                    title: Links
                    description: A list of link types and descriptions for the API schema documents.
                    type: array
                    items:
                      type: object
                      title: Resource Link
                      description: This object represents a link from the resource where it is found to another resource or action that may be performed.
                      properties:
                        rel:
                          type: string
                          title: Rel
                          description: As with an HTML 'rel' attribute, this describes the type of link.
                          readOnly: true
                        href:
                          type: string
                          title: Href
                          description: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
                          readOnly: true
                        method:
                          type: string
                          title: Method
                          description: The HTTP method that should be used when accessing the URL defined in 'href'.
                          enum:
                          - GET
                          - POST
                          - PUT
                          - PATCH
                          - DELETE
                          - OPTIONS
                          - HEAD
                          readOnly: true
                        targetSchema:
                          type: string
                          title: Target Schema
                          description: For GETs, this is a URL representing the schema that the response should conform to.
                          readOnly: true
                        schema:
                          type: string
                          title: Schema
                          description: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
                          readOnly: true
                    readOnly: true
        default:
          description: An error generated by the Mailchimp API.
          content:
            application/json:
              schema:
                type: object
                title: Problem Detail Document
                description: An error generated by the Mailchimp API. Conforms to IETF draft 'draft-nottingham-http-problem-06'.
                required:
                - type
                - title
                - status
                - detail
                - instance
                properties:
                  type:
                    type: string
                    title: Problem Type
                    description: An absolute URI that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type.
                    example: https://mailchimp.com/developer/marketing/docs/errors/
                  title:
                    type: string
                    title: Error Title
                    description: A short, human-readable summary of the problem type. It shouldn't change based on the occurrence of the problem, except for purposes of localization.
                    example: Resource Not Found
                  status:
                    type: integer
                    title: HTTP Status Code
                    description: The HTTP status code (RFC2616, Section 6) generated by the origin server for this occurrence of the problem.
                    example: 404
                  detail:
                    type: string
                    title: Error Message
                    description: A human-readable explanation specific to this occurrence of the problem. [Learn more about errors](/developer/guides/get-started-with-mailchimp-api-3/#Errors).
                    example: The requested resource could not be found.
                  instance:
                    type: string
                    title: Instance ID
                    description: A string that identifies this specific occurrence of the problem. Please provide this ID when contacting support.
                    example: 995c5cb0-3280-4a6e-808b-3b096d0bb219
            application/problem+json:
              schema:
                type: object
                title: Problem Detail Document
                description: An error generated by the Mailchimp API. Conforms to IETF draft 'draft-nottingham-http-problem-06'.
                required:
                - type
                - title
                - status
                - detail
                - instance
                properties:
                  type:
                    type: string
                    title: Problem Type
                    description: An absolute URI that identifies the problem type. When dereferenced, it should provide human-readable documentation for the problem type.
                    example: https://mailchimp.com/developer/marketing/docs/errors/
                  title:
                    type: string
                    title: Error Title
                    description: A short, human-readable summary of the problem type. It shouldn't change based on the occurrence of the problem, except for purposes of localization.
                    example: Resource Not Found
                  status:
                    type: integer
                    title: HTTP Status Code
                    description: The HTTP status code (RFC2616, Section 6) generated by the origin server for this occurrence of the problem.
                    example: 404
                  detail:
                    type: string
                    title: Error Message
                    description: A human-readable explanation specific to this occurrence of the problem. [Learn more about errors](/developer/guides/get-started-with-mailchimp-api-3/#Errors).
                    example: The requested resource could not be found.
                  instance:
                    type: string
                    title: Instance ID
                    description: A string that identifies this specific occurrence of the problem. Please provide this ID when contacting support.
                    example: 995c5cb0-3280-4a6e-808b-3b096d0bb219
      deprecated: false
      tags:
      - templates
      x-custom-config:
        methodNameSnake: list
        methodNameCamel: list
      security:
      - basicAuth: []
    post:
      summary: Add template
      description: Create a new template for the account. Only Classic templates are supported.
      operationId: postTemplates
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                title: Template Instance
                description: Information about a specific template.
                properties:
                  id:
                    type: integer
                    title: Template ID
                    description: The individual id for the template.
                    readOnly: true
                  type:
                    type: string
                    title: Template Type
                    description: The type of template (user, base, or gallery).
                    readOnly: true
                  name:
                    type: string
                    title: Template Name
                    description: The name of the template.
                  drag_and_drop:
                    type: boolean
                    title: Drag and Drop
                    description: Whether the template uses the drag and drop editor.
                    readOnly: true
                  responsive:
                    type: boolean
                    title: Responsive
                    description: Whether the template contains media queries to make it responsive.
                    readOnly: true
                  category:
                    type: string
                    title: Template Category
                    description: If available, the category the template is listed in.
                    readOnly: true
                  date_created:
                    type: string
                    title: Date Created
                    description: The date and time the template was created in ISO 8601 format.
                    format: date-time
                    readOnly: true
                  date_edited:
                    type: string
                    title: Date Edited
                    description: The date and time the template was edited in ISO 8601 format.
                    format: date-time
                    readOnly: true
                  created_by:
                    type: string
                    title: Created By
                    description: The login name for template's creator.
                    readOnly: true
                  edited_by:
                    type: string
                    title: Edited By
                    description: The login name who last edited the template.
                    readOnly: true
                  active:
                    type: boolean
                    title: Active
                    description: User templates are not 'deleted,' but rather marked as 'inactive.' Returns whether the template is still active.
                    readOnly: true
                  folder_id:
                    type: string
                    title: Folder ID
                    description: The id of the folder the template is currently in.
                  thumbnail:
                    type: string
                    title: Template Thumbnail
                    description: If available, the URL for a thumbnail of the template.
                    readOnly: true
                  share_url:
                    type: string
                    title: Share URL
                    description: The URL used for [template sharing](https://mailchimp.com/help/share-a-template/).
                    readOnly: true
                  content_type:
                    type: string
                    title: Content Type
                    description: How the template's content is put together.
                    enum:
                    - template
                    - multichannel
                    - html
                    readOnly: true
                  _links:
                    title: Links
                    description: A list of link types and descriptions for the API schema documents.
                    type: array
                    items:
                      type: object
                      title: Resource Link
                      description: This object represents a link from the resource where it is found to another resource or action that may be performed.
                      properties:
                        rel:
                          type: string
                          title: Rel
                          description: As with an HTML 'rel' attribute, th

# --- truncated at 32 KB (222 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/mailchimp/refs/heads/main/openapi/mailchimp-templates-api-openapi.yml