# 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="/files/B3H8uTBPMcfevo1B8VEl" 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>

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

* m-token
* api-key

<figure><img src="/files/bUmZXG5zMrp5zbewGEvh" 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="/files/QFkFKpgBKaXyKuQSqQ3R" 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="/files/xTPEULsRmRUdWdIDEtIM" 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="/files/FSxG8RjgLckAIVQpwCRC" 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="/files/uzFJWWLhrgMI38rH9o1N" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mclimate.eu/mclimate-lorawan-devices/integrations/senet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
