Event Triggered Email

Event Triggered Email is a service for sending email to a recipient in response to a specific event or transaction (and not as part of a bulk marketing campaign).

Parameters

Name Parameter
Type
Allow
Multiple
Required/
Optional
Data Type Description
Authorization: Header False Required String Insert your generated access token.
("Bearer {access token}")
toAddress False Required JSON Specify the email address to send the message to.
ccAddressList False Optional JSON Specify email addresses that to CC.
(Limited 5)
fromAddress False Optional JSON Specify the verified sender email address.
(Default = Template Selected/Template Creator)
fromDisplayName False Optional JSON Specify the verified sender name.
replyToAddress False Optional JSON Specify the verified reply-to email address.
(Default = "fromAddress")
subjectLine False Optional JSON (Max 90 Characters) Specify a subject for the message.
(Default = Template Subject)
personalizationDataMap False Optional JSON A key/value map specifying the values of personalization inside message template.
previewText False Optional JSON (Max 240 Characters) Specify the preview text.
(Default = Template Preview Text)
transactional False Optional JSON Specify "true" if purchased transactional email and want to indicates that this message conforms to the legal definition of transactional email.
externalId False Optional JSON (Max 128 Characters) Specify an identifier from your system.
(Ex. Order Number or Confirmation Number)
tagList False Optional JSON (Max 48 Characters) Specify a tag for grouping visible reports of similar tags for used template.
(Limit 1 Tag)
trackOpens False Required JSON Indicates if you want message opens tracked.
("true","false")
trackClicks False Required JSON Indicates if you want message clicks tracked.
("true","false")

Below is the full JSON using the parameters above.

{
 "envelope": {
   "toAddress": "jane.doe@act-on.com",
   "ccAddressList": ["john.doe@act-on.com"],
   "fromAddress": "john@act-on.com",
   "fromDisplayName": "John from Act-On",
   "replyToAddress": "noreply@act-on.com"
 },
 "content": {
   "subjectLine": "Your order has shipped.",
   "personalizationDataMap": {
     "orderNumber": "3423423-234234",
     "trackingLink": "https://www.act-on.com/tracking/12313123123213",
     "name": "Jane Doe"
   },
   "previewText": "Great news! Your order is on the way."
 },
 "metadata": {
   "transactional": true,
   "externalId": "245-lfkg-23423-lkj",
   "tagList": ["shipping_notifications"]
 },
 "actions": {
   "trackOpens": true,
   "trackClicks": true,
   "deliveryWhenDelayed": "TRUE"
 }
}

Response

Code Examples

cURLPython