# Firefly

## **Connecting Firefly to MClimate’s LoRaWAN broker**

### **1. Go to {your o**rganization}-> Settings-> API Keys, create new one and copy it&#x20;

![](/files/nzWjhKMDyWK3onu9bgGd)

### **2. Go to Sinks and click on create new sink**&#x20;

![](/files/xHugHQBhVW38QiVTSfIz)

### **3. Get downlink token**

* **Go to** [**https://developers.mclimate.eu/lorawan-token**](https://developers.mclimate.eu/lorawan-token) **and Sign in with your MClimate account.**
* **Enter the name of the webhook**
* **Paste the API Key.**

![](/files/TMmnqkqGiLDm690Wo5Zo)

* **Copy the token**

![](/files/fu19QIlCUxyGCnScCCWZ)

### 4.Enter the URL in the Webhook

* **The URL should be** [**https://lorawan-broker.seemelissa.com/firefly?token=**](<https://lorawan-broker.seemelissa.com/firefly?token=600f97b5abc986ab95a81029de29c5d7\&url=lora.national.iothub.no >)**{developers\_portal\_token}** [**\&url= {optional url of your instance}**](<https://lorawan-broker.seemelissa.com/firefly?token=600f97b5abc986ab95a81029de29c5d7\&url=lora.national.iothub.no >)
* **\*Default downlink URL is api.fireflyiot.com**
* **Content Type is application/json**
* **Triggers should be All Events**

![](/files/RKNfoeTu6y9drPGcMdgE)

### 5. Save new webhook

### 6. Done


---

# 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/firefly.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.
