Skip to main content

Mailchimp full reference

This is the full reference documentation for the Mailchimp agent connector.

Supported entities and actions

The Mailchimp connector supports the following entities and actions.

EntityActions
CampaignsList, Get
ListsList, Get
List MembersList, Get
ReportsList, Get
Email ActivityList
AutomationsList
TagsList
Interest CategoriesList, Get
InterestsList, Get
SegmentsList, Get
Segment MembersList
UnsubscribesList

Campaigns

Campaigns List

Get all campaigns in an account

Python SDK

await mailchimp.campaigns.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaigns",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
countintegerNoThe number of records to return. Default is 10. Maximum is 1000.
offsetintegerNoUsed for pagination, this is the number of records from a collection to skip.
type"regular" | "plaintext" | "absplit" | "rss" | "variate"NoThe campaign type
status"save" | "paused" | "schedule" | "sending" | "sent"NoThe status of the campaign
before_send_timestringNoRestrict the response to campaigns sent before the set time
since_send_timestringNoRestrict the response to campaigns sent after the set time
before_create_timestringNoRestrict the response to campaigns created before the set time
since_create_timestringNoRestrict the response to campaigns created after the set time
list_idstringNoThe unique id for the list
folder_idstringNoThe unique folder id
sort_field"create_time" | "send_time"NoReturns files sorted by the specified field
sort_dir"ASC" | "DESC"NoDetermines the order direction for sorted results
Response Schema

Records

Field NameTypeDescription
idstring
web_idinteger | null
parent_campaign_idstring | null
typestring | null
create_timestring | null
archive_urlstring | null
long_archive_urlstring | null
statusstring | null
emails_sentinteger | null
send_timestring | null
content_typestring | null
needs_block_refreshboolean | null
resendableboolean | null
recipientsobject | null
settingsobject | null
trackingobject | null
report_summaryobject | null
delivery_statusobject | null

Meta

Field NameTypeDescription
total_itemsinteger

Campaigns Get

Get information about a specific campaign

Python SDK

await mailchimp.campaigns.get(
campaign_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaigns",
"action": "get",
"params": {
"campaign_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
campaign_idstringYesThe unique id for the campaign
Response Schema

Records

Field NameTypeDescription
idstring
web_idinteger | null
parent_campaign_idstring | null
typestring | null
create_timestring | null
archive_urlstring | null
long_archive_urlstring | null
statusstring | null
emails_sentinteger | null
send_timestring | null
content_typestring | null
needs_block_refreshboolean | null
resendableboolean | null
recipientsobject | null
settingsobject | null
trackingobject | null
report_summaryobject | null
delivery_statusobject | null

Lists

Lists List

Get information about all lists in the account

Python SDK

await mailchimp.lists.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "lists",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
before_date_createdstringNoRestrict response to lists created before the set date
since_date_createdstringNoRestrict response to lists created after the set date
before_campaign_last_sentstringNoRestrict results to lists created before the last campaign send date
since_campaign_last_sentstringNoRestrict results to lists created after the last campaign send date
emailstringNoRestrict results to lists that include a specific subscriber's email address
sort_field"date_created"NoReturns files sorted by the specified field
sort_dir"ASC" | "DESC"NoDetermines the order direction for sorted results
Response Schema

Records

Field NameTypeDescription
idstring
web_idinteger | null
namestring | null
contactobject | null
permission_reminderstring | null
use_archive_barboolean | null
campaign_defaultsobject | null
notify_on_subscribestring | null
notify_on_unsubscribestring | null
date_createdstring | null
list_ratinginteger | null
email_type_optionboolean | null
subscribe_url_shortstring | null
subscribe_url_longstring | null
beamer_addressstring | null
visibilitystring | null
double_optinboolean | null
has_welcomeboolean | null
marketing_permissionsboolean | null
statsobject | null

Meta

Field NameTypeDescription
total_itemsinteger

Lists Get

Get information about a specific list in your Mailchimp account

Python SDK

await mailchimp.lists.get(
list_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "lists",
"action": "get",
"params": {
"list_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
Response Schema

Records

Field NameTypeDescription
idstring
web_idinteger | null
namestring | null
contactobject | null
permission_reminderstring | null
use_archive_barboolean | null
campaign_defaultsobject | null
notify_on_subscribestring | null
notify_on_unsubscribestring | null
date_createdstring | null
list_ratinginteger | null
email_type_optionboolean | null
subscribe_url_shortstring | null
subscribe_url_longstring | null
beamer_addressstring | null
visibilitystring | null
double_optinboolean | null
has_welcomeboolean | null
marketing_permissionsboolean | null
statsobject | null

List Members

List Members List

Get information about members in a specific Mailchimp list

Python SDK

await mailchimp.list_members.list(
list_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "list_members",
"action": "list",
"params": {
"list_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
email_typestringNoThe email type
status"subscribed" | "unsubscribed" | "cleaned" | "pending" | "transactional" | "archived"NoThe subscriber's status
since_timestamp_optstringNoRestrict results to subscribers who opted-in after the set timeframe
before_timestamp_optstringNoRestrict results to subscribers who opted-in before the set timeframe
since_last_changedstringNoRestrict results to subscribers whose information changed after the set timeframe
before_last_changedstringNoRestrict results to subscribers whose information changed before the set timeframe
unique_email_idstringNoA unique identifier for the email address across all Mailchimp lists
vip_onlybooleanNoA filter to return only the list's VIP members
interest_category_idstringNoThe unique id for the interest category
interest_idsstringNoUsed to filter list members by interests
interest_match"any" | "all" | "none"NoUsed to filter list members by interests
sort_field"timestamp_opt" | "timestamp_signup" | "last_changed"NoReturns files sorted by the specified field
sort_dir"ASC" | "DESC"NoDetermines the order direction for sorted results
Response Schema

Records

Field NameTypeDescription
idstring
email_addressstring | null
unique_email_idstring | null
contact_idstring | null
full_namestring | null
web_idinteger | null
email_typestring | null
statusstring | null
unsubscribe_reasonstring | null
consents_to_one_to_one_messagingboolean | null
merge_fieldsobject | null
interestsobject | null
statsobject | null
ip_signupstring | null
timestamp_signupstring | null
ip_optstring | null
timestamp_optstring | null
member_ratinginteger | null
last_changedstring | null
languagestring | null
vipboolean | null
email_clientstring | null
locationobject | null
sourcestring | null
tags_countinteger | null
tagsarray | null
list_idstring | null

Meta

Field NameTypeDescription
total_itemsinteger

List Members Get

Get information about a specific list member

Python SDK

await mailchimp.list_members.get(
list_id="<str>",
subscriber_hash="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "list_members",
"action": "get",
"params": {
"list_id": "<str>",
"subscriber_hash": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
subscriber_hashstringYesThe MD5 hash of the lowercase version of the list member's email address
Response Schema

Records

Field NameTypeDescription
idstring
email_addressstring | null
unique_email_idstring | null
contact_idstring | null
full_namestring | null
web_idinteger | null
email_typestring | null
statusstring | null
unsubscribe_reasonstring | null
consents_to_one_to_one_messagingboolean | null
merge_fieldsobject | null
interestsobject | null
statsobject | null
ip_signupstring | null
timestamp_signupstring | null
ip_optstring | null
timestamp_optstring | null
member_ratinginteger | null
last_changedstring | null
languagestring | null
vipboolean | null
email_clientstring | null
locationobject | null
sourcestring | null
tags_countinteger | null
tagsarray | null
list_idstring | null

Reports

Reports List

Get campaign reports

Python SDK

await mailchimp.reports.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "reports",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
type"regular" | "plaintext" | "absplit" | "rss" | "variate"NoThe campaign type
before_send_timestringNoRestrict the response to campaigns sent before the set time
since_send_timestringNoRestrict the response to campaigns sent after the set time
Response Schema

Records

Field NameTypeDescription
idstring
campaign_titlestring | null
typestring | null
list_idstring | null
list_is_activeboolean | null
list_namestring | null
subject_linestring | null
preview_textstring | null
emails_sentinteger | null
abuse_reportsinteger | null
unsubscribedinteger | null
send_timestring | null
rss_last_sendstring | null
bouncesobject | null
forwardsobject | null
opensobject | null
clicksobject | null
facebook_likesobject | null
industry_statsobject | null
list_statsobject | null
ecommerceobject | null
delivery_statusobject | null

Meta

Field NameTypeDescription
total_itemsinteger

Reports Get

Get report details for a specific sent campaign

Python SDK

await mailchimp.reports.get(
campaign_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "reports",
"action": "get",
"params": {
"campaign_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
campaign_idstringYesThe unique id for the campaign
Response Schema

Records

Field NameTypeDescription
idstring
campaign_titlestring | null
typestring | null
list_idstring | null
list_is_activeboolean | null
list_namestring | null
subject_linestring | null
preview_textstring | null
emails_sentinteger | null
abuse_reportsinteger | null
unsubscribedinteger | null
send_timestring | null
rss_last_sendstring | null
bouncesobject | null
forwardsobject | null
opensobject | null
clicksobject | null
facebook_likesobject | null
industry_statsobject | null
list_statsobject | null
ecommerceobject | null
delivery_statusobject | null

Email Activity

Email Activity List

Get a list of member's subscriber activity in a specific campaign

Python SDK

await mailchimp.email_activity.list(
campaign_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "email_activity",
"action": "list",
"params": {
"campaign_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
campaign_idstringYesThe unique id for the campaign
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
sincestringNoRestrict results to email activity events that occur after a specific time
Response Schema

Records

Field NameTypeDescription
campaign_idstring | null
list_idstring | null
list_is_activeboolean | null
email_idstring | null
email_addressstring | null
activityarray | null

Meta

Field NameTypeDescription
total_itemsinteger

Automations

Automations List

Get a summary of an account's classic automations

Python SDK

await mailchimp.automations.list()

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "automations",
"action": "list"
}'

Parameters

Parameter NameTypeRequiredDescription
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
before_create_timestringNoRestrict the response to automations created before this time
since_create_timestringNoRestrict the response to automations created after this time
before_start_timestringNoRestrict the response to automations started before this time
since_start_timestringNoRestrict the response to automations started after this time
status"save" | "paused" | "sending"NoRestrict the results to automations with the specified status
Response Schema

Records

Field NameTypeDescription
idstring
create_timestring | null
start_timestring | null
statusstring | null
emails_sentinteger | null
recipientsobject | null
settingsobject | null
trackingobject | null
report_summaryobject | null

Meta

Field NameTypeDescription
total_itemsinteger

Tags

Tags List

Search for tags on a list by name

Python SDK

await mailchimp.tags.list(
list_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "tags",
"action": "list",
"params": {
"list_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
namestringNoThe search query used to filter tags
Response Schema

Records

Field NameTypeDescription
idinteger
namestring | null

Meta

Field NameTypeDescription
total_itemsinteger

Interest Categories

Interest Categories List

Get information about a list's interest categories

Python SDK

await mailchimp.interest_categories.list(
list_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "interest_categories",
"action": "list",
"params": {
"list_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
Response Schema

Records

Field NameTypeDescription
list_idstring | null
idstring
titlestring | null
display_orderinteger | null
typestring | null

Meta

Field NameTypeDescription
total_itemsinteger

Interest Categories Get

Get information about a specific interest category

Python SDK

await mailchimp.interest_categories.get(
list_id="<str>",
interest_category_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "interest_categories",
"action": "get",
"params": {
"list_id": "<str>",
"interest_category_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
interest_category_idstringYesThe unique ID for the interest category
Response Schema

Records

Field NameTypeDescription
list_idstring | null
idstring
titlestring | null
display_orderinteger | null
typestring | null

Interests

Interests List

Get a list of this category's interests

Python SDK

await mailchimp.interests.list(
list_id="<str>",
interest_category_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "interests",
"action": "list",
"params": {
"list_id": "<str>",
"interest_category_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
interest_category_idstringYesThe unique ID for the interest category
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
Response Schema

Records

Field NameTypeDescription
category_idstring | null
list_idstring | null
idstring
namestring | null
subscriber_countstring | null
display_orderinteger | null

Meta

Field NameTypeDescription
total_itemsinteger

Interests Get

Get interests or group names for a specific category

Python SDK

await mailchimp.interests.get(
list_id="<str>",
interest_category_id="<str>",
interest_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "interests",
"action": "get",
"params": {
"list_id": "<str>",
"interest_category_id": "<str>",
"interest_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
interest_category_idstringYesThe unique ID for the interest category
interest_idstringYesThe specific interest or group name
Response Schema

Records

Field NameTypeDescription
category_idstring | null
list_idstring | null
idstring
namestring | null
subscriber_countstring | null
display_orderinteger | null

Segments

Segments List

Get information about all available segments for a specific list

Python SDK

await mailchimp.segments.list(
list_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "segments",
"action": "list",
"params": {
"list_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
typestringNoLimit results based on segment type
since_created_atstringNoRestrict results to segments created after the set time
before_created_atstringNoRestrict results to segments created before the set time
since_updated_atstringNoRestrict results to segments updated after the set time
before_updated_atstringNoRestrict results to segments updated before the set time
Response Schema

Records

Field NameTypeDescription
idinteger
namestring | null
member_countinteger | null
typestring | null
created_atstring | null
updated_atstring | null
optionsobject | null
list_idstring | null

Meta

Field NameTypeDescription
total_itemsinteger

Segments Get

Get information about a specific segment

Python SDK

await mailchimp.segments.get(
list_id="<str>",
segment_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "segments",
"action": "get",
"params": {
"list_id": "<str>",
"segment_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
segment_idstringYesThe unique id for the segment
Response Schema

Records

Field NameTypeDescription
idinteger
namestring | null
member_countinteger | null
typestring | null
created_atstring | null
updated_atstring | null
optionsobject | null
list_idstring | null

Segment Members

Segment Members List

Get information about members in a saved segment

Python SDK

await mailchimp.segment_members.list(
list_id="<str>",
segment_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "segment_members",
"action": "list",
"params": {
"list_id": "<str>",
"segment_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
list_idstringYesThe unique ID for the list
segment_idstringYesThe unique id for the segment
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
Response Schema

Records

Field NameTypeDescription
idstring
email_addressstring | null
unique_email_idstring | null
email_typestring | null
statusstring | null
merge_fieldsobject | null
interestsobject | null
statsobject | null
ip_signupstring | null
timestamp_signupstring | null
ip_optstring | null
timestamp_optstring | null
member_ratinginteger | null
last_changedstring | null
languagestring | null
vipboolean | null
email_clientstring | null
locationobject | null
list_idstring | null

Meta

Field NameTypeDescription
total_itemsinteger

Unsubscribes

Unsubscribes List

Get information about members who have unsubscribed from a specific campaign

Python SDK

await mailchimp.unsubscribes.list(
campaign_id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/connectors/sources/{your_source_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "unsubscribes",
"action": "list",
"params": {
"campaign_id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
campaign_idstringYesThe unique id for the campaign
countintegerNoThe number of records to return
offsetintegerNoUsed for pagination
Response Schema

Records

Field NameTypeDescription
email_idstring | null
email_addressstring | null
merge_fieldsobject | null
vipboolean | null
timestampstring | null
reasonstring | null
campaign_idstring | null
list_idstring | null
list_is_activeboolean | null

Meta

Field NameTypeDescription
total_itemsinteger