GET a Single Email Campaign Activity
Changed onUse this method to return a specific email campaign activity. Each email campaign activity contains the email content, metadata, and styling information of an email. Email campaign activities can also contain either contact lists or segments. Constant Contact uses this information to determine who to send the email campaign activity to when you schedule it. You cannot get email campaign activities that have a REMOVED status.
Request
- Base URLhttps://api.cc.email/v3
- URLhttps://api.cc.email/v3/emails/activities/{campaign_activity_id}
- Auth
- OAuth 2Implicit: https://authz.constantcontact.com/oauth2/default/v1/authorizeScopes: campaign_data
- or OAuth 2Authorization code: https://authz.constantcontact.com/oauth2/default/v1/authorizeToken URL: https://authz.constantcontact.com/oauth2/default/v1/token scopes: campaign_data
Path parameters
The unique ID for an email campaign activity.
Query parameters
Use the include query parameter to enter a comma separated list of additional email campaign activity properties for the V3 API to return. Valid values are physical_address_in_footer, permalink_url, html_content, and document_properties.
Response
Request successful.
Example response
{
"campaign_activity_id": "4c08372c-957a-48b5-bc45-72c7f00796cd",
"campaign_id": "8987dc1a-48ef-433a-b836-7ca4f9aa3481",
"role": "primary_email",
"contact_list_ids": [
"da10f460-3072-11e9-b282-fa163e6b01c1"
],
"segment_ids": [
1
],
"current_status": "DRAFT",
"format_type": 5,
"from_email": "jdodge@constantcontact.com",
"from_name": "Jake Dodge",
"reply_to_email": "jdodge@constantcontact.com",
"subject": "Holiday Special Newsletter",
"html_content": "<html><body>[[trackingImage]] <a href=\"http://www.constantcontact.com\">Visit ConstantContact.com!</a> </body></html>",
"permalink_url": "https://conta.cc/2GaQ8AY",
"preheader": "You don't want to miss this.",
"physical_address_in_footer": {
"address_line1": "123 Maple Street",
"address_line2": "Unit 1",
"address_optional": "Near Boston Fire Station",
"city": "Boston",
"country_code": "US",
"country_name": "United States",
"organization_name": "Jake Dodge's Pancakes",
"postal_code": "02451",
"state_code": "MA",
"state_non_us_name": "Victoria"
},
"document_id": "21babb03-8385-4739-b9cc-n6cce44633a7",
"document_properties": {
"style_content": ".white{color: #ffffff;}",
"letter_format": "XHTML",
"greeting_salutation": "Dear",
"greeting_name_type": "F",
"greeting_secondary": "Greetings!",
"subscribe_link_enabled": "false",
"subscribe_link_name": "Subscribe to my email list!",
"text_content": "<Text><Greeting/></Text>",
"permission_reminder_enabled": "false",
"permission_reminder": "Hi, just a reminder that you're receiving this email because you have expressed an interest in our company.",
"view_as_webpage_enabled": "false",
"view_as_webpage_text": "Having trouble viewing this email?",
"view_as_webpage_link_name": "Click here to view this email as a web page",
"forward_email_link_name": "Forward email"
}
}Changes
- info
the endpoint scheme security
api_keywas removed from the API
- info