Email compliance events
Contains event body information specific to email compliance events.
Email bounce event
An event that occurs when an email could not be delivered to a particular address. The bounce_class can provide more information about why the message bounced.
- body objectREQUIRED
Contains the event subtype and additional properties about the event.
OBJECT PROPERTIES- event_type stringREQUIRED
Possible values:
bounce - identifiers objectREQUIREDOBJECT PROPERTIES
- address string
The email address registered.
- properties objectREQUIREDOBJECT PROPERTIES
- bounce_class integer
The bounce classification as specified in SparkPost.
- bounce_event_type string
Possible values:
bounce - email string
The email address that bounced.
- sender string
The address that the bounced email came from (typically the sender address for your project in Airship).
- subject string
The subject line of the bounced email.
- device objectREQUIRED
Holds information about the email
OBJECT PROPERTIESdevice(an individual email channel) the event occurred against.- channel string
The unique, platform-agnostic channel identifier for a device.
- delivery_address stringREQUIRED
The email address of the channel the event occurred against.
- device_type stringREQUIRED
Email compliance events use the
EMAILdevice type.Possible values:
EMAIL - named_user string
The Named User that the channel is associated with; appears only if the channel is associated with a Named User.
Used in:
Examples
Example email bounce event
{
"id": "9781ff2e-fa4a-4fa8-bd9d-41f318c48963",
"offset": "1000001778910",
"occurred": "2018-11-28T00:02:41.794Z",
"processed": "2018-11-28T00:02:45.270Z",
"device": {
"channel": "5a39b6d8-0a5a-4c2b-a4a0-3d4a71e5254b",
"device_type": "EMAIL",
"delivery_address": "bademail@example.com"
},
"body": {
"event_type": "bounce",
"properties": {
"bounce_event_type": "bounce",
"sender": "msprvs1=17870ayYKWpBI=bounces-179492-4@example.com",
"subject": "Red Means Go",
"email": "bademail@example.com",
"bounce_class": "10"
}
},
"type": "COMPLIANCE"
}
Email Create and Send event
An event that occurs for email addresses used as a part of a Create and Send.
OBJECT PROPERTIES- body objectREQUIRED
Contains the event subtype and additional properties about the event.
OBJECT PROPERTIES- event_type stringREQUIRED
Possible values:
create_and_send - identifiers objectREQUIREDOBJECT PROPERTIES
- address stringREQUIRED
The email address a message was sent to using Create and Send.
- properties objectREQUIRED
Properties for an email Create and Send event.
OBJECT PROPERTIES- channel_registered booleanREQUIRED
If true, a new channel was created to represent the identifiers in the event. If false, the address was already registered to Airship.
- commercial_opted_in string
The date and time when the
addressopted into commercial email messages. - transactional_opted_in string
The date and time when the
addressopted into transactional email messages.
- device objectREQUIRED
Holds information about the email
OBJECT PROPERTIESdevice(an individual email channel) the event occurred against.- channel string
The unique, platform-agnostic channel identifier for a device.
- delivery_address stringREQUIRED
The email address of the channel the event occurred against.
- device_type stringREQUIRED
Email compliance events use the
EMAILdevice type.Possible values:
EMAIL - named_user string
The Named User that the channel is associated with; appears only if the channel is associated with a Named User.
Used in:
Examples
Example email Create and Send event
{
"id": "adf8794c-c3c3-4507-9ea3-1a554ed4b94f",
"offset": "1000001778141",
"occurred": "2018-11-27T23:20:12.167Z",
"processed": "2018-11-27T23:20:12.443Z",
"device": {
"channel": "b8519372-54ff-456d-9819-7faa92fe8b9d",
"device_type": "EMAIL",
"delivery_address": "new.address@example.com"
},
"body": {
"event_type": "create_and_send",
"identifiers": {
"address": "new.address@example.com"
},
"properties": {
"channel_registered": "true",
"commercial_opted_in": "2018-10-12T12:12:12"
}
},
"type": "COMPLIANCE"
}
Email registration event
An event that occurs when users register to receive email messages.
OBJECT PROPERTIES- body objectREQUIRED
Contains the event subtype and additional properties about the event.
OBJECT PROPERTIES- event_type stringREQUIRED
Possible values:
registration - identifiers objectREQUIREDOBJECT PROPERTIES
- address string
The email address registered.
- properties objectREQUIREDOBJECT PROPERTIES
- commercial_opted_in string
The date and time when the user opted into commercial email messages.
- registration_type stringREQUIRED
createindicates that a channel was created in Airship.updaterepresents aPUTcall to the email channel registration API.Possible values:
create,update
- device objectREQUIRED
Holds information about the email
OBJECT PROPERTIESdevice(an individual email channel) the event occurred against.- channel string
The unique, platform-agnostic channel identifier for a device.
- delivery_address stringREQUIRED
The email address of the channel the event occurred against.
- device_type stringREQUIRED
Email compliance events use the
EMAILdevice type.Possible values:
EMAIL - named_user string
The Named User that the channel is associated with; appears only if the channel is associated with a Named User.
Used in:
Examples
Example email registration event
{
"id": "8058bfd3-9081-4f48-845c-809bf5462ca4",
"offset": "1000000739139",
"occurred": "2018-12-18T21:24:11.836Z",
"processed": "2018-12-18T21:24:12.608Z",
"device": {
"channel": "93f32fb8-0e40-440b-8944-2f9ef933ca88",
"device_type": "EMAIL"
},
"body": {
"event_type": "registration",
"identifiers": {
"address": "new.user@example.com"
},
"properties": {
"commercial_opted_in": "2018-10-20T12:00:00.000Z",
"registration_type": "create"
}
},
"type": "COMPLIANCE"
}
Email unsubscribe event
A compliance event representing a user who unsubscribed from your email notifications.
OBJECT PROPERTIES- body objectREQUIRED
Contains the event subtype and additional properties about the event.
OBJECT PROPERTIES- event_type stringREQUIRED
Unsubscribe events are considered
registrationevents; theregistration_typeindicates the type of registration occurring.Possible values:
registration - identifiers objectREQUIREDOBJECT PROPERTIES
- address string
The email address registered.
- properties objectREQUIREDOBJECT PROPERTIES
- message_type stringREQUIRED
The message type that the user unsubscribed from.
Possible values:
commercial - registration_type stringREQUIRED
Possible values:
unsubscribe
- device objectREQUIRED
Holds information about the email
OBJECT PROPERTIESdevice(an individual email channel) the event occurred against.- channel string
The unique, platform-agnostic channel identifier for a device.
- delivery_address stringREQUIRED
The email address of the channel the event occurred against.
- device_type stringREQUIRED
Email compliance events use the
EMAILdevice type.Possible values:
EMAIL - named_user string
The Named User that the channel is associated with; appears only if the channel is associated with a Named User.
Used in:
Examples
Example email unsubscribe event
{
"id": "bd8c90d6-5704-4438-8075-7530d06c4cba",
"offset": "1000001778792",
"occurred": "2018-11-27T23:47:54.641Z",
"processed": "2018-11-27T23:47:55.516Z",
"device": {
"channel": "b8519372-54ff-456d-9819-7faa92fe8b9d",
"device_type": "EMAIL",
"delivery_address": "former.user@example.com"
},
"body": {
"event_type": "registration",
"properties": {
"message_type": "commercial",
"registration_type": "unsubscribe"
}
},
"type": "COMPLIANCE"
}