Skip to navigation

Get campaign content

Get the the HTML and plain-text content for a campaign.

Authentication

AuthorizationBearer

Authorization using a Mailchimp API key (a.k.a. Bearer token)

OR
AuthorizationBearer
Authorization using OAuth

Path parameters

campaign_idstringRequired
The unique id for the campaign.

Query parameters

fieldslist of stringsOptional

A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.

exclude_fieldslist of stringsOptional

A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.

Response

This endpoint returns an object.
archive_htmlstringOptional
The Archive HTML for the campaign.
htmlstringOptional
The raw HTML for the campaign.
plain_textstringOptional

The plain-text portion of the campaign. If left unspecified, we'll generate this automatically.

variate_contentslist of objectsOptional
Content options for multivariate campaigns.