Skip to content

getSentNotifications ​

Retrieves a list of "sent" notifications spanning both "adhoc" and "scheduled" notifications.

Request ​

http
GET /rest/notification/sent

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

ParameterTypeRequiredDescription
versionLongYesThe version of this API. Currently 1.
broadcastTypeStringYesThe broadcast type of the sent message. Usually GT, GE or JN.
companyIdLongYes (if broadcastType=GT)The company id.
eventUUIDStringYes (if broadcastType=GE)The event UUID.
notificationScheduleIdLongNoPermits the retrieval of a "single" record based on a known notificationScheduleId.
brochureIdNumberNoUsed to retrieve asset-level notifications of type=GA.

e.g. /rest/notification/sent?version=1&broadcastType=GE&companyId=3

Team Notifications GET /rest/notification/sent?version=1&broadcastType=GT&companyId=3 Event Notifications GET /rest/notification/sent?version=1&broadcastType=ET&eventUUID=MY-d79f-EVENT-hdea67-UUID Single Notification GET /rest/notification/sent?version=1&notificationScheduleId

Response ​

200 OK ​

SAMPLE RESPONSE (array of)

json
[
  {
    "type": "GT",
    "companyId": 3,
    "notificationScheduleId": 123,
    "message": "This is a test of a company team message.",
    "description": "This field can contain team ids if not a scheduled notification",
    "successful": true,
    "totalNotificationsSent": 45,
    "notificationCreated": 1572950714981,
    "notificationCreatedBy": "654",
    "notificationModified": 1572950714981,
    "notificationModifiedBy": "721",
    "teamIds": [
      "7",
      "6",
      "5"
    ]
  },
  {
    "type": "GE",
    "companyId": 3,
    "eventUUID": "6d05e1e6-2db8-4b38-af60-b6ed5721ba43",
    "notificationScheduleId": 123,
    "message": "This is a test of an event message.",
    "description": "This field can contain team ids if not a scheduled notification",
    "successful": true,
    "totalNotificationsSent": 127,
    "notificationCreated": 1572950714989,
    "notificationCreatedBy": "654",
    "notificationModified": 1572950714989,
    "notificationModifiedBy": "721",
    "teamIds": [
      "7",
      "6",
      "5"
    ]
  }
]

Response Fields ​

FieldTypeDescription
typeString(2)The broadcast type of the notification - GT, GE, or JN.
companyIdLongThe id of the company this notification belongs to.
notificationScheduleIdLongAn optional id used to link back to a scheduled notification. Only present when the notification was scheduled.
messageString(255)The truncated message that was sent.
descriptionString(2000)A long description of the notification. Can contain team ids.
successfulBooleanIndicates whether the sending of the notification was successful or not.
teamIdsSet of StringsAn optional list of teams ids which are only available when the notification was scheduled. Adhoc notifications store the teams ids in the description.
notificationCreatedDate/TimeUTC date/time this record was created.
notificationCreatedByString(15)User id of the user that created this record.
notificationModifiedDate/TimeUTC date/time this record was modified.
notificationModifiedByString(15)User id of the user that modified this record.
brochureIdNumberOnly used when the API caller wants to honour User unsubscribes via the ALP (Asset Level Preferences) ALP-NUN (Notification Unsubscribe) and ALP-EUN (Email Unsubscribe).
emailTemplateString(100)Only used when an email is required to be sent along with the notification.
emailSubjectString(256)Only used when an email is required to be sent along with the notification. MUST be present if emailTemplate is present.
emailParamsArray of Param objectsAn array of objects representing both "generic (common)" and "personalised (user-specific)" params. Each param object contains key [String(100)] and value [String(2000)].

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSUnsupportedVersionExceptionSee Error Definitions
WSInvalidAuthTokenExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions
WSInsufficientPrivilegesExceptionSee Error Definitions
WSEventCancelledExceptionSee Error Definitions
WSEventNotFoundExceptionSee Error Definitions
WSEventServiceExceptionSee Error Definitions
WSNotificationServiceExceptionSee Error Definitions