Appearance
Generic HTTP integration
POST JSON from any system that can call an HTTPS webhook. This integration only receives. To send a reading to another system, use a webhook node on a rule engine.
In Autoconnecto
- Open Integrations → New integration.
- Choose Generic HTTP, name it, create.
- Copy the HTTP endpoint URL.
- Generate a webhook secret.
- Start the integration.
Call the endpoint
http
POST /api/v1/integrations/i/{integrationId}/telemetry?tenantId={tenantUuid}
X-Webhook-Secret: {your-secret}
Content-Type: application/json
{
"deviceToken": "YOUR_DEVICE_TOKEN",
"temperature": 22.5,
"humidity": 48
}Identify by externalDeviceId
If you do not have the device token, post the Autoconnecto device id (or a mapped external id) with the tenant query:
http
POST /api/v1/integrations/generic/telemetry?tenantId={tenantUuid}
X-Webhook-Secret: {your-secret}
Content-Type: application/json
{
"externalDeviceId": "device-87533b15-c04a-4c27-bb2a-adcdaf2444f4",
"telemetry": {
"temperature": 22.5,
"humidity": 48
}
}You can also map an attribute such as integration.external_id or lorawan.dev_eui and send that value as externalDeviceId.
Gateway child relay
For childDeviceId posts, the child’s parentDeviceId must be set to the gateway device. The webhook result reports that child deviceId.
Runnable sample
From the device SDK repo:
bash
cd examples/integrations
export TENANT_ID=… WEBHOOK_SECRET=… DEVICE_TOKEN=…
./generic-webhook.shAlso: generic-webhook.ps1, generic-webhook.py. Gateway child relay: gateway-relay-webhook.sh (MODE=webhook).
Verify
After a successful POST, open the integration’s Recent events and the device’s telemetry.
Optional transform
Add Transform steps on the integration detail page to rename, scale, or drop keys before ingest. Optional Script transform runs after those steps for custom JavaScript decoding.
