New: the AI firewall watches every module and explains each incident in plain words. See how it works

API

Connect your own systems to Hermetry – the management REST API, webhooks and AI assistants over MCP, with keys, limits and full route references.

Hermetry has three ways for your own systems to work with your organisation, and a separate API for devices. This section covers the first three.

InterfaceDirectionWho uses itLogin
Management REST APIYour system calls HermetryERPs, MES, ticket systems, scripts, reportsAPI key
WebhooksHermetry calls your systemAnything that must react to events: a device going offline, an alarm opening, a command endingA signing secret you verify
MCP serversAn AI assistant calls HermetryAI assistants that support MCPAPI key or a sign-in (OAuth)
Device APIDevices send data and receive commandsDevices and gatewaysDevice token, MQTT user name and password, or certificate

The device API is documented with the devices: MQTT, Device HTTP API and MQTT topics and payloads. Do not use an API key on a device, and do not use a device token in an integration.

What you can do with the management API

With an API key you can do from code what a member can do in the app, within the permissions you give the key:

  • list, create, change and delete devices and device profiles, and rotate device credentials,
  • read and write attributes, read the latest values and the history of telemetry,
  • send commands to devices and read their results,
  • list, acknowledge and resolve alarms, and replace a profile’s alarm rules,
  • build and read the tree of sites and assets, and place devices in it,
  • register firmware, start rollouts and change device settings,
  • manage LoRaWAN gateways and devices.

The REST API has no route for writing telemetry. Readings come from devices (MQTT or HTTP) or from flows.

A first call

  1. Open API Keys and create a key with the Read only preset of the devices module. See Authentication.
  2. Find your organisation id (tenantId) in the address bar of the app: https://<your host>/tenant/<tenantId>/admin/....
  3. Call the device list:
curl -s "https://<your host>/tenant/<tenantId>/api/iot/devices?pageSize=5" \
  -H "Authorization: Bearer sk_live_…"

The answer is { "devices": [...], "total": 42 }.

In this section

Getting started:

Route references:

Events:

AI assistants:

Before you build an integration

  • Give each integration its own key with only the permissions it needs. See API key hardening.
  • Expect 429 and honour Retry-After.
  • Treat ids as opaque UUIDs. Never build them yourself.
  • Prefer webhooks to polling for changes: a device’s connection, an alarm, a command result.
  • API keys and webhooks are managed by administrators. Rotating a webhook’s signing secret needs the Owner role.