Documentation / API

Integrations

Network integrations: create TTN, ChirpStack and Sigfox integrations, then receive their webhooks and callbacks, including the legacy HidnSeek routes.

Managing integrations

Paths relative to https://apiv1.opensensorcloud.com/api/v1; role admin.

Method and path Result
GET /orgs/{orgId}/integrations array of integrations
POST /orgs/{orgId}/integrations 201, the integration with its secret (shown once)
PATCH /orgs/{orgId}/integrations/{integrationId} the integration
DELETE /orgs/{orgId}/integrations/{integrationId} 204
{ "kind": "sigfox", "name": "Sigfox trackers",
  "options": { "autoCreateDevices": true, "defaultProfileId": "9f10a175-…" } }

kind: ttn, chirpstack or sigfox. options only exists for Sigfox: autoCreateDevices (default false) creates a device Sigfox <ID> for an unknown device id, with the profile defaultProfileId (a profile of the organization, 400 unknown_profile otherwise). PATCH accepts name and options.

Creation response:

{
  "id": "e5c70adf-4b33-40cf-ab47-deaf60cfe174", "kind": "sigfox", "name": "Sigfox trackers",
  "options": { "autoCreateDevices": true, "defaultProfileId": "9f10a175-…" },
  "webhookUrl": "https://apiv1.opensensorcloud.com/ingest/v1/sigfox/e5c70adf-4b33-40cf-ab47-deaf60cfe174",
  "createdAt": "2026-11-13T10:30:34.000Z",
  "secretHeader": "x-osc-secret", "secret": "mw92M9BIdZK…"
}

Common rules for callbacks

  • Every callback carries the secret in the x-osc-secret header. A wrong or missing secret returns 401 {"error":"unauthorized"}.
  • Any other outcome returns 202, so that the network server does not retry forever:
{ "status": "accepted", "points": 4 }
{ "status": "ignored", "reason": "devEUI 70b3d57ed0001234 unknown in the organization" }
{ "status": "rejected", "error": "…" }
  • Each callback is visible in the device's live debug view; daily message quotas apply.

LoRaWAN: The Things Stack v3

POST /ingest/v1/lorawan/ttn/{integrationId}

A TTN "Uplink message" webhook (JSON). The device is found by end_device_ids.dev_eui among the devices whose devEUI is set in the integration's organization. If the network server provides uplink_message.decoded_payload, it is used; otherwise frm_payload (base64) goes through the profile's decoder, with f_port. The measurement time is received_at. Other message types (join, location…) are ignored. The RSSI and SNR of the best gateway are stored as the channels lora.rssi and lora.snr; spreading factor, gateway and fCnt appear in the live debug view.

LoRaWAN: ChirpStack v4

POST /ingest/v1/lorawan/chirpstack/{integrationId}?event=up

The ChirpStack HTTP integration with JSON encoding; ChirpStack appends ?event=… itself. Only event=up is processed; join, status and others are ignored with 202. The device is found by deviceInfo.devEui; object (decoded by ChirpStack) is used if present, otherwise data (base64) goes through the profile's decoder, with fPort. Radio channels as for TTN (lora.rssi, lora.snr).

Sigfox

POST /ingest/v1/sigfox/{integrationId} — JSON body from a Sigfox custom callback:

{ "device": "1A2B3C", "time": 1794560590, "data": "6666434266661640aae6c103", "seqNumber": 1203,
  "station": "37F4", "rssi": -121.5, "snr": 12.3, "duplicate": false,
  "computedLocation": { "lat": 48.85, "lng": 2.35, "radius": 2500 } }
  • time: epoch seconds (epoch milliseconds and ISO 8601 accepted; missing → now). Numbers may be sent as strings.
  • data: hexadecimal, at most 12 bytes; always decoded by the profile's decoder (fPort = null).
  • device: Sigfox ID, matched case-insensitively and without leading zeros against the devices' Sigfox ID in the integration's organization. Unknown: ignored, or created when autoCreateDevices is on (within the device quota).
  • duplicate: true is ignored. A (device, seqNumber) already processed in the last 10 minutes is ignored, except that a later callback carrying computedLocation ("Data advanced") adds the network location at the first message's time.
  • Added points: sigfox.rssi, sigfox.snr and, with computedLocation, sigfox.lat, sigfox.lng, sigfox.radius (metres).

Legacy HidnSeek routes

For forwarding the old HidnSeek server's callbacks (/positions/sigfox, /positions/sigfox_geoloc) without reconfiguring the Sigfox backend. Fields may be sent as query string, HTML form or JSON (merged). The x-osc-secret header is preferred; ?secret= is accepted on these two routes only (it ends up in access logs).

Method and path Fields
GET or POST /ingest/v1/sigfox/{integrationId}/legacy id, data, time, seqNumber, station, rssi, signal (= SNR), lat / lng (network location, no radius)
GET or POST /ingest/v1/sigfox/{integrationId}/legacy-geoloc id, seqNumber, lat, lng, radius

The geoloc route stores sigfox.lat, sigfox.lng and sigfox.radius at the time of the message with that sequence number (or time, or now). It never creates a device.

curl "https://apiv1.opensensorcloud.com/ingest/v1/sigfox/$INTEGRATION/legacy?id=1A2B3C&data=6666434266661640aae6c103&time=1794560590&seqNumber=1203" \
  -H "x-osc-secret: $SECRET"