Skip to content

Transactional Email Event Report

This example retrieves transactional email engagement event records for a given period. Each record reflects a recipient interaction (e.g., open, click, bounce, unsubscribe) and includes client/device metadata, campaign context, and a link back to the original delivery.

For complete field definitions and advanced options, see the GraphQL API Reference.

Query

query transactionalEmailEventReport (
  $customerId: String!
  $datePeriod: DatePeriod!
  $pageIndex: Int
  $pageSize: Int
  $sort: SortDirection
) {
  transactionalEmailEventReport(
    customerId: $customerId
    datePeriod: $datePeriod
    page: $pageIndex
    size: $pageSize
    sort: $sort
  ) {
    content {
      eventId
    dataCenter
    customerId
    userId
    usageId
    usageMsgFrom
    usageMsgFromDomain
    usageMsgTo
    usageMsgToDomain
    costCenter
    campaign
    eventTime
    eventType
    eventSubType
    eventClickUrl
    eventClientName
    eventClientVersion
    eventClientIsMail
    eventUserAgent
    eventOsName
    eventOsVersion
    reference
    }
    pageIndex
    pageSize
    hasMoreElements
  }
}

Variables

{
	"customerId": "99999",
	"datePeriod": {
		"fromIncluded": "2025-06-05T00:00:00.000Z",
		"toExcluded": "2025-07-07T10:00:00.000Z"
	},
	"pageIndex": 0,
	"pageSize": 3,
	"sort": "ASC"
}

Response

{
	"data": {
		"transactionalEmailEventReport": {
			"content": [
				{
          "eventId": "b0fd34e4-8e34-430e-a4ca-96f3d70448d7",
          "dataCenter": "fraix1",
          "customerId": "99999",
          "userId": "99999_Retarus",
          "usageId": "b0fd34e4-8e34-430e-a4ca-96f3d70448d7#329a85ae#d6ede1ff",
          "usageMsgFrom": "message_from@example.com",
          "usageMsgFromDomain": "example.com",
          "usageMsgTo": "message_tog@example.com",
          "usageMsgToDomain": "example.com",
          "costCenter": "1234",
          "campaign": "1234",
          "eventTime": "2025-07-14T13:54:23.038Z",
          "eventType": "OPEN",
          "eventSubType": "MAIL_OPENED",
          "eventClickUrl": null,
          "eventClientName": "Outlook",
          "eventClientVersion": "2016",
          "eventClientIsMail": true,
          "eventUserAgent": "Mozilla/4.0 (compatible; ms-office; MSOffice 16)",
          "eventOsName": "Other",
          "eventOsVersion": "Unknown",
          "reference": "1234"
        },
				...
			],
			"pageIndex": 0,
			"pageSize": 3,
			"hasMoreElements": true
		}
	}
}

Note
Additional records (up to the requested pageSize) are omitted for brevity.

Field reference

FieldDescription
eventIdUnique identifier for the engagement event
dataCenterData center where the event was processed
customerIdRetarus customer account identifier
userIdUser account identifier associated with the original email
usageIdUnique usage record identifier linking to the original email delivery
usageMsgFromOriginal sender email address from the delivered message
usageMsgFromDomainDomain portion of the original sender email address
usageMsgToOriginal recipient email address from the delivered message
usageMsgToDomainDomain portion of the original recipient email address
costCenterCost center for billing (null if not specified)
campaignMarketing campaign identifier
eventTimeUTC timestamp when the engagement event occurred
eventTypeHigh-level event category
eventSubTypeDetailed event specification
eventClickUrlFull URL that was clicked (null for non-click events)
eventClientNameEmail client or application name
eventClientVersionEmail client/application version
eventClientIsMailWhether the client is a dedicated mail application
eventUserAgentFull user agent string captured for the event
eventOsNameOperating system name
eventOsVersionOperating system version
referenceCustomer-provided reference for tracking purposes