# How to integrate TagoIO with TTN v3

**URL:** <https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026>\
**Category:** Tutorials\
**Tags:** tutorials\
**Created:** [January 22, 2022, 7:45pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026 "2022-01-22T19:45:57Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/system/32/24_2.png) [@system](https://community.tago.io/u/system)\
**Post date:** [January 22, 2022, 7:45pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/1 "2022-01-22T19:45:57Z")

</div>

This tutorial provides a step-by-step guide to integrate The Things Network (TTN) v3 with the TagoIO Platform. By following these instructions, you will enable uplink and downlink operations, allowing data exchange between your LoRaWAN devices and the TagoIO application.

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/d/d158754365f7d98ac44b0a01b30d15c79ff3f1df.png)

## Prerequisites

Before you begin, ensure you have the following:

- TTN v3 Account: If you don’t have one, [register here](https://www.thethingsnetwork.org/get-started).
- LoRaWAN Device: Ensure your device is connect to TTN and transmitting data.

* * *

## Step 1: Create Authorization in TagoIO

1. Access Authorizations:

2. Create a New Authorization:

3. Copy the Authorization Token:

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/f/fd00ee1a9d2a9b13b504a8a1b72c1d81936b9d1f.png)

## 

* * *

## Step 2: Set Up Integration in TTN v3

Go to your TTN v3 console and create a new Integration. You can create a new integration under the menu **Integrations \> Webhooks \> Add Webhook.**

Configure the Webhook:

| 
Field
 | 
Description
 |
| 
Webhook ID
 | 
Enter a unique identifier (e.g., tagoio-integration).
 |
| 
Webhook Format
 | 

Select JSON from the dropdown menu.

 |
| 
Downlink API Key
 | 

Enter a preferred value. This key facilitates downlink operations to your devices via TagoIO.

 |
| 
Additional Headers
 | 

Add a header for Authorization and set its value to the authorization token you copied in Step 1.

 |
| 
Webhook Endpoint
 | 

Use the endpoint format ttn.middleware.REGION.tago.io. Replace REGION with your deployment region (e.g., us-e1, eu-w1).  
For a list of available regions, visit [TagoIO Network Integration](https://help.tago.io/portal/en/kb/articles/125-network-integration).

 |

 ![image](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/2/225037974cf3cfdbc88b9af90ec61910c3ef6165.png)

In your Webhook configuration, you can activate any event type, but we recommend enabling the, “ **Uplink message** ” and " **Location solved** ” event type and add “ **uplink** ” to the Webhook settings. This configuration allows the Webhook to automatically forward the data to TagoIO whenever your device transmits data to the network.

 ![image](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/2/2ca98e6f212f94e20db800050e93f30ba2f3125a.png)

**Save the Integration:**

- After filling in all the fields, click **Save** to create the webhook integration.

> 📝 The endpoint **ttn.middleware.tago**.io points to the USA region. As we are committed to continuing support for this endpoint, we recommend that users in the USA region update their webhooks to **[ttn.middleware.us-e1.tago.io](http://ttn.middleware.us-e1.tago.io)**.

* * *

## Step 3: Add Device in TagoIO

To integrate your device with the TagoIO Platform, follow these guidelines:

1. **Ensure Device EUI Consistency:**

2. **Select the Appropriate Network and Device Type:**

3. **Add Device Support via Connectors (If Necessary):**

For detailed instructions on adding devices, visit the [Adding Devices](https://help.tago.io/portal/en/kb/articles/3-devices#Adding_devices) page.

* * *

## Finalizing Setup

1. **Power On Your Devices:**

2. **Verify Data Reception:**

With data successfully flowing into TagoIO, you can start creating Dashboards, Analyses, and Actions to visualize and manage your device data effectively.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/system/32/24_2.png) [@system](https://community.tago.io/u/system)\
**Post date:** [January 22, 2022, 7:45pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/2 "2022-01-22T19:45:59Z")

</div>

@Holger Meiners

It’s not yet clear to me if and how I can get other data than uplink messages e.g. from the LoRa cloud location solver. In the TTN v3 [Tago.IO](http://Tago.IO) webhook I enabled the solver but I do not see any data variables that correspond to the solver data

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/system/32/24_2.png) [@system](https://community.tago.io/u/system)\
**Post date:** [January 22, 2022, 7:46pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/3 "2022-01-22T19:46:00Z")

</div>

@Vitor Lima

I believe that you must specify a route in TTN v3 for the location solver. Use the same route as the uplink.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/system/32/24_2.png) [@system](https://community.tago.io/u/system)\
**Post date:** [January 22, 2022, 7:46pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/4 "2022-01-22T19:46:01Z")

</div>

@Holger Meiners

Vitor, Using the route /uplink is finally working.

Thanks a lot

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/system/32/24_2.png) [@system](https://community.tago.io/u/system)\
**Post date:** [January 22, 2022, 7:46pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/5 "2022-01-22T19:46:02Z")

</div>

@IOPROD Test

Hello @vitor . The uplink is working for me without any issue. However I am trying to use the downlink from TagoIO to TTN V3 and it is not working.

I tried both procedures described in the documentation in (Downlink for LoRaWAN™):  
1- From device/Configuration Parameters; I am getting this error on TTN side

```auto

* \_downward

23:26:27

device-ota-v3

Drop downlink data message

Invalid `downlinks[0]`: embedded message failed validation: Invalid `f_port`: value must be inside range \[1, 255\]

* arrow\_downward

23:26:27

device-ota-v3

Receive downlink data message

Payload

55  
Actions

```

2- From Dashboard by installing an Analysis: I am getting this error when I try to do the install:

```auto

An error has ocurred while installing the template: (1621031587004) Sorry, Internal Error

```

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/system/32/24_2.png) [@system](https://community.tago.io/u/system)\
**Post date:** [January 22, 2022, 7:46pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/6 "2022-01-22T19:46:03Z")

</div>

@Vitor Lima

Hi,  
I’m checking this issue regarding the downlink analysis.  
You can open an issue at TagoIO to keep track of when it is fixed, or I’ll update you through here later today.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/system/32/24_2.png) [@system](https://community.tago.io/u/system)\
**Post date:** [January 22, 2022, 7:46pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/7 "2022-01-22T19:46:03Z")

</div>

@Vitor Lima

Hi remiremrem,  
The analysis template should be working fine now.

---

<div class="post-metadata">

**Author:** ![vitorfdl](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/vitorfdl/32/1728_2.png) [@vitorfdl](https://community.tago.io/u/vitorfdl)\
**Post date:** [May 5, 2022, 3:20pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/8 "2022-05-05T15:20:57Z")

</div>

I`ve noticed some customers having problem with downlinks at TTN.

Since this integration automatically collects downlink URL and downlink Key from the uplink, the downlinks will not work if the uplink doesn`t include those parameters.

I suggest contacting TTN if you need support to include this information in your uplink, but the issue can be fixed on TagoIO side as well.

In order to fix on TagoIO side, follow the instructions:

1. Go to your device at TagoIO.

2. Access the **Configuration parameters** tab.

3. Create two new rows by clicking in the + button.

4. In the first row, enter **downlink\_url** as the key, and enter a valid downlink URL from TTN.

5. In the secodn row, enter **downlink\_key** as the key, and enter a valid downlink key from TTN.

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/4/4af9faee77ac6f6d461dc804affb9a06690d098d.png)

---

<div class="post-metadata">

**Author:** ![cjg](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@cjg](https://community.tago.io/u/cjg)\
**Post date:** [February 15, 2023, 9:02pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/9 "2023-02-15T21:02:35Z")

</div>

Hi Victor,

Hope you are doing ok! I am new at this so pls pardon my ignorance. I have a Laird RG1xx and some radiobridge temp sensors (RBS306-ATH-EXT) that I want to collect data to create dashboard. My question is if I need to input them directly in tago or do I need them on TTN? I have the gateway already online in TTN but don’t know if the integration that you are discussing here is the one I need to create to be able to get the information to create the dashboards.

Pls if you can let me know if you can point me in the right direction.

---

<div class="post-metadata">

**Author:** ![freddy.minuzzi](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/freddy.minuzzi/32/415_2.png) [@freddy.minuzzi](https://community.tago.io/u/freddy.minuzzi)\
**Post date:** [February 17, 2023, 2:21pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/10 "2023-02-17T14:21:33Z")

</div>

Hi Cjg,

You don’t necessarily need to add it to TTN, it depends on your device’s manual. Most LoRaWAN devices can be used with any Network depending on your gateway. If you want to connect it directly to TagoIO, I’d recommend using the Generic HTTPS network since it has less restrictions.

If you need more help, just holler.

---

<div class="post-metadata">

**Author:** ![markjamesbarry7](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@markjamesbarry7](https://community.tago.io/u/markjamesbarry7)\
**Post date:** [October 21, 2023, 12:45pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/11 "2023-10-21T12:45:56Z")

</div>

Hi - I am brand new to Tago , but I cannot get my webhook to work

I have followed all steps above. But I keep getting a “failed to send webhook” message from my TTN server

please help

---

<div class="post-metadata">

**Author:** ![c.huebner](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@c.huebner](https://community.tago.io/u/c.huebner)\
**Post date:** [December 29, 2023, 10:05pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/12 "2023-12-29T22:05:38Z")

</div>

Hi,

I followed the instructions and with my first LoRa device everything is fine (I only use uplink). Then I wanted to add a second LoRa device. The data from the second device is somehow not appearing in Tago. I generated a second authorization for TTN in Tago and a second webhook in TTN, Then it works with the second device. I thought a single authorization and a single webhook in TTN would be sufficient for any number of devices. Is there maybe a bug? Can someone confirm that a single authorization and webhook is sufficient for any number of devices?

Best regards

Chris

---

<div class="post-metadata">

**Author:** ![freddy.minuzzi](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/freddy.minuzzi/32/415_2.png) [@freddy.minuzzi](https://community.tago.io/u/freddy.minuzzi)\
**Post date:** [January 15, 2024, 12:55pm UTC](https://community.tago.io/t/how-to-integrate-tagoio-with-ttn-v3/1026/13 "2024-01-15T12:55:20Z")

</div>

Hi Chris,

You only need a single Authorization code for all of your devices, make sure the second device is within the same application and using the same webhook over at TTN.
