campaigns

Get campaign content

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

get/3.0/campaigns/{campaign_id}/content

Request

Path parameters

campaign_idstring required

The unique id for the campaign.

Query parameters

fieldsstring[]

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

exclude_fieldsstring[]

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

Response

archive_htmlstring

The Archive HTML for the campaign.

htmlstring

The raw HTML for the campaign.

plain_textstring

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

Example response

{
  "archive_html": "<!DOCTYPE html><html xmlns=http://www.w3.org/1999/xhtml><head><meta http-equiv=Content-Type content=\"text/html; charset=UTF-8\"><title>My Subject</title><style type=text/css>body{background-color:#d0e4fe}</style><body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0 offset=0>",
  "variate_contents": [
    {
      "content_label": "Green header",
      "html": "<!DOCTYPE html><html xmlns=http://www.w3.org/1999/xhtml><head><meta http-equiv=Content-Type content=\"text/html; charset=UTF-8\"><title>*|MC:SUBJECT|*</title><style type=text/css>body{background-color:#d0e4fe}</style><body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0 offset=0>"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.