# Senet

## **Connection between Senet and MClimate’s LoRaWAN broker using Webhooks** <a href="#connection-between-the-things-industries-and-mclimates-lorawan-broker-using-webhooks" id="connection-between-the-things-industries-and-mclimates-lorawan-broker-using-webhooks"></a>

{% hint style="info" %}
The guide assumes you have your device registered with the Senet platform and you have access to the Dashboard.
{% endhint %}

### 1. Creating a notifier in Senet

Expand the device settings for your device in the Senet Dashboard

<figure><img src="https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FDDFnIgKSAVJegpyy5NpY%2F1.png?alt=media&#x26;token=65d1ac8d-f177-4d21-9419-f963fd36347f" alt=""><figcaption><p>Device settings</p></figcaption></figure>

Go to the NOTIFICATION TARGET section and select HTTP from the dropdown menu.

Enter the following URL in the text box: [https://lorawan-broker.mclimate.eu:443/senet](https://lorawan-broker.mclimate.eu/senet)

You will need to create two Header Keys (make sure you name them with these exact names):

* m-token
* api-key

<figure><img src="https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FNYBbVvEBjdiWocFll1Bo%2F2.png?alt=media&#x26;token=57b32174-d5d9-44c5-8d73-d1ca7c5dfd9c" alt=""><figcaption><p>Notification Target</p></figcaption></figure>

Proceed to the next section of the guide to learn how to generate the Header Values. Leave the rest of the settings with their default values.

### 2. Create Enterprise M-token

Go to <https://enterprise.mclimate.eu/integrations> and create your m-token.

<figure><img src="https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FkhauNnsVBSKiikVdkmjt%2Fimage.png?alt=media&#x26;token=182eae59-a170-4659-a3ce-6bb374278878" alt=""><figcaption><p>Creating an m-token</p></figcaption></figure>

Give it a name and copy it over into the m-token header value field in Senet

<figure><img src="https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FmBF3B2rDrhX0d6VeBrex%2Fimage.png?alt=media&#x26;token=66e3fb34-1958-411b-a7cc-17c999909dce" alt=""><figcaption><p>Copying the token</p></figcaption></figure>

### 3. Create a Senet API-key

In the Senet Dashboard navigate to the Edit Account Info section.

<figure><img src="https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2F1QchYFs9dn9PUKLjExwx%2F3.png?alt=media&#x26;token=cf681124-ef9e-4889-bda7-cea681861325" alt=""><figcaption><p>Account section</p></figcaption></figure>

Generate/Re-generate a new API Key and copy it over in the api-key header value field in Senet.

<figure><img src="https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FDbfUi39BDgotng4pB05r%2F4.png?alt=media&#x26;token=02278c40-1637-4f4e-878b-189008901ad2" alt=""><figcaption><p>Generating the API-Key</p></figcaption></figure>

Save the device settings in Senet, now that you have both the M-token and the API-Key and you are done.

Your device should now be visible in Enterprise.
