5.1 notificationConfiguration

Element

notificationConfiguration [REQUIRED]

Description

This is the root element for all Xtify Notification Configuration API requests.

Parent Elements

None

Child Elements

id

apiKey

secret

name

description

appKeys

notificationDeviceTokens

notificationLocations

notificationSchedules

notificationFrequency

notificationContent

5.2 id

Element

id [OPTIONAL]

Description

This element specifies the identification number for the notification configuration. This element is required in the activate, deactivate, and delete API request methods, and optional in the create/update methods. Providing an id in the create/update method request will overwrite the specified notification with the provided data, while not providing it will create a new notification and return its id in the response.

In all API responses, the id element designates the notification that the action was applied to.

Type

String

Parent Elements

notificationConfiguration

Child Elements

None

5.3 appKeys

Element

appKeys [REQUIRED]

Description

This element is the root element for one or more applications. It is required if including application elements. An applications element, a notificationDeviceToken, or both must be included in each create/update request.

Parent Elements

notificationConfiguration

Child Elements

key

5.4 key

Element

key [OPTIONAL]

Description

An element containing credentials for a single application. If specified, the notification will be associated with all the users belonging to this application.

Parent Elements

appKeys

Child Elements

None

5.5 apiKey

Element

apiKey [REQUIRED]

Description

The element containing the api key associated with your application. This value can be found in the Developer Tools section of the Xtify Web Console. Required if application element is included.

Parent Elements

notificationConfiguration

Child Elements

None

5.6 notificationDeviceTokens

Element

notificationDeviceTokens

Description

The root element for configuring notifications for individual users of one or more devices. A notificationDeviceToken element, an applications element, or both must be included in each create/update request.

Parent Elements

notificationConfiguration

Child Elements

androidDeviceTokens

iPhoneDeviceTokens

blackberryDeviceTokens

5.7 androidDeviceTokens

Element

androidDeviceTokens [OPTIONAL]

Description

An element containing one or more Android device tokens to be associated with this notification. At least one of androidDeviceTokens, iPhoneDeviceTokens, or blackberryDeviceTokens, is required in a notificationDeviceTokens element.

Parent Elements

notificationDeviceTokens

Child Elements

token

5.8 token

Element

token [OPTIONAL]

Type

String

Description

This element contains an Android, iPhone, or Blackberry device token that will be associated with the notification being built. At least one token element is required if any parent element is specified.

Parent Elements

androidDeviceTokens

iPhoneDeviceTokens

blackberryDeviceTokens

Child Elements

None

5.9 iPhoneDeviceTokens

Element

iphoneDeviceTokens

Description

An element containing one or more iPhone device tokens to be associated with this notification. At least one of androidDeviceTokens, iPhoneDeviceTokens, or blackberryDeviceTokens, is required in a notificationDeviceTokens element. 

Parent Elements

notificationDeviceTokens

Child Elements

token

5.10 blackBerryDeviceTokens

Element

blackBerryDeviceTokens

Description

An element containing one or more Blackberry device tokens to be associated with this notification. At least one of androidDeviceTokens, iPhoneDeviceTokens, or blackberryDeviceTokens, is required in a notificationDeviceTokens element.

Parent Elements

notificationDeviceTokens

Child Elements

token

5.11 notificationLocations

Element

notificationLocations [OPTIONAL]

Description

The notificationLocations element contains one or more locations where this notification will be triggered for users. As with all rule elements, the notification will fire if and only if the criteria for each associated rule is also satisfied. Either a triggering location or triggering schedule is required.

Parent Elements

notificationLocations

Child Elements

location

5.12 location

Element

location [OPTIONAL]

Description

An element describing a single location where notifications will be triggered for specified users. At least one location must be included in a notificationLocations element.

Parent Elements

notificationConfiguration

Child Elements

name

description

address

lat

lng

 radius

5.13 name

Element

name

Type

String

Description

A descriptive title for the location being created. Note that this is a non-programmatic field and will not be used to trigger the notification, only for display in the message content. This will replace the dynamic field $location in the notificationContent section if you choose to reference location in your notification content.

Parent Elements

location

Child Elements

None

5.14 description

Element

description [OPTIONAL]

Type

String

Description

A description of the location being created. Note that this is a non-programmatic field and will not be used to trigger the notification, only for display in the message content.  This will replace the dynamic field $description in the notificationContent section if you choose to reference location in your notification content.

Parent Elements

location

Child Elements

None

5.15 address

Element

Address [OPTIONAL]

Description

The address of the location being created. Note that this is a non-programmatic field and will not be used to trigger the notification, only for display in the message content. This will replace the dynamic field $address in the notificationContent section.

Parent Elements

location

Child Elements

None

5.16 lat

Element

lat [OPTIONAL]

Type

long

Description

The element defining the latitude of the desired location. Required for location element.

Parent Elements

location

Child Elements

None

5.17 lng

Element

lng [OPTIONAL]

Type

long

Description

The element defining the longitude of the desired location. Required for location element.

Parent Elements

location

Child Elements

None

5.18 radius

Element

radius [OPTIONAL]

Type

long

Description

The element defining the radius (in meters) of circle surrounding the triggering location.

Parent Elements

location

Child Elements

None

5.19 notificationSchedule

Element

notificationSchedule [REQUIRED]

Description

The notificationSchedule element contains one or more schedules when this notification will be triggered for users. A notification will be sent at the start time of each configured schedule element (potentially on a repeating basis) in the users' timezone, or immediately if an activation request is received during a schedule window. As with all rule elements, the notification will fire if and only if the criteria for each associated rule is also satisfied.

Parent Elements

notificationConfiguration

Child Elements

schedule

5.20 schedule

Element

schedule [REQUIRED]

Description

An element describing a schedule when notifications will be triggered for specified users. At least one schedule must be included in a notificationSchedule element.

Parent Elements

notificationSchedule

Child Elements

startDate

endDate

startTime

endTime

daysOfWeek

5.21 startDate

Element

startDate [REQUIRED]

Type

String

Format

mm/dd/yyyy

Description

The first date for which this firing schedule begins.

Parent Elements

schedule

Child Elements

None

5.22 endDate

Element

endDate [REQUIRED]

Type

String

Format

mm/dd/yyyy

Description

The last date for which this schedule is active.

Parent Elements

schedule

Child Elements

None

5.23 startTime

Element

startTime [REQUIRED]

Type

String

Format

hh:mm

Range

00:00-23:59

Description

The start time of this schedule in 24 hour notation (i.e. 00:00 to 23:59). A notification will be sent at this time if activated.

Parent Elements

schedule

Child Elements

none

5.24 endTime

Element

endTime [REQUIRED]

Type

String

Format

hh:mm

Range

00:00-23:59

Description

The end time of this schedule in 24-hour notation.

Parent Elements

schedule

Child Elements

none

5.25 daysOfWeek

Element

daysOfWeek [OPTIONAL]

Type

int

Range

0-6

Format

0,1,2,3,4,5,6

Description

Days of the week when this notification schedule should be triggered on, in comma separated number format, (e.g. 0 = Sunday; 1 = Monday; etc.).

Parent Elements

schedule

Child Elements

None

5.26 notificationFrequency

Element

notificationFrequency [REQUIRED]

Description

notificationFrequency is a rule element to place restrictions on the number and rate at which any user can receive this notification. This rule is critical to achieving the desired functionality of the Xtify notification system because if location updates are enabled on the device SDK, they will continuously attempt to trigger a message. As with all rule elements, the notification will fire if and only if the criteria for each associated rule is also satisfied.

Parent Elements

notificationConfiguration

Child Elements

maxNotificationsPerUser

minimumMinutesBetweenNotifications

5.27 maxNotificationsPerUser

Element

maxNotificationsPerUser [REQUIRED]

Description

The maxNotificationsPerUser element defines the maximum number of copies of this notification that any one user can receive. maxNotificationsPerUser, minimumMinutesBetweenNotifications or both are required for the notificationFrequency element.

Type

int

Parent Elements

notificationFrequency

Child Elements

None

5.28 minimumMinutesBetweenNotifications

Element

minimumMinutesBetweenNotifications [REQUIRED]

Type

int

Description

The minimumMinutesBetweenNotifications element limits the number of minutes after the last notification was sent that another can be received. As with all rule elements, the notification will fire if and only if the criteria for each associated rule is also satisfied. maxNotificationsPerUser, minimumMinutesBetweenNotifications or both are required for the notificationFrequency element.

Parent Elements

notificationFrequency

Child Elements

None

5.29 notificationContent

Element

notificationContent [REQUIRED]

Description

This is the root element aggregating the content and data being sent to different types of devices through a notification. Each device content element contains device specific options and attributes to customize the message. Individual device content will only be sent if there is an application of that type associated with this notification.

Parent Elements

notificationConfiguration

Child Elements

android

iphone

blackberry

5.30 android

Element

android [OPTIONAL]

Description

The device content element for all users with Android applications. One or more of android, blackberry, or iphone, must be provided.

Parent Elements

notificationContent

Child Elements

messageTitle

message

actionIntent

actionCategories

actionData

groupId

url

urlLabel

actionType

collectPollingData

showNotificationScreen

5.31 messageTitle

Element

messageTitle [REQUIRED]

Type

String

Description

This is an element defining the title of the message being sent to users.

Parent Elements

android

Child Elements

None

5.32 message

Element

message [REQUIRED]

Type

String

Description

This is an element defining the body of the message being sent to users.  The number of characters you can pass in this field varies by operating system.  For iOS, the limit is 256 characters (characters used for other iPhone elements such as actionButtonLabel, badge and dataItem(s) count against this limit, too). For BlackBerry, the limit is 512 characters.  For Android, there is no character limit.

Parent Elements

android

blackberry

iphone

Child Elements

None

5.33 actionIntent

Element

actionIntent [OPTIONAL]

Type

String

Description

Specifies an operation to be performed upon the user clicking on the primary action button in the notification details screen 

Parent Elements

android

Child Elements

None

5.34 actionCategories

Element

actionCategories [OPTIONAL]

Type

String

Description

Provides additional information about the component that will handle the actionIntent.

Parent Elements

android

Child Elements

None

5.35 actionData

Element

actionData [OPTIONAL]

Type

String 

Description

Specifies the data associated with the actionIntent.

Parent Elements

android

Child Elements

None

5.36 groupId

Element

groupId [OPTIONAL]

Type

string

Description

When specified, it groups notifications under the same notification icon in the notification details tray.  This field is not currently accessible using the Xtify console.

Parent Elements

android

Child Elements

None

5.37 url

Element

url [OPTIONAL]

Type

String

Description

Specifies the url the user will be taken to upon clicking on the primary action button.

Parent Elements

android

Child Elements

None

5.38 urlLabel

Element

urlLabel [OPTIONAL] 

Type

String 

Description

Denotes the label to be displayed on the button viewed by a notification recipient when the notification appears on the Android device.

Parent Elements

android

Child Elements

None

5.39 actionType

Element

actionType [OPTIONAL]

Type

String

Description

Specifies what will happen when the notification recipient clicks on the primary action button.

Parent Elements

android

Child Elements

None

5.40 showNotificationScreen

Element

showNotificationsScreen [OPTIONAL]

Type

boolean

Description

Specifies if the notification screen will be displayed upon notification recipient clicking in the notification tray.

Parent Elements

android

Child Elements

None

5.41 iphone

Element

iphone [OPTIONAL]

Description

The device content element for all users with iPhone applications. One or more of android, blackberry, or iphone, must be provided.

Parent Elements

notificationContent

Child Elements

message

badge

sound

actionButtonLabel

actionType

dataItems

actionURL

richSubject

richContent

richActionType

richActionLabel

richActionData

5.42 badge

Element

badge [OPTIONAL]

Type

int

Description

Depicts the number shown within a red circle on the application’s home screen icon. 

Parent Elements

iphone

Child Elements

None

5.43 sound

Element

sound [OPTIONAL] 

Type

String

Description

Specifies the sound that the phone will play when the notification is received on the device.

Parent Elements

iphone

Child Elements

None

5.44 actionButtonLabel

Element

actionButtonLabel [OPTIONAL]

Type

String

Description

Denotes the label to be displayed on the action button viewed by a notification recipient when the notification appears on the iPhone.

Parent Elements

iphone

Child Elements

None

5.45 actionType

Element

actionType [OPTIONAL]

Description

Specifies the action for the notification. There are the following possible values: NONE, OPEN_URL (it opens the browser with the url specified at 6.51), RICH_NOTIFICATION (it displays the rich notification with the subject specified at 6.52 and content specified at 6.53) and CUSTOM_DATA (it is defined by the client developer and the data is passed with the value defined at 6.47).

Parent Elements

iphone

Child Elements

None

5.46 dataItems

Element

dataItems [REQUIRED if action type is custom]

Description

The item content element for all users with iPhone applications. These values can be passed into the application to determine device activity once the initial notification has been displayed.

Parent Elements

iphone

Child Elements

None

5.47 item

Element

item [REQUIRED if dataItems are specified]

Description

Defines the implementation of specific key-value pair(s) that are passed into the application upon action by the notification recipient.

Parent Elements

dataItems

Child Elements

key

value

5.48 key

Element

key [REQUIRED if item is specified]

Description

Defines specific implementation key. 

Parent Elements

item

Child Elements

None

5.49 value

Element

value [REQUIRED if key is specified]

Description

Defines specific implementation value. 

Parent Elements

item

Child Elements

None

5.50 actionURL

Element

actionURL [REQUIRED if action type is OPEN_URL]

Type

String

Description

Specifies the URL for OPEN_URL action type.

Parent Elements

iphone

Child Elements

None

5.51 richSubject

Element

richSubject [REQUIRED if actionType is RICH_NOTIFICATION]

Type

string

Description

Specifies the subject of the rich notification.

Parent Elements

iphone

Child Elements

None

5.52 richContent

Element

richContent [REQUIRED if actionType is RICH_NOTIFICATION]

Type

String

Description

Specifies the content of the rich notification.

Parent Elements

iphone 

Child Elements

None

5.53 richActionType

Element

richActionType [OPTIONAL] 

Type

String

Description

Specifies the action for the rich notification. There are the following possible values: NONE, OPEN_URL (it opens the browser with the url specified at 6.56), PHONE (it opens the dialer with the number defined at 6.56) and CUSTOM_ACTION (it is defined by the client developer and the data is passed with the value defined at 6.56).

Parent Elements

iphone

Child Elements

None

5.54 richActionLabel

Element

richActionLabel [REQUIRED if richActionType is other than NONE]

Type

String

Description

Specifies the label for the action of the rich notification.

Parent Elements

iphone

Child Elements

None

5.55 richActionData

Element

richActionData [REQUIRED if richActionType is other than NONE]

Type

String

Description

Specifies the value corresponding to the rich action type.

Parent Elements

iphone

Child Elements

None

5.56 blackberry

Element

blackberry [OPTIONAL]

Description

The device content element for all users with BlackBerry applications. One or more of android, blackberry, or iphone must be provided.

Parent Elements

notificationContent

Child Elements

message

5.57 hasTags

Element

hasTags [OPTIONAL]

Description

A comma separated list of Tags that a user must have ALL of to receive the notification.

Parent Elements

notificationConfiguration

Child Elements

none

5.58 notTags

Element

notTags [OPTIONAL]

Description

A comma separated list of Tags that a user cannot have to receive the notification.

Parent Elements

notificationConfiguration

Child Elements

none