Developer guide · robotics

Connect your robot controller in minutes

Any arm, cobot, AGV/AMR, forklift or drone that can make an HTTPS request can stream into EMAN SI Ops. No SDK, no login — just a robot id, an API key and a JSON packet every few seconds. The moment the first packet lands, simulation stops and the live floor map, zone scorecards and automation rules switch to your real data.

How it works

Four steps, one JSON packet

  1. 1

    Get the robot id and API key

    A site admin registers the robot in EMAN SI Ops → Robotics → Fleet. The robot id is public; the API key (rbk_…) is shown once at registration and can be rotated from the robot's detail dialog. Store it like any other secret.

  2. 2

    Push telemetry every ~5 seconds

    POST a JSON packet to the telemetry endpoint with the X-Robot-Key header. The first packet switches the robot from simulated to live data. After 10 minutes without a packet the console marks the robot offline.

  3. 3

    Report faults and recoveries

    Send fault / warning / info / resolved events. A fault opens an alert for the operations team and can trigger automation rules; resolved clears it.

  4. 4

    Send floor positions

    Include position {x, y, heading, zone} in the packet (x/y are percentages of the site floor plan) and the robot moves on the live floor map and counts toward zone scorecards.

Telemetry

Push a packet every ~5 seconds

Paste the robot id your site admin shared (it is in the URL if they sent you this page) and the snippets below fill in. Replace <API_KEY> with the key that was shown once at registration.

import time, requests

URL = "https://www.emansi.org/api/robots/<ROBOT_ID>/telemetry"
HEADERS = {"X-Robot-Key": "<API_KEY>"}

while True:
    telemetry = {
      "status": "running",
      "battery": 76.5,
      "utilization_pct": 82,
      "cycles_total": 48211,
      "temperature_c": 41.2,
      "task": "Transfer pallet D3 → B1",
      "position": {
        "x": 42.5,
        "y": 61,
        "heading": 90,
        "zone": "Logistics loop"
      }
    }
    # position.x / position.y are % of the floor plan (0–100), heading in degrees
    r = requests.post(URL, json=telemetry, headers=HEADERS, timeout=10)
    r.raise_for_status()
    time.sleep(5)
Report faults & recoveries
curl -X POST "https://www.emansi.org/api/robots/<ROBOT_ID>/events" \
  -H "X-Robot-Key: <API_KEY>" -H "Content-Type: application/json" \
  -d '{"type":"fault","code":"E-402","message":"lidar occlusion"}'   # later: {"type":"resolved"}
Good to know
Push interval
every ~5 s · offline after 10 min of silence
Auth
X-Robot-Key header · keys start with rbk_ · stored hashed, rotate any time
Floor positions
x/y as 0–100 % of the floor plan · heading in degrees
Robot types
Industrial robot arm, Collaborative robot, Automated guided vehicle, Autonomous mobile robot, Autonomous forklift, Drone, Inspection robot, Custom robot
Responses
200 · telemetry accepted
{
  "ok": true,
  "robot": "Tugger AGV 1",
  "status": "running",
  "rules_fired": 0,
  "received_at": "2026-06-01T08:00:00+00:00"
}
201 · fault event → alert dispatched
{
  "ok": true,
  "event_id": "uuid",
  "alert": {
    "alert_id": "uuid",
    "dispatches": [
      "email",
      "push"
    ]
  }
}
  • 401missing or invalid X-Robot-Key
  • 404unknown robot id
  • 422status/battery/utilization/temperature or position out of range
Payload reference

Every field the console understands

Send what you have — every field except status is optional. Mains-powered arms simply omit battery.

PayloadFieldAccepted values
telemetrystatusrunning | idle | charging | fault | offline | maintenance
telemetrybattery0–100 (omit for mains-powered arms)
telemetryutilization_pct0–100
telemetrycycles_totallifetime cycle counter (cycles_today is derived)
telemetrytemperature_c-50–250
telemetryerror_codestring ≤80, e.g. E-402
telemetrytaskstring ≤80
telemetryspeed_mpsmetres per second
telemetrypayload_kgkg
positionx0–100 · % of floor width (left → right)
positiony0–100 · % of floor depth (top → bottom)
positionheadingdegrees, optional (0 = east, 90 = south)
positionzoneoptional zone name shown in tooltips
eventtypefault | warning | info | resolved
eventcodestring ≤40
eventmessagestring ≤300

Running a fleet already?

Register your robots on the free Starter plan, hand this page to your controller vendor and watch the floor map go live.