Notifications and Interactions

The notifications are sent to you via the configured endpoint, see Configure Notification Settings. Nevertheless you might want to render a list of delivered notifications at a later time.

Use following MOOST API to achieve that

Set an Interaction on a delivered Notification

When the push notification is sent to a end-customer (typically to a mobile app), then this person shall have the possibility to interact to the notification. The app shall then send the interaction type with following API call:

Save an interaction on a delivered push notification

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
pushNotificationIdstringRequired

Select specified notification.

Pattern: ^[a-zA-Z0-9]{24}$
Body
actionQualifierstringOptional
userIdstringOptionalPattern: ^[a-zA-Z0-9:._@-]{1,100}$
Responses
200

OK

No content

post
/pushnotifications/{pushNotificationId}/interactions/v1
200

OK

No content

Example with CURL

Load Notifications of a Building

The app shall have the possibility to display the generated notifications. Following API can be used to fulfill this need.

Get push notifications of a building

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
customerBuildingIdstringRequired

Select notifications of specified building.

Pattern: ^[a-zA-Z0-9:._-]{1,100}$
Query parameters
deliveryStatusstring · enumOptional

If specified, then filter for notifications with specified status.

Possible values:
Responses
200

OK

application/json
get
/pushnotifications/buildings/{customerBuildingId}/v1
200

OK

Example with CURL

Last updated