Send Transactional Email (Track Engagement)

Our system also supports engagement tracking for each transactional email. Engagement can be tracked when a contact:

  • Opens transactional emails
  • Interacts with links in transactional emails

Engagement reports can then be viewed in our reports interface, offering valuable insights into how contacts interact with your transactional emails. These metrics aid in formulating and refining your communication strategy.

Method

Method URL
POST https://api.everlytic.net/transactional/email/v1/mail

Request Body

{
  "body": {
    "html": "<h1>Raw HTML Template</h1>"
  },
  "options": {
    "group_name": "Track Engagement",
    "track_opens": true,
    "track_links": true
  },
  "headers": {
    "subject": "Raw HTML Template",
    "from": {
      "email": "[email protected]",
      "name": "Joe Bloggs”
    },
    "to": [
      {
        "email": "[email protected]",
        "name": "John Doe”
      }
    ]
  }
}

Example Request

curl --location 'https://api.everlytic.net/transactional/email/v1/mail' \
--header 'Content-Type: application/json' \
--data-raw '{
  "body": {
    "html": "<h1>Raw HTML Template</h1>"
  },
  "options": {
    "group_name": "Track Engagement",
    "track_opens": true,
    "track_links": true
  },
  "headers": {
    "subject": "Raw HTML Template",
    "from": {
      "email": "[email protected]",
      "name": "Joe Bloggs”
    },
    "to": [
      {
        "email": "[email protected]",
        "name": "John Doe”
      }
    ]
  }
}'

Example Response

Transaction was sent successfully [200 OK]

{
  "transactions": [
    {
      "id": “d32189b7-e38b-44fb-8deb-c311ef124a64"
    }
  ]
}