get_campaign_content
Retrieve the plain text and optionally HTML body of a sent Mailchimp campaign for content audits, analysis, or repurposing.
Instructions
Read the rendered body copy of a campaign (plain text, optionally HTML).
Use to retrieve the email copy that was actually sent, for content audits, analysis, or repurposing. Use get_campaign_details for settings/metadata (subject line, sender) and get_campaign_report for post-send performance. Use list_campaigns or search_campaigns to find campaign IDs.
Authenticated via API key. Subject to Mailchimp API rate limits (max 10 concurrent requests). Read-only, safe to retry.
Args: campaign_id: The Mailchimp campaign ID (e.g. 'abc123def4'). Obtain from list_campaigns or search_campaigns. This is the API id, not the numeric web_id from the dashboard URL. include_html: When True, also return the raw HTML body. Defaults to False so responses stay compact; plain_text is enough for most content work.
Returns: JSON with campaign_id and plain_text (the plain-text body); html is added only when include_html=True. For A/B (variate) campaigns, a variations array is included with one entry per content variation: {label, plain_text, and html when include_html=True}. Returns error if the campaign_id is invalid or the campaign has no content.
Example: get_campaign_content(campaign_id="abc123def4") -> {"campaign_id": "abc123def4", "plain_text": "Hi |FNAME| ..."}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_id | Yes | ||
| include_html | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |