Skip to Content
🚀 SpaceDF v2026.04.17 is now live! Read the release notes

Webhooks Setup Guide – Structure

Learn how to configure outgoing webhooks to stream real-time data from SpaceDF to your external applications.

Overview

A Webhook is an automated “push” mechanism that triggers a data transfer between applications whenever a specific event occurs. Unlike traditional APIs that require polling, webhooks deliver data instantly, making them the gold standard for event-driven architectures.

❓ Why Webhooks?

    In the SpaceDF ecosystem, webhooks act as the critical real-time bridge between your LoRaWAN Network Servers (such as The Things Network or ChirpStack) and the SpaceDF platform.

    • Zero-Latency: Data is pushed the moment a gateway receives an uplink.
    • Efficiency: Eliminates the need for constant API requests, saving server resources.
    • Seamless Integration: Effortlessly syncs device telemetry from external network layers into your SpaceDF dashboard.

    ℹ️ Note: Webhooks are the recommended method for integrating TTN and ChirpStack to ensure your device data is always up-to-the-second.

Prerequisites

Before configuring your webhook, ensure you have the following components ready:

  • SpaceDF Account: An active account with administrative privileges to manage integrations.
  • Active LoRaWAN Devices: Your devices must be provisioned and successfully sending uplink data to your Network Server.
  • Console Access: Full access to your The Things Network (TTN) or ChirpStack console to configure the outgoing integration.
  • Endpoint URL: A target destination URL (provided by SpaceDF) to receive the incoming data stream.

Get Webhook Endpoint from SpaceDF

To link your Network Server with our platform, you first need to retrieve your unique integration endpoint from the SpaceDF dashboard.

How to locate your URL

1

Navigate to the SpaceDF Console.

2

Select your Organization or Space from the sidebar.

3

Go to Integrations > Webhooks.

4

Click on Create New Webhook (or select an existing one).

5

Copy the Endpoint URL displayed in the configuration panel.

Endpoint Format

Your unique endpoint will follow this structure:

https://api.spacedf.com/v1/integrations/webhooks/receive/{YOUR_UNIQUE_TOKEN}

    ℹ️ Note: Keep your {YOUR_UNIQUE_TOKEN} secure. Anyone with this URL can send data to your SpaceDF environment.

Configure Webhook on your Network Server

After obtaining your endpoint from SpaceDF, you must link it to your Network Server. This allows your server to “push” data to SpaceDF the moment a device transmits a message.

Technical Requirements

Configure your integration with the following mandatory parameters:

ParameterConfiguration
MethodPOST
Payload FormatJSON
Webhook URLPaste your unique SpaceDF Endpoint URL
Enabled EventsUplink message (Mandatory), Join accept (Optional)

Step-by-Step Instructions

1

Access your Application
Log in to your TTN (The Things Stack) or ChirpStack console.
Select the specific Application that contains the devices you wish to integrate with SpaceDF.

2

Navigate to Integrations
On TTN: Use the side menu to go to Integrations > Webhooks.
On ChirpStack: Select the Integrations tab from the top or side navigation bar.

3

Navigate to Integrations
On TTN: Click + Add Webhook and select the Custom Webhook template.
On ChirpStack: Click Create and select HTTP from the available integration types.

4

Fill in the Connection Details
Enter the Webhook URL you copied in Step 3. Ensure the Method is set to POST.

5

Authentication & Headers (If Required)
If you have enabled security headers in your SpaceDF environment, add them here:
Header Name: X-SpaceDF-Token
Header Value: Your unique secret token

6

Save and Activate
Ensure the Uplink message checkbox is enabled. This is the trigger that sends your sensor data to SpaceDF. Click Save changes or Add webhook to finalize.

Verify Connection

Once you have configured the webhook on your Network Server, follow these steps to ensure that the data pipeline is active and SpaceDF is correctly receiving your device telemetry.

The most reliable way to verify the connection is to generate real traffic from your hardware.

  • Physical Device: Trigger a transmission (e.g., press a “Send” or “Reset” button on your sensor).
  • Virtual Simulator: If you are away from your hardware, use the Simulated Uplink feature in the TTN or ChirpStack console to send a sample JSON payload.
Step 2: Check the Live Inspector

Navigate to your SpaceDF Console to monitor incoming traffic in real-time:

1

Go to the Devices section and select your target device.

2

Open the Live Data or Activity Log tab.

3

Look for a new entry with the Success status.

Connection Status Indicators In the SpaceDF Activity Log, you may see the following status codes:

  • 200 OK: Data received and processed successfully.
  • 401 Unauthorized: The integration token is missing or incorrect.
  • 422 Unprocessable Entity: Data was received, but the JSON format or devEUI does not match your device settings.

Troubleshooting

If you encounter issues during the integration process, refer to the table below for common symptoms and their solutions.

Issue

Potential Cause

Recommended Action

No Data ReceivedIncorrect Webhook URL or missing event triggers.Verify the Endpoint URL in your Network Server and ensure Uplink message is enabled.
Authentication ErrorMissing or invalid X-SpaceDF-Token header.Double-check the Header Name and Secret Token in your integration settings.
Device Not AppearingDevEUI mismatch between platforms.Ensure the devEUI in TTN/ChirpStack matches the one registered in SpaceDF exactly
Payload Parsing FailedUnsupported JSON structure or missing required fields.Compare your server’s payload with the SpaceDF Payload Schema.
Last updated on