Getting Started Concepts The Things Stack Cloud The Things Stack Enterprise Integrations API Hardware
Get The Things Stack

Integrations

    Overview
  • Adding Applications
  • Data Formats
  • Payload Formatters
  • Webhooks
  • Storage Integration
    • Configuration
    • Enable/Disable
    • Retrieve Messages
  • Integrate with popular IoT platforms
  • Other integrations
  • Application Packages
  • Examples

Storage Integration

The Storage Integration allows storing received upstream messages in a persistent database, and retrieving them at a later time.

The Storage Integration is implemented as an Application Package, and can be enabled per application or end device.

How it works

The Storage Integration runs on the Application Server and watches for upstream traffic (join requests, data uplink messages, data downlink messages, etc). When an upstream message is received from an end device for which the integration has been configured, the message data (Payload, FPort, Decoded Fields, as well as all relevant metadata) are written to a persistent database.

Data retention period is 30 days for The Things Stack Cloud and 24 hours for The Things Stack Sandbox distributions. For The Things Stack Enterprise distributions, data retention period can be configured.

A gRPC service and an HTTP API are exposed so that stored messages can then be retrieved.

Note:
The Things Stack Cloud stores only uplink messages.
Warning:
The Storage Integration should not be used for querying realtime data. For scalability reasons, writes to the Storage Integration database are performed in batches and there may be a delay after an uplink is received, before it is available. For realtime alerts, use Webhooks.

Viewing stored messages New in 3.34.1

The Console offers a view for checking the Storage Integration status and displays recently stored messages.

Activated storage integration

This view allows filtering by end device and time range, and displays stored messages along with decoded payloads and metadata.

Note:
For performance reasons, only the first 10 results are shown in the Console.

Downloading messages

The Console allows you to download the messages currently displayed in the table view. This provides a quick way to extract and inspect recent stored messages.

Download stored messages

Click the Download button to download the visible messages in one of the following formats:

  • JSON: Ideal for programmatic access or integration with other systems.
  • CSV: Convenient for spreadsheets, quick inspection, or basic analysis.

Typical use cases

  • Long-term storage of historical data for end-devices.
  • Reliable message persistence for low-frequency or offline-capable devices.
  • No need to maintain a connection with The Things Stack at all times, e.g. for end devices that send messages infrequently.

Detailed instructions about storage integration are in the topics below.

Configuration

This section contains instructions for configuring the Storage Integration on The Things Stack Enterprise distributions. Note: The Storage Integration is already configured on The Things Stack Cloud and The Things Stack Sandbox distributions. To enable and use the integration for specific Applications, follow the instructions in the Enable/Disable and Retrieve Messages sections. The Storage Integration requires configuration for the underlying storage provider used, along with a few options for tuning performance and memory usage.
Read

Enable/Disable

Enable Storage Integration for applications and end-devices.
Read

Retrieve Messages

Retrieve historical data using the HTTP API
Read
← Troubleshooting Webhooks Configuration →

On this page

  • How it works
  • Downloading messages
  • Typical use cases

Sections

Getting Started

Concepts

The Things Stack Cloud

The Things Stack Enterprise

Integrations

API

Hardware

Sitemap

View our Sitemap

Contributing

GitHub

About Us

The Things Industries