POST emails/copy
Create a copy an existing email and return it as a draft
* required
Parameters
| Name | Type | Description |
|---|---|---|
| emailID * | integer | Unique ID of email |
Response Data
Returns a fully populated email object
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| abSplit | object |
A/B split details
|
||||||||||||||||||||||||||||||||||||||||||||||||
| approval | object |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| automation | object |
Automation settings. Automated emails cannot be managed via the API.
|
||||||||||||||||||||||||||||||||||||||||||||||||
| bccAddress | string | Email address that will receive a BCC (blind carbon copy) for every recipient. | ||||||||||||||||||||||||||||||||||||||||||||||||
| campaignIDs | array[integer] | Campaigns the email is assigned to | ||||||||||||||||||||||||||||||||||||||||||||||||
| content | object |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| dateAdded | datetime | Date record was added | ||||||||||||||||||||||||||||||||||||||||||||||||
| dateModified | datetime | Date record was modified | ||||||||||||||||||||||||||||||||||||||||||||||||
| dateSent | datetime | Date email was sent | ||||||||||||||||||||||||||||||||||||||||||||||||
| deliveryType | string | How email gets delivered. One of: Manual, Automated, Transactional | ||||||||||||||||||||||||||||||||||||||||||||||||
| emailID | integer | Unique ID of email | ||||||||||||||||||||||||||||||||||||||||||||||||
| fromAddress | string | Email address used in From header | ||||||||||||||||||||||||||||||||||||||||||||||||
| fromName | string | Name used in From header | ||||||||||||||||||||||||||||||||||||||||||||||||
| htmlVersionEditable | boolean | If true, no template is used and user provides the full HTML version of email (see htmlVersion property). The HTML Version must contain the unsubscribe link variable: $$url[unsubscribe]. The value of htmlVersionEditable cannot be changed on an existing email. | ||||||||||||||||||||||||||||||||||||||||||||||||
| ignoreContactSuppression | boolean | Indicates whether or not suppressed contacts can receive the email. Applies to transactional emails only. | ||||||||||||||||||||||||||||||||||||||||||||||||
| metrics | object |
Summary deliverability metrics
|
||||||||||||||||||||||||||||||||||||||||||||||||
| parentEmailID | integer | ID of parent email record | ||||||||||||||||||||||||||||||||||||||||||||||||
| preheader | string | Summary text that follows subject line in the inbox | ||||||||||||||||||||||||||||||||||||||||||||||||
| recipients | object |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| replyToAddress | string | Email address used in Reply-to header | ||||||||||||||||||||||||||||||||||||||||||||||||
| replyToName | string | Name used in Reply-to header | ||||||||||||||||||||||||||||||||||||||||||||||||
| schedule | object |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| status | string | Current status of email delivery. One of: Draft, Sent, Scheduled | ||||||||||||||||||||||||||||||||||||||||||||||||
| subject | string | Subject of email | ||||||||||||||||||||||||||||||||||||||||||||||||
| templateID | integer | ID of template used by email. Set htmlVersionEditable property to true to provide full HTML Version without using a template | ||||||||||||||||||||||||||||||||||||||||||||||||
| throttling | object |
Throttling settings
|
||||||||||||||||||||||||||||||||||||||||||||||||
| title | string | Title of email (for internal use) | ||||||||||||||||||||||||||||||||||||||||||||||||
| tracking | object |
Tracking options
|
||||||||||||||||||||||||||||||||||||||||||||||||
| userID | integer | ID of system user email belongs to |
Permissions
Method requires the Compose Mail permission
Example Calls
Copy an email
POST
/emails/copy
cURL
Copy
Response Data
API Console
The console uses production data, so BE CAREFUL!
POST
emails/copy