Notification Class Properties

PropertyTypeOptionalDescription
idstringNoNotification ID
notificationSourcestringNoNotification source. e.g., ‘comment’, ‘custom’, etc.
actionTypestringYesAction that triggered the notification. e.g., ‘added’
isUnreadbooleanYesWhether the notification is unread for the user
actionUserUserYesThe user who triggered the action
timestampnumberYesTimestamp of the notification
displayHeadlineMessagestringYesThe headline message of the notification
displayBodyMessagestringYesThe body message of the notification
displayHeadlineMessageTemplatestringYesThe template of the headline message
displayHeadlineMessageTemplateDataobjectYesThe data used to fill the headline message template
forYoubooleanYesWhether the notification is for the current logged-in user
targetAnnotationIdstringYesID of the annotation that triggered the notification
notificationSourceDataanyYesThe data of the notification source. e.g., CommentAnnotation
metadataNotificationMetadataYesMetadata for the current notification. e.g., documentId
notifyUsers{ [emailHash: string]: boolean }YesMap of email hashes to boolean values indicating whether to notify the user
notifyUsersByUserId{ [userIdHash: string]: boolean }YesMap of user ID hashes to boolean values indicating whether to notify the user

displayHeadlineMessageTemplateData Object Properties

PropertyTypeDescription
actionUserUserThe user who performed the action
recipientUserUserThe user receiving the notification
actionMessagestringThe message describing the action
projectstringThe project related to the notification
[key: string]anyAny additional custom properties

NotificationMetadata Properties

PropertyTypeOptionalDescription
apiKeystringYesYour API key
clientOrganizationIdstringYesThe organization ID that you set
organizationIdstringYesThe organization ID generated by us
clientDocumentIdstringYesThe document ID that you set
documentIdstringYesThe document ID generated by us
locationIdnumberYesThe unique location ID
locationLocationYesThe location object
documentMetadataObjectYesContains the complete document metadata object
organizationMetadataObjectYesContains the complete organization metadata object