Mailchimp · Capability

Mailchimp Marketing API — Lists

Mailchimp Marketing API — Lists. 26 operations. Lead operation: Mailchimp Get Lists Info. Self-contained Naftiko capability covering one Mailchimp business surface.

Run with Naftiko MailchimpLists

What You Can Do

GET
Getlists — Mailchimp Get Lists Info
/v1/lists
POST
Postlists — Mailchimp Add List
/v1/lists
GET
Getlistsidabusereportsid — Mailchimp Get Abuse Report
/v1/lists/{list-id}/abuse-reports/{report-id}
GET
Getlistsidinterestcategoriesid — Mailchimp Get Interest Category Info
/v1/lists/{list-id}/interest-categories/{interest-category-id}
PATCH
Patchlistsidinterestcategoriesid — Mailchimp Update Interest Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}
DELETE
Deletelistsidinterestcategoriesid — Mailchimp Delete Interest Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}
GET
Getlistsidinterestcategoriesidinterestsid — Mailchimp Get Interest in Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}/interests/{interest-id}
PATCH
Patchlistsidinterestcategoriesidinterestsid — Mailchimp Update Interest in Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}/interests/{interest-id}
DELETE
Deletelistsidinterestcategoriesidinterestsid — Mailchimp Delete Interest in Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}/interests/{interest-id}
GET
Getlistsidmembersid — Mailchimp Get Member Info
/v1/lists/{list-id}/members/{subscriber-hash}
PUT
Putlistsidmembersid — Mailchimp Add or Update List Member
/v1/lists/{list-id}/members/{subscriber-hash}
PATCH
Patchlistsidmembersid — Mailchimp Update List Member
/v1/lists/{list-id}/members/{subscriber-hash}
DELETE
Deletelistsidmembersid — Mailchimp Archive List Member
/v1/lists/{list-id}/members/{subscriber-hash}
POST
Postlistsidmembershashactionsdeletepermanent — Mailchimp Delete List Member
/v1/lists/{list-id}/members/{subscriber-hash}/actions/delete-permanent
GET
Getlistsidmembersidnotesid — Mailchimp Get Member Note
/v1/lists/{list-id}/members/{subscriber-hash}/notes/{note-id}
PATCH
Patchlistsidmembersidnotesid — Mailchimp Update Note
/v1/lists/{list-id}/members/{subscriber-hash}/notes/{note-id}
DELETE
Deletelistsidmembersidnotesid — Mailchimp Delete Note
/v1/lists/{list-id}/members/{subscriber-hash}/notes/{note-id}
GET
Getlistsidmergefieldsid — Mailchimp Get Merge Field
/v1/lists/{list-id}/merge-fields/{merge-id}
PATCH
Patchlistsidmergefieldsid — Mailchimp Update Merge Field
/v1/lists/{list-id}/merge-fields/{merge-id}
DELETE
Deletelistsidmergefieldsid — Mailchimp Delete Merge Field
/v1/lists/{list-id}/merge-fields/{merge-id}
GET
Getlistsidsegmentsid — Mailchimp Get Segment Info
/v1/lists/{list-id}/segments/{segment-id}
DELETE
Deletelistsidsegmentsid — Mailchimp Delete Segment
/v1/lists/{list-id}/segments/{segment-id}
PATCH
Patchlistsidsegmentsid — Mailchimp Update Segment
/v1/lists/{list-id}/segments/{segment-id}
POST
Postlistsidsegmentsid — Mailchimp Batch Add or Remove Members
/v1/lists/{list-id}/segments/{segment-id}
DELETE
Deletelistsidsegmentsidmembersid — Mailchimp Remove List Member From Segment
/v1/lists/{list-id}/segments/{segment-id}/members/{subscriber-hash}
GET
Getlistsidsurveysid — Mailchimp Get Survey
/v1/lists/{list-id}/surveys/{survey-id}

MCP Tools

mailchimp-get-lists-info

Mailchimp Get Lists Info

read-only idempotent
mailchimp-add-list

Mailchimp Add List

mailchimp-get-abuse-report

Mailchimp Get Abuse Report

read-only idempotent
mailchimp-get-interest-category-info

Mailchimp Get Interest Category Info

read-only idempotent
mailchimp-update-interest-category

Mailchimp Update Interest Category

idempotent
mailchimp-delete-interest-category

Mailchimp Delete Interest Category

idempotent
mailchimp-get-interest-category

Mailchimp Get Interest in Category

read-only idempotent
mailchimp-update-interest-category-2

Mailchimp Update Interest in Category

idempotent
mailchimp-delete-interest-category-2

Mailchimp Delete Interest in Category

idempotent
mailchimp-get-member-info

Mailchimp Get Member Info

read-only idempotent
mailchimp-add-update-list-member

Mailchimp Add or Update List Member

idempotent
mailchimp-update-list-member

Mailchimp Update List Member

idempotent
mailchimp-archive-list-member

Mailchimp Archive List Member

idempotent
mailchimp-delete-list-member

Mailchimp Delete List Member

read-only
mailchimp-get-member-note

Mailchimp Get Member Note

read-only idempotent
mailchimp-update-note

Mailchimp Update Note

idempotent
mailchimp-delete-note

Mailchimp Delete Note

idempotent
mailchimp-get-merge-field

Mailchimp Get Merge Field

read-only idempotent
mailchimp-update-merge-field

Mailchimp Update Merge Field

idempotent
mailchimp-delete-merge-field

Mailchimp Delete Merge Field

idempotent
mailchimp-get-segment-info

Mailchimp Get Segment Info

read-only idempotent
mailchimp-delete-segment

Mailchimp Delete Segment

idempotent
mailchimp-update-segment

Mailchimp Update Segment

idempotent
mailchimp-batch-add-remove-members

Mailchimp Batch Add or Remove Members

mailchimp-remove-list-member-segment

Mailchimp Remove List Member From Segment

idempotent
mailchimp-get-survey

Mailchimp Get Survey

read-only idempotent

Capability Spec

marketing-lists.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mailchimp Marketing API  — Lists
  description: 'Mailchimp Marketing API  — Lists. 26 operations. Lead operation: Mailchimp Get Lists Info. Self-contained
    Naftiko capability covering one Mailchimp business surface.'
  tags:
  - Mailchimp
  - Lists
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MAILCHIMP_API_KEY: MAILCHIMP_API_KEY
capability:
  consumes:
  - type: http
    namespace: marketing-lists
    baseUri: https://server.api.mailchimp.com/3.0
    description: Mailchimp Marketing API  — Lists business capability. Self-contained, no shared references.
    resources:
    - name: lists
      path: /lists
      operations:
      - name: getlists
        method: GET
        description: Mailchimp Get Lists Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: count
          in: query
          type: integer
          description: The number of records to return. Default value is 10. Maximum value is 1000
        - name: offset
          in: query
          type: integer
          description: Used for [pagination](https://mailchimp.com/developer/marketing/docs/methods-parameters/#pagination),
            this it the number of records from a collection to skip. D
        - name: before_date_created
          in: query
          type: string
          description: 'Restrict response to lists created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        - name: since_date_created
          in: query
          type: string
          description: 'Restrict results to lists created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        - name: before_campaign_last_sent
          in: query
          type: string
          description: 'Restrict results to lists created before the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        - name: since_campaign_last_sent
          in: query
          type: string
          description: 'Restrict results to lists created after the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        - name: email
          in: query
          type: string
          description: Restrict results to lists that include a specific subscriber's email address.
        - name: sort_field
          in: query
          type: string
          description: Returns files sorted by the specified field.
        - name: sort_dir
          in: query
          type: string
          description: Determines the order direction for sorted results.
        - name: has_ecommerce_store
          in: query
          type: boolean
          description: Restrict results to lists that contain an active, connected, undeleted ecommerce store.
        - name: include_total_contacts
          in: query
          type: boolean
          description: Return the total_contacts field in the stats response, which contains an approximate count of all contacts
            in any state.
      - name: postlists
        method: POST
        description: Mailchimp Add List
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: lists-list_id-abuse-reports-report_id
      path: /lists/{list_id}/abuse-reports/{report_id}
      operations:
      - name: getlistsidabusereportsid
        method: GET
        description: Mailchimp Get Abuse Report
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: count
          in: query
          type: integer
          description: The number of records to return. Default value is 10. Maximum value is 1000
        - name: offset
          in: query
          type: integer
          description: Used for [pagination](https://mailchimp.com/developer/marketing/docs/methods-parameters/#pagination),
            this it the number of records from a collection to skip. D
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: report_id
          in: path
          type: string
          description: The id for the abuse report.
          required: true
    - name: lists-list_id-interest-categories-interest_category_id
      path: /lists/{list_id}/interest-categories/{interest_category_id}
      operations:
      - name: getlistsidinterestcategoriesid
        method: GET
        description: Mailchimp Get Interest Category Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
      - name: patchlistsidinterestcategoriesid
        method: PATCH
        description: Mailchimp Update Interest Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deletelistsidinterestcategoriesid
        method: DELETE
        description: Mailchimp Delete Interest Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
    - name: lists-list_id-interest-categories-interest_category_id-interests-interest_id
      path: /lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id}
      operations:
      - name: getlistsidinterestcategoriesidinterestsid
        method: GET
        description: Mailchimp Get Interest in Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - name: interest_id
          in: path
          type: string
          description: The specific interest or 'group name'.
          required: true
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
      - name: patchlistsidinterestcategoriesidinterestsid
        method: PATCH
        description: Mailchimp Update Interest in Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - name: interest_id
          in: path
          type: string
          description: The specific interest or 'group name'.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deletelistsidinterestcategoriesidinterestsid
        method: DELETE
        description: Mailchimp Delete Interest in Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - name: interest_id
          in: path
          type: string
          description: The specific interest or 'group name'.
          required: true
    - name: lists-list_id-members-subscriber_hash
      path: /lists/{list_id}/members/{subscriber_hash}
      operations:
      - name: getlistsidmembersid
        method: GET
        description: Mailchimp Get Member Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts
            a list member's email address or contact_id.
          required: true
      - name: putlistsidmembersid
        method: PUT
        description: Mailchimp Add or Update List Member
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts
            a list member's email address or contact_id.
          required: true
        - name: skip_merge_validation
          in: query
          type: boolean
          description: If skip_merge_validation is true, member data will be accepted without merge field values, even if
            the merge field is usually required. This defaults to false.
        - name: body
          in: body
          type: object
          required: true
      - name: patchlistsidmembersid
        method: PATCH
        description: Mailchimp Update List Member
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts
            a list member's email address or contact_id.
          required: true
        - name: skip_merge_validation
          in: query
          type: boolean
          description: If skip_merge_validation is true, member data will be accepted without merge field values, even if
            the merge field is usually required. This defaults to false.
        - name: body
          in: body
          type: object
          required: true
      - name: deletelistsidmembersid
        method: DELETE
        description: Mailchimp Archive List Member
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts
            a list member's email address or contact_id.
          required: true
    - name: lists-list_id-members-subscriber_hash-actions-delete-permanent
      path: /lists/{list_id}/members/{subscriber_hash}/actions/delete-permanent
      operations:
      - name: postlistsidmembershashactionsdeletepermanent
        method: POST
        description: Mailchimp Delete List Member
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address.
          required: true
    - name: lists-list_id-members-subscriber_hash-notes-note_id
      path: /lists/{list_id}/members/{subscriber_hash}/notes/{note_id}
      operations:
      - name: getlistsidmembersidnotesid
        method: GET
        description: Mailchimp Get Member Note
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts
            a list member's email address or contact_id.
          required: true
        - name: note_id
          in: path
          type: string
          description: The id for the note.
          required: true
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
      - name: patchlistsidmembersidnotesid
        method: PATCH
        description: Mailchimp Update Note
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts
            a list member's email address or contact_id.
          required: true
        - name: note_id
          in: path
          type: string
          description: The id for the note.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deletelistsidmembersidnotesid
        method: DELETE
        description: Mailchimp Delete Note
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts
            a list member's email address or contact_id.
          required: true
        - name: note_id
          in: path
          type: string
          description: The id for the note.
          required: true
    - name: lists-list_id-merge-fields-merge_id
      path: /lists/{list_id}/merge-fields/{merge_id}
      operations:
      - name: getlistsidmergefieldsid
        method: GET
        description: Mailchimp Get Merge Field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: merge_id
          in: path
          type: string
          description: The id for the merge field.
          required: true
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
      - name: patchlistsidmergefieldsid
        method: PATCH
        description: Mailchimp Update Merge Field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: merge_id
          in: path
          type: string
          description: The id for the merge field.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deletelistsidmergefieldsid
        method: DELETE
        description: Mailchimp Delete Merge Field
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: merge_id
          in: path
          type: string
          description: The id for the merge field.
          required: true
    - name: lists-list_id-segments-segment_id
      path: /lists/{list_id}/segments/{segment_id}
      operations:
      - name: getlistsidsegmentsid
        method: GET
        description: Mailchimp Get Segment Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: segment_id
          in: path
          type: string
          description: The unique id for the segment.
          required: true
        - name: include_cleaned
          in: query
          type: boolean
          description: Include cleaned members in response
        - name: include_transactional
          in: query
          type: boolean
          description: Include transactional members in response
        - name: include_unsubscribed
          in: query
          type: boolean
          description: Include unsubscribed members in response
      - name: deletelistsidsegmentsid
        method: DELETE
        description: Mailchimp Delete Segment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: segment_id
          in: path
          type: string
          description: The unique id for the segment.
          required: true
      - name: patchlistsidsegmentsid
        method: PATCH
        description: Mailchimp Update Segment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: segment_id
          in: path
          type: string
          description: The unique id for the segment.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: postlistsidsegmentsid
        method: POST
        description: Mailchimp Batch Add or Remove Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: segment_id
          in: path
          type: string
          description: The unique id for the segment.
          required: true
    - name: lists-list_id-segments-segment_id-members-subscriber_hash
      path: /lists/{list_id}/segments/{segment_id}/members/{subscriber_hash}
      operations:
      - name: deletelistsidsegmentsidmembersid
        method: DELETE
        description: Mailchimp Remove List Member From Segment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: segment_id
          in: path
          type: string
          description: The unique id for the segment.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address.
          required: true
    - name: lists-list_id-surveys-survey_id
      path: /lists/{list_id}/surveys/{survey_id}
      operations:
      - name: getlistsidsurveysid
        method: GET
        description: Mailchimp Get Survey
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: survey_id
          in: path
          type: string
          description: The ID of the survey.
          required: true
  exposes:
  - type: rest
    namespace: marketing-lists-rest
    port: 8080
    description: REST adapter for Mailchimp Marketing API  — Lists. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/lists
      name: lists
      description: REST surface for lists.
      operations:
      - method: GET
        name: getlists
        description: Mailchimp Get Lists Info
        call: marketing-lists.getlists
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          count: rest.count
          offset: rest.offset
          before_date_created: rest.before_date_created
          since_date_created: rest.since_date_created
          before_campaign_last_sent: rest.before_campaign_last_sent
          since_campaign_last_sent: rest.since_campaign_last_sent
          email: rest.email
          sort_field: rest.sort_field
          sort_dir: rest.sort_dir
          has_ecommerce_store: rest.has_ecommerce_store
          include_total_contacts: rest.include_total_contacts
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postlists
        description: Mailchimp Add List
        call: marketing-lists.postlists
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/lists/{list-id}/abuse-reports/{report-id}
      name: lists-list-id-abuse-reports-report-id
      description: REST surface for lists-list_id-abuse-reports-report_id.
      operations:
      - method: GET
        name: getlistsidabusereportsid
        description: Mailchimp Get Abuse Report
        call: marketing-lists.getlistsidabusereportsid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          count: rest.count
          offset: rest.offset
          list_id: rest.list_id
          report_id: rest.report_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/lists/{list-id}/interest-categories/{interest-category-id}
      name: lists-list-id-interest-categories-interest-category-id
      description: REST surface for lists-list_id-interest-categories-interest_category_id.
      operations:
      - method: GET
        name: getlistsidinterestcategoriesid
        description: Mailchimp Get Interest Category Info
        call: marketing-lists.getlistsidinterestcategoriesid
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          fields: rest.fields
          exclude_fields: rest.exclude_fields
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchlistsidinterestcategoriesid
        description: Mailchimp Update Interest Category
        call: marketing-lists.patchlistsidinterestcategoriesid
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelistsidinterestcategoriesid
        description: Mailchimp Delete Interest Category
        call: marketing-lists.deletelistsidinterestcategoriesid
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/lists/{list-id}/interest-categories/{interest-category-id}/interests/{interest-id}
      name: lists-list-id-interest-categories-interest-category-id-interests-interest-id
      description: REST surface for lists-list_id-interest-categories-interest_category_id-interests-interest_id.
      operations:
      - method: GET
        name: getlistsidinterestcategoriesidinterestsid
        description: Mailchimp Get Interest in Category
        call: marketing-lists.getlistsidinterestcategoriesidinterestsid
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          interest_id: rest.interest_id
          fields: rest.fields
          exclude_fields: rest.exclude_fields
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchlistsidinterestcategoriesidinterestsid
        description: Mailchimp Update Interest in Category
        call: marketing-lists.patchlistsidinterestcategoriesidinterestsid
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          interest_id: rest.interest_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelistsidinterestcategoriesidinterestsid
        description: Mailchimp Delete Interest in Category
        call: marketing-lists.deletelistsidinterestcategoriesidinterestsid
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          interest_id: rest.interest_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/lists/{list-id}/members/{subscriber-hash}
      name: lists-list-id-members-subscriber-hash
      description: REST surface for lists-list_id-members-subscriber_hash.
      operations:
      - method: GET
        name: getlistsidmembersid
        description: Mailchimp Get Member Info
        call: marketing-lists.getlistsidmembersid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          list_id: rest.list_id
          subscriber_hash: rest.subscriber_hash
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putlistsidmembersid
        description: Mailchimp Add or Update List Member
        call: marketing-lists.putlistsidmembersid
        with:
          list_id: rest.list_id
          subscriber_hash: rest.subscriber_hash
          skip_merge_validation: rest.skip_merge_validation
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchlistsidmembersid
        description: Mailchimp Update List Member
        call: marketing-lists.patchlistsidmembersid
        with:
          list_id: rest.list_id
          subscriber_hash: rest.subscriber_hash
          skip_merge_validation: rest.skip_merge_validation
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelistsidmembersid
        description: Mailchimp Archive List Member
        call: marketing-lists.deletelistsidmembersid
        with:
          list_id: rest.list_id
          subscriber_hash: rest.subscriber_hash
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/lists/{list-id}/members/{subscriber-hash}/actions/delete-permanent
      name: lists-list-id-members-subscriber-hash-actions-delete-permanent
      description: REST surface for lists-list_id-members-subscriber_hash-actions-delete-permanent.
      operations:
      - method: POST
        name: postlistsidmembershashactionsdeletepermanent
    

# --- truncated at 32 KB (49 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/mailchimp/refs/heads/main/capabilities/marketing-lists.yaml