Mobile events

Exchange has identified and defined recognized events that typically happen when customers use their mobile devices to interact with a business.

As an endpoint publisher, call https://api-exchange-us-1.goacoustic.com/v1/event to publish the event. The following example illustrates a typical JSON payload. This example is based on the Application Install event.

POST v1/event
{  
  “channel” : “mobile”,
  “identifiers” : [            
    {
    “name” : “userId”,
    “value” : “ub0N4DZ5678NW”
    }
    ],
  “events” : [
    { 
    “code” : “application/installed”, 
    “timestamp” : “2015-03-07T20:14:12Z”, 
    “attributes” : [
      {
      “name” : “eventName”,            
      “value” : “App Install”,  
      “type” : “string” 
      } 
      {
      “name” : “appKey”,            
      “value” : “121779A453”,  
      “type” : “string” 
      }      
      {
      “name” : “channelId”,            
      “value” : “MB10074354692”,  
      “type” : “string” 
      }   
      {
      “name” : “description”,            
      “value” : “Front of the Line Tix app”,  
      “type” : “string” 
      }  
      ]
    }   
  ]
}

Application install

Information that relates to an individual installing a mobile app on a mobile device. The app is installed and the app registration information is received.

Event code: application/installed
Identifier: userId
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.
eventIdstringUnique ID to identify the type of event and enable lookup in the system.
eventNamestringApp InstallName of the event as it appears in the Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes

Application uninstall

Information that relates to an individual removing an app from a mobile device. Apple or Google informs Acoustic Exchange that the is no longer reachable by push. This might be due to uninstalling the mobile app.

Event code: application/unregistered
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.
eventIdstringUnique ID to identify the type of event and enable lookup in the system.
eventNamestringApp UninstallName of the event as it appears in the Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes

Application session start

Information that describes what happens when the mobile user opens the application for the first time in a configurable number of minutes.

Event code: application/sessionStarted
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.
eventIdstringUnique ID to identify the type of event and enable lookup in the system.
eventNamestringApp Session StartName of the event as it appears in the Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with the user ID, it represents the destination.Yes

Application session end

Information to describe when the mobile user session ends.

Event code: application/sessionEnded
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.
eventIdstringUnique ID to identify the type of event and enable lookup in the system.
eventNamestringApp Session EndName of the event as it appears in the Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes

Application notification push enabled

The information used to describe when a mobile user has used the application settings to opt into receiving push notifications.

Event code: application/appPushEnabled
Event attributes

Attribute nameData typeExampleDescriptionRequired
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.optional
eventNamestringApp Push Opt InName of the event as it appears in the Exchange user interface.Yes

Application notification push disabled

The information used to describe when a mobile user has used the application settings to opt-out of receiving push notifications.

Event code: application/appPushDisabled
Event attributes

Attribute nameData typeExampleDescriptionRequired
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.optional
eventNamestringApp Push Opt OutName of the event as it appears in the Exchange user interface.Yes

Application opened

Information to describe what happens when a mobile user clicks in a simple notification to open an app.

Event code: simpleNotification/appOpened
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.
eventIdstringUnique ID to identify the type of event and enable lookup in the system.
eventNamestringApp OpenName of the event as it appears in the Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes

Application click

Information to describe what happens when a mobile user clicks a button in a simple notification, providing the mobile OS with a URL to be handled. This typically happens when the user opens a browser on a mobile device.

Event code: simpleNotification/urlClicked
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.
eventIdstringUnique ID to identify the type of event and enable lookup in the system.
eventNamestringSimple notification link clickName of the event as it appears in the Acoustic Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes

Application rich content opened

Information that describes what happens when a mobile user clicks a link to open rich content.

Event code: simpleNotification/richContentOpened
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.
eventIdstringUnique ID to identify the type of event and enable lookup in the system.
eventNamestringOpen Rich ContentName of the event as it appears in the Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes

Application phone number click

Information that relates to a mobile user who clicks a link to open a phone dialer.

Event code: simpleNotification/phoneNumberClicked
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.
eventIdstringUnique ID to identify the type of event and enable lookup in the system.
eventNamestringOpen Phone DialerName of the event as it appears in the Acoustic Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes

Application unspecified click

Information that relates to a mobile user who clicks a button in a simple notification whose behavior has been defined by the app developer.

Event code: simpleNotification/
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event. Allow Exchange users to understand the event context.
eventIdstringUnique ID to identify the type of event and enable lookup in the system.
eventNamestringApp Custom ActionName of the event as it appears in the Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes

Mobile Push notification sent

nformation that describes a mobile push notification associated with a product or brand being sent to a customer.

Event code: mobilePushSend
Event attributes

Attribute nameData typeExampleDescriptionRequired
descriptionstringDescription of the published event to allow the user to better understand the context of the event.
eventIdstring12345Unique ID to identify the type of event and enable lookup in the system.
eventNamestringMobile Push SendName of the event as it appears in the Exchange user interface.Yes
appKeystringApplication Key or channel qualifier.Yes
messageIdThe unique identifier of the sent message associated with the event.
pushTypestringinboxThe type of push notification a contact received. This can be a simple inbox or rich message, in-app, or even the extension name.
reportIdstringThe ID associated with the with the push notification.
appKeystringThe application key or the channel qualifier.
channelIdstringChannel ID. Along with user ID, it represents the destination.Yes
campaignNamestringSpring CampaignThe name of the marketing campaign associated with the push notification.