# Notifications and Interactions

The notifications are sent to you via the configured endpoint, see [configure-notification-settings](https://doc.moost.io/technical-integration/cloud-to-cloud-integration/configure-notification-settings "mention"). 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:

{% openapi src="<https://doc.api.moost.io/docs/openapi/openapi.json>" path="/pushnotifications/{pushNotificationId}/interactions/v1" method="post" %}
<https://doc.api.moost.io/docs/openapi/openapi.json>
{% endopenapi %}

**Example with CURL**

```
# make sure ACCESS_TOKEN is set and valid (see "Request Access Token")
curl -X POST "https://api.moost.io/pushnotifications/668b8e708f308b0123074cb7/interactions/v1" \
     -H  "Authorization: Bearer $ACCESS_TOKEN" \
     -H  "Content-Type: application/json" -d "{\"actionQualifier\":\"OPENWEB\"}"
```

### 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.&#x20;

{% openapi src="<https://doc.api.moost.io/docs/openapi/openapi.json>" path="/pushnotifications/buildings/{customerBuildingId}/v1" method="get" %}
<https://doc.api.moost.io/docs/openapi/openapi.json>
{% endopenapi %}

**Example with CURL**

```shell
curl -X GET "https://api.moost.io/pushnotifications/buildings/99900000ECA31C6E/v1?deliveryStatus=DELIVERED" \
     -H  "Authorization: Bearer $ACCESS_TOKEN"
```
