Skip to main content

EmailEvent

History log of all emails sent through the platform.

type EmailEvent implements Node {
id: ID!
date: DateTime!
fromEmail: String!
toEmails: [String!]
bccEmails: [String!]
ccEmails: [String!]
messageType: EmailEventMessageType!
emailPluginId: String!
template: String
error: String
success: Boolean
messageId: String
traceId: String
payload: JSON!
tenant: Tenant!
}

Fields​

EmailEvent.id ● ID! non-null scalar​

The Globally Unique ID of this object

EmailEvent.date ● DateTime! non-null scalar​

Created event time. Naming is used to keep consistent with OrderEvent/SellerEvent naming

EmailEvent.fromEmail ● String! non-null scalar​

EmailEvent.toEmails ● [String!] list scalar​

EmailEvent.bccEmails ● [String!] list scalar​

EmailEvent.ccEmails ● [String!] list scalar​

EmailEvent.messageType ● EmailEventMessageType! non-null enum​

EmailEvent.emailPluginId ● String! non-null scalar​

Plugin id (Plugin.PLUGIN_ID attribute) of email plugin

EmailEvent.template ● String scalar​

EmailEvent.error ● String scalar​

EmailEvent.success ● Boolean scalar​

Explicit send outcome. NULL on rows written before this field existed, where success had to be inferred from 'error' being empty — an inference that could not distinguish a delivered email from a crashed send.

EmailEvent.messageId ● String scalar​

Provider-side message identifier (Mailgun 'id'). Without it a row here cannot be correlated with the provider's own delivery logs.

EmailEvent.traceId ● String scalar​

OpenTelemetry trace ID (32 hex chars) of the request that triggered the send, so a row here can be opened directly in tracing.

EmailEvent.payload ● JSON! non-null scalar​

The email payload as JSON

EmailEvent.tenant ● Tenant! non-null object​

The tenant this email event belongs to

Interfaces​

Node interface​

An object with a Globally Unique ID

Member Of​

EmailEventCountableEdge object

Was this page helpful?