API Reference

Senet offers a variety of methods to stream device messages transmitted over the Senet Network.


Devices transmit an uplink message to one or more gateways that relays the message to the network server. The network server forwards the message to an IoT platform.


IoT platforms make calls to the network server. The network server sends each downlink message to a single gateway that transmits the message to a single device.


Notification Targets

Data streaming is setup by creating a Notification Target for a devices. The Notification Target configures the network server to stream device uplinks to a user specified destination or 3rd party IoT platform. In other words, uplink messages are forwarded as they are received by the Senet Network.

Configure a Notification Target:

  1. Open the Edit Device window.

    • Table View: Select a row in the device table. Click on the edit button Table Edit.

    • Tile View: Click on the menu button Tile Menu. Click on the edit button Tile Edit.

    • Device Details: Click on the edit button Device Edit.

    Edit Device

  2. Click on the NOTIFICATION TARGET tab.


  3. In the Forward To dropdown menu, choose a Notification Target type to display the required fields and options.

  4. Complete the required fields and click Save.


A firewall rule may need to be added to allow incoming uplink messages from the Senet Network.

Senet Source IP Addresses: and

Supported Notification Targets

The Senet Network supports a variety of options to forward messages as they are received by the network. Options may be to forward messages to a private socket listener or a public subscription based analytics solution. By Default, only the packet with the best Signal to Noise Ratio (SNR) will be forwarded. To receive packets received by multiple gateways (Duplicate Packets) enable “Include Duplicate Uplinks” when setting up the notification target.

For a list of the supported notifications targets and configurations use the drop-down API menu above.

Senet provides a simple API to programmatically send downlinks to devices on the Senet Network via the https POST method. The Downlink API can be used to set triggers that respond to events and submit downlink messages to the downlink queue.

The Senet Downlink API is available to all Portal users. It is implemented as a standard parameterized URL.

  1. Click on the username Username in the top-right corner.

  2. From the dropdown menu, select Edit Account Info.


  3. Click on the Generate API Key button Gen API on the right side under Active API Key to generate and display a new API Key.


  4. Copy the key, storing it securely and safely: this key uniquely identifies the user's account to the Portal. All incoming API calls must be validated with this key in conjunction with registered devices and gateways.

  5. Using the API Key and parameterized URL described below, downlinks can now be sent to the user's devices with the Downlink API.

URL format:

The following URL format describes the parameters required to send a POST request to the Downlink API.

https://portal.senetco.io/rest/current/device/sendmsg?apikey=[Active API Key]&eui=[EUI]&value=[Data]&confirmed=[Boolean]&port=[FPort]&timeoutMinutes=[Time in Minutes]

Send multicast downlink messages to a multicast session allowing a user specified list of gateways to transmit on.

Resource URL


HTTP Method



Parameter Description Required Default Value Allowed Values
addr The IEEE device address identifier for the LoRa device that holds the session keys. Yes Hexadecimal String
pdu The PDU to multicast to the device(s). Yes Hexadecimal String
port The port (fport) to send to the device. No 1 1-254
confirmed The flag to tell the receiving device to acknowledge the reception of the PDU. No false true or false
bstnEuis The comma separated list of gateway EUIs to have broadcasting the multicast PDU. Yes Comma Separated Hexadecimal String

Curl Example

curl -H "authorization: <API_KEY>" --insecure -X POST "https://portal.senetco.io/rest/integration/device/sendmcastmsg?addr=12FFFFFF&pdu=0102030405060708090a0b0c0d0e0f&bstnEuis=00250C00010186A5,00250C00010000FC"

Response Example


The Senet Network receives payload data from devices via one or more gateways that receive the transmission. In addition to streaming the payload data (pdu), network information is also included. The data is formatted using JSON and contains the following default fields. Optional RF fields can also be added by enabling "Include RF Data" in the notification target.

The Senet Network supports the standard JSON object model where each object contains one-to-many key/values pairs. The JSON object is in the following format:


Senet may add additional fields during future Portal updates. Please ensure that your application will ignore any unknown fields and continue to parse the notification data.

   "Key":"String Value",
   "Key": Numeric Value


These fields are included by default in the notification payload:

FieldName DataType Description
ack Boolean Flag indicating if the uplink was acknowledging the receipt of a downlink
devClass String LoRaWAN Class designation ("A", "B", "C") of the device
devEui String 64-bit Extended Unique Identifier of the device transmitting the message
gwEui String 64-bit Extended Unique Identifier of the receiving Gateway that processed the message
joinId Number Incrementing Integer used to Identify the last join
pdu String Protocol Data Unit or Customer Payload data
port Number 0 indicates that the FRMPayload contains MAC commands only and 1..223 are application specific
seqNo Number Incrementing Integer used to Identify an uplink
txtime String Time the message was received by the gateway

Example with Payload Fields:

   "devClass": "A" ,


RF Fields

The following fields can be added to the payload by enabling "Include RF Data" in the the notification target editor. This is only available to a user with with administrative privileges.

FieldName DataType Description
channel Number Frequency Channel of the transmission
datarate Number Integer that maps to a spreading factor, bandwidth and bitrate (Data Rate Reference Table)
freq Number Transmit Frequency in MHz
rssi Number Received Signal Strength Indicator reported by receiving gateway
snr Number Average Signal to Noise Ratio reported by receiving gateway

Example with RF Fields:


Optional Fields

The following fields can be added to the payload by enabling "Include Estimated Location" in the notification target editor.

The Estimated Location fields are available on Production with a contractual agreement.

FieldName DataType Description
estLat Number Estimated latitude of the device in decimal degrees
estLng Number Estimated longitude of the device in decimal degrees

Duplicate uplinks are available by enabling "Include Duplicate Uplinks" in the notification target editor.

Duplicate uplinks are available on Production with a contractual agreement.

FieldName DataType Description
dup Boolean Flag indicating if the uplink was already forwarded because it was heard by multiple gateways.

Consecutive Errors

Notification Targets that produce 10 consecutive errors when forwarding data will be disabled by the network server. This is to prevent excessive load on the target and on the network server. A short outage in network connectivity should not trigger the 10 consecutive error limit on most devices. However, if your device has a very short transmit interval, it may be possible to reach the 10 consecutive error limit in a very short period of time. If your Notification Target is disabled by the network server, review the Last Error message field in the device details. This error message will help you understand why the notifications are failing. If you believe the errors were caused by an interruption in service that has now been corrected, you can re-enable the Notification Target to restore message forwarding. If the error condition persists, the Notification Target will again be disabled when the error limit is reached.