Preview Email Campaign
Return the stored rendered HTML, subject and preview text of this campaign exactly as saved, with the merge fields ({{...}}) it still contains. Shows version A unless variationIndex picks an A/B version (1 = B, 2 = C, ...). Sends no email; merge fields are filled in per contact at send time.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
emails/ campaigns. readonlyOAuthPrivate IntegrationSub-Account TokenRequest
Headers
API Version
v3v3Path Parameters
Location ID
ve9EPM428h8vShlRW1KTCampaign ID
67f15c2ae99226d5bcccb8f3Query Parameters
A/B version to preview: 1 = version B, 2 = version C, ... (see abVersions in Get Email Campaign). Omit for version A, the campaign itself. 404 when that version does not exist; nothing is created.
Possible values: >= 1 and <= 9
1Response
Success
Stored rendered HTML, exactly as saved.
<html><body><p>Hello {{contact.first_name}}</p></body></html>Stored subject. Empty if no subject was saved.
Holiday sale starts nowStored inbox preview text.
Our biggest offer of the yearDistinct {{...}} tokens remaining in HTML, subject or preview text after rendering. These may require send-time context.
["{{contact.first_name}}"]