Fetch A Campaign
get
/rest/api/v1.3/campaigns/{campaignName}
Use this interface to get an existing EMD Email campaign object. The response returns the campaign object, which includes the campaign ID and the campaign's other properties. The links array contains the campaign object's related API operations, specific to the campaign name where applicable.
Request
Supported Media Types
- application/x-www-form-urlencoded
Path Parameters
-
campaignName: string
Name of the campaign to be fetched.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Campaign
Type:
object
Title:
Show Source
Campaign
-
attachmentPaths(optional):
array attachmentPaths
Attachments for the campaign.
-
autoCloseOption(optional):
string
Allowed Values:
[ "NO_AUTO_CLOSE", "AUTO_CLOSE_X_DAYS_AFTER_LAUNCH", "AUTO_CLOSE_X_DAYS_AFTER_LAST_RESPONSE", "AUTO_CLOSE_ON_DATE" ]
Auto close options for this campaign. -
autoCloseValue(optional):
string
This represents number of days if autoCloseOption is AUTO_CLOSE_X_DAYS_AFTER_LAUNCH or AUTO_CLOSE_X_DAYS_AFTER_LAST_RESPONSE.This represents date if autoCloseOption is AUTO_CLOSE_ON_DATE.
-
bccEmail(optional):
string
Bcc Email Address for the campaign.
-
campaignVariables(optional):
object campaignVariables
Additional Properties Allowed: additionalPropertiesMap
of Name and value of campaign variables which are used as default values for text replacement. -
channelList(optional):
string
App channel list name which contains the audience for this campaign.
-
closedCampaignURL(optional):
string
The URL to redirect to if a recipient clicks on a link of an already closed campaign.
-
description(optional):
string
Description of the campaign.
-
enableExternalTracking(optional):
boolean
Enable to use third-party web analytics service that use tracking parameters appended to the URLs.
-
enableLinkTracking(optional):
boolean
Enable to track the links in a campaign.
-
externalCampaignCode(optional):
string
External campaign code.
-
externalTrackingParams(optional):
object externalTrackingParams
Additional Properties Allowed: additionalPropertiesMap
of Name and value of external tracking parameters. -
filterPaths(optional):
array filterPaths
Paths of filter to be used for this campaign. This can be used to select a group of customers to receive specific messages. Either standard filter or SQL View can be specified.
-
folderName:
string
Folder name for the campaign.
-
fromEmail(optional):
string
From Email Address for the campaign.
-
fromName(optional):
string
From Name for the campaign.
-
htmlMessagePath(optional):
string
HTML message folder and path for the campaign.
-
linkTablePath(optional):
string
Link table to be included in this campaign.
-
listName(optional):
string
Profile list name which contains the audience for this campaign.
-
locale(optional):
string
The default recipient locale for this account.
-
marketingProgram(optional):
string
Type of marketing program. The values are defined by the Account Administrator.
-
marketingStrategy(optional):
string
Type of marketing strategy. The values are defined by the Account Administrator.
-
name:
string
Name of the campaign.
-
proofListPath(optional):
string
Before sending the campaign to customers, send it to proof list for testing.
-
purpose(optional):
string
Allowed Values:
[ "PROMOTIONAL", "TRANSACTIONAL" ]
Purpose of the campaign. -
refiningDataSourcePath(optional):
string
Path of additional data sources to be used for this campaign.
-
replyToEmail(optional):
string
Reply To Email Address for the campaign.
-
salesForceCampaignId(optional):
string
Salesforce campaign id.
-
seedListPath(optional):
string
Seed lists recipients receive the campaign when it is launched but are excluded from live report.
-
segmentPaths(optional):
array segmentPaths
Segmentations are used to divide a list into segments using attributes of a profile extension table or profile list.
-
segmentTrackingColumnName(optional):
string
Column name for tracking segments.
-
sendTextIfHTMLUnknown(optional):
boolean
If HTML ability is unknown, this option allows sending MIME messages to ensure message text is displayed correctly.
-
subject(optional):
string
Campaign Subject.
-
supplementaryCampaignDataSourcePaths(optional):
array supplementaryCampaignDataSourcePaths
Supplementary data sources can be used for inclusions or exclusions of the audience.
-
supplementaryProofDataSourcePaths(optional):
array supplementaryProofDataSourcePaths
Supplementary proof data sources can be used for inclusions or exclusions from proof list.
-
supplementarySeedDataSourcePaths(optional):
array supplementarySeedDataSourcePaths
Supplementary seed data sources can be used for inclusions or exclusions from seed list.
-
suppressionListPaths(optional):
array suppressionListPaths
This is used to exclude recipients from data sources.
-
textMessagePath(optional):
string
Text message folder and path for the campaign.
-
trackConversions(optional):
boolean
This applies only when link tracking is enabled for the campaign. This option can be used to record conversion when clicking a link and following through a specific web page.
-
trackHTMLOpens(optional):
boolean
Enable tracking when each recipient with HTML capability opened the email.
-
type(optional):
string
Allowed Values:
[ "EMAIL", "PUSH", "SMS", "MMS", "PUSHIOCAMPAIGN" ]
Type of the campaign. -
unsubscribeFormName(optional):
string
Form name to be used for unsubscribing..
-
unsubscribeOption(optional):
string
Allowed Values:
[ "NO_OPTOUT_BUTTON", "OPTOUT_SINGLE_CLICK", "OPTOUT_FORM" ]
The unsubscribe option for this campaign. -
useUTF8(optional):
boolean
Use UTF8 encoding for messages.
Nested Schema : campaignVariables
Type:
object
Additional Properties Allowed
Show Source
Map of Name and value of campaign variables which are used as default values for text replacement.
Nested Schema : externalTrackingParams
Type:
object
Additional Properties Allowed
Show Source
Map of Name and value of external tracking parameters.
Nested Schema : filterPaths
Type:
array
Paths of filter to be used for this campaign. This can be used to select a group of customers to receive specific messages. Either standard filter or SQL View can be specified.
Show Source
Nested Schema : segmentPaths
Type:
array
Segmentations are used to divide a list into segments using attributes of a profile extension table or profile list.
Show Source
Nested Schema : supplementaryCampaignDataSourcePaths
Type:
array
Supplementary data sources can be used for inclusions or exclusions of the audience.
Show Source
Nested Schema : supplementaryProofDataSourcePaths
Type:
array
Supplementary proof data sources can be used for inclusions or exclusions from proof list.
Show Source
Nested Schema : supplementarySeedDataSourcePaths
Type:
array
Supplementary seed data sources can be used for inclusions or exclusions from seed list.
Show Source
Nested Schema : suppressionListPaths
Type:
array
This is used to exclude recipients from data sources.
Show Source
Examples
Use this interface to get an existing EMD Email campaign object.
Required request headers:
FIELDS | DESCRIPTION |
---|---|
Authorization | <AUTH_TOKEN> |
Content-Type | application/json |
Sample Request URL:
/rest/api/v1.3/campaigns/example_campaign
Sample Response
{ "id": 1040, "name": "example_campaign", "folderName": "Folder1", "type": "EMAIL", "purpose": "PROMOTIONAL", "listName": "MasterList", "htmlMessagePath": "/messagelibrary/email/1040/Message.htm", "textMessagePath": "/messagelibrary/email/1040/Message.itl.txt", "enableLinkTracking": false, "attachmentPaths": [ "/contentlibrary/example/docs/my.htm" ], "enableExternalTracking": false, "subject": "EMD Camp", "fromName": "api.user", "fromEmail": "api.user@responsys.com", "replyToEmail": "api.user@responsys.com", "useUTF8": false, "locale": "en", "trackHTMLOpens": true, "trackConversions": false, "sendTextIfHTMLUnknown": false, "unsubscribeOption": "OPTOUT_SINGLE_CLICK", "autoCloseOption": "AUTO_CLOSE_X_DAYS_AFTER_LAST_RESPONSE", "autoCloseValue": "180", "links": [ { "rel": "self", "href": "/rest/api/v1.3/campaigns/EMD Camp1", "method": "GET" }, { "rel": "update", "href": "/rest/api/v1.3/campaigns/EMD Camp1", "method": "PUT" }, { "rel": "create", "href": "/rest/api/v1.3/campaigns", "method": "POST" } ] }