REST and WebSocket API
The CONNECT panel uses a documented HTTP and WebSocket API on port 5100 for all its operations. Your own tools can use the same API to read and write signals, create interfaces and run discovery. You do not need realvirtual for any of it: this page describes everything a client needs to build its own frontend or integration on CONNECT alone.
| Channel | Address | Use it for |
|---|---|---|
| Signal channel | ws://<host>:5100/ws (wss:// behind a TLS reverse proxy) | Live values in both directions |
| REST API | http://<host>:5100/... | Configuration, discovery, forcing, status |
Both run on the same port, 5100 by default. Change it with --port or REALVIRTUAL_CONNECT_PORT; see Port and bind address.
The picture shows how your own clients reach the gateway.
Access
Section titled “Access”Every request follows the access rule: a caller on the same machine passes without a key, a caller on another machine presents the gateway API key.
| How the key is sent | Accepted for |
|---|---|
X-API-Key: <key> header | REST and WebSocket |
Authorization: Bearer <key> header | REST and WebSocket |
?apikey=<key> in the URL | WebSocket handshakes on /ws and /webviewer only — a browser cannot set headers on a handshake |
GET /health is the only route that answers without a key. Clients that can set headers (Python, Node.js, .NET) should send X-API-Key also on the WebSocket handshake; ?apikey= exists for browsers. Use wss:// and https:// through a TLS reverse proxy whenever a key crosses the network — the key is a reusable secret.
Two further checks apply in front of the key:
- Browser origin. A browser sends an
Originheader with every WebSocket handshake and everyfetch. CONNECT admits the gateway’s own origin, loopback origins (http://localhost:3000during development) and the origins listed inAllowedOrigins. A frontend served from your own domain needs its origin added there — see browser-origin checks. Clients that are not browsers (Python, Node.js, .NET, curl) send noOriginand are not affected. - License. Without a community registration or license, everything except
/health,/license/*and the app shell answers403 LICENSE_REQUIRED. That includes the WebSocket handshake.
Signal channel
Section titled “Signal channel”The signal channel speaks rv WebSocket Realtime v2: UTF-8 JSON objects in WebSocket text frames, one message per frame. realvirtual, realvirtual Unity’s WebSocket Realtime interface and the ctrlX bridge use the same protocol.
Every message carries a type. Messages from CONNECT also carry "version": 2. CONNECT does not check version on incoming messages; send 2 anyway.
Connection sequence
Section titled “Connection sequence”Client CONNECT │ ── WebSocket handshake ─────────────► │ 401 / 403 here if refused │ ◄── import_answer ─────────────────── │ all names, types and values │ ◄── data (baseline) ───────────────── │ all current values │ ── init ───────────────────────────► │ optional, identifies the client │ ◄── data (changes only) ───────────── │ from now on, whenever something changes │ ── data (your writes) ─────────────► │ │ ── init (every 25 s) ──────────────► │ keeps the connection aliveCONNECT sends import_answer and the baseline data immediately after the handshake, without waiting for a request. The baseline is always delivered before any change, so a change can never overtake it. A client therefore needs no import_request on connect; sending one is harmless and returns another import_answer.
Gateway to client
Section titled “Gateway to client”import_answer — the signal catalog
Section titled “import_answer — the signal catalog”Sent on connect and in reply to import_request.
{ "type": "import_answer", "version": 2, "signals": { "Conveyor1Running": true, "Actual_Temp": 234, "Motor1_Speed": 1.45, "StartButton": false }, "signalTypes": { "Conveyor1Running": "PLCOutputBool", "Actual_Temp": "PLCOutputInt", "Motor1_Speed": "PLCOutputFloat", "StartButton": "PLCInputBool" }, "uninitialized": ["StartButton"]}| Field | Content |
|---|---|
signals | Every signal with its current value. A signal that never received a value carries its type default (false, 0, 0.0, ""). |
signalTypes | Every signal with its type — see signal types. |
uninitialized | PLCInput* signals that nobody has written yet. Their entry in signals is only the type default. Always present (possibly empty) from current gateways. |
data — values
Section titled “data — values”The baseline right after connect contains every signal except the uninitialized ones. After that, each data message contains only the signals that changed.
{ "type": "data", "version": 2, "signals": { "Conveyor1Running": false, "Motor1_Speed": 0.0 }}How changes are delivered:
- CONNECT waits for a change, then collects further changes for a short window (
WebSocket.PublishIntervalMs, default 10 ms) and sends them as one message. Only the latest value per signal is sent: a value that changes and reverts inside the window is not sent at all. - Nothing is sent while nothing changes.
- Every client receives the same changes; CONNECT does not filter per client (see
subscribebelow). - After a configuration change that removes or renames signals, CONNECT sends a full set of values again, followed by
catalog_changed.
catalog_changed — signals were added or removed
Section titled “catalog_changed — signals were added or removed”{ "type": "catalog_changed", "version": 2 }Sent when an interface registered new signals, a signal was removed or renamed, or the configuration was reloaded. Reply with import_request to get the new catalog.
model_changed — a model was published
Section titled “model_changed — a model was published”{ "type": "model_changed", "version": 2, "message": "models/Fuellstation.glb", "model": "Fuellstation.glb", "url": "models/Fuellstation.glb", "revision": "7"}Sent when a model file is uploaded to the gateway. A client without a 3D view can ignore it. url is relative to the gateway root; revision changes with every upload.
config_answer — the configuration
Section titled “config_answer — the configuration”Reply to config_get:
{ "type": "config_answer", "version": 2, "config": { "interfaces": [ { "id": "plc1", "type": "S7", "enabled": true, "ipAddress": "192.168.1.50", "...": "..." } ], "webSocket": { "port": 5100, "publishIntervalMs": 10 }, "...": "..." }}config carries the same content as GET /config: camelCase keys, and no credentials — every password, token and key is null. Prefer the REST route in your own tools; it also returns the revision headers you need for writes.
Client to gateway
Section titled “Client to gateway”data — write values
Section titled “data — write values”This is how a client commands the machine. Send only the signals you change:
{ "type": "data", "version": 2, "signals": { "StartButton": true, "SpeedSetpoint": 750.0 }}- Write
PLCInput*signals. They are the ones the controller reads. Writing aPLCOutput*signal is accepted — a client that simulates the controller, such as realvirtual Unity, does exactly that — but a connected controller overwrites the value with its next reading. - Values are checked against the signal type. Send
true/falsefor Bool, a whole number in the 32-bit range for Int, a finite number for Float (1is fine), a string for Text. An entry that does not fit is ignored; the other entries of the same message are still applied. - Unknown names are ignored without an answer.
- The value lands in the gateway first. It reaches the controller only if the interface has write access to the controller switched on (off by default). With write access off, the value is visible to every client but the PLC never sees it.
- A forced signal keeps its forced value; your write is ignored until the force is released.
- Every client receives your change in its next
datamessage — including your own connection.
import_request — request the catalog
Section titled “import_request — request the catalog”{ "type": "import_request", "version": 2 }Answered with import_answer. Use it after catalog_changed.
init — identify and keep alive
Section titled “init — identify and keep alive”{ "type": "init", "version": 2, "name": "LineDashboard" }CONNECT accepts init at any time and any number of times; it neither answers nor requires it. Its practical purpose is the keep-alive: CONNECT closes a connection that has not sent a text message for 90 seconds (WebSocket ping frames do not count). A client that only listens must therefore send something regularly. realvirtual sends init every 25 seconds; do the same.
init_values — start values for uninitialized inputs
Section titled “init_values — start values for uninitialized inputs”{ "type": "init_values", "version": 2, "signals": { "StartButton": false } }Offers start values for signals listed in uninitialized. A value is taken only while the signal is still uninitialized and not forced — the first real value wins, later offers are dropped silently. Most clients do not need this message; use data to write.
config_get — request the configuration
Section titled “config_get — request the configuration”{ "type": "config_get", "version": 2 }Answered with config_answer.
subscribe — accepted, but no filter
Section titled “subscribe — accepted, but no filter”{ "type": "subscribe", "version": 2, "subscribe": ["Conveyor1Running", "Motor1_Speed"] }CONNECT accepts subscribe and ignores it: every client receives every change. A realvirtual Unity server does filter by it, which is why clients that talk to both send it. Filter on the client side.
Messages CONNECT does not act on
Section titled “Messages CONNECT does not act on”| Message | Behaviour in CONNECT |
|---|---|
config_set | Not supported: answered with {"type":"config_result","success":false,"message":"…"}. Change the configuration through the REST API. |
discover_request, discover_bind | No answer. Use POST /discover/{id}/start and /bind. |
snapshot, transforms, alarm, state, sync_request | Reserved names, not implemented. CONNECT never sends them. |
Any other type, invalid JSON | Ignored without an answer. |
Document lease
Section titled “Document lease”A viewer tab that opens a model claims the gateway for that model’s configuration. Only one session holds the lease at a time; see Document ownership for what this means for users.
{ "type": "lease_activate", "requestId": "r1", "projectId": "<project id>", "documentId": "<document id>" }{ "type": "lease_release", "requestId": "r2", "leaseId": "<lease id>" }CONNECT answers with lease_result:
{ "type": "lease_result", "requestId": "r1", "ok": true, "leaseId": "<lease id>" }{ "type": "lease_result", "requestId": "r1", "ok": false, "reason": "held-by-other" }reason | Meaning |
|---|---|
held-by-other | Another session holds the lease |
license | The gateway is not licensed |
invalid | Missing ids, or the session is gone |
not-owner | lease_release from a session that does not hold this lease |
teardown-failed | The previous interfaces could not be stopped, or the new ones could not be started |
While a lease is held, data writes from other sessions are dropped, and REST writes to the configuration must carry the header X-Connect-Lease: <lease id>. A write without it, or with another id, is answered with 409 and {"error":"lease-required"}. The lease is released when its WebSocket connection closes. Without a lease, no header is needed.
Signal types and JSON values
Section titled “Signal types and JSON values”signalTypes names each signal from the PLC’s point of view, as in realvirtual Unity:
| Signal type | JSON value | Written by | Read by |
|---|---|---|---|
PLCOutputBool | true / false | Controller | Your client |
PLCOutputInt | integer, e.g. 42 | Controller | Your client |
PLCOutputFloat | number, e.g. 1.45 | Controller | Your client |
PLCOutputText | string, e.g. "Running" | Controller | Your client |
PLCInputBool | true / false | Your client | Controller |
PLCInputInt | integer | Your client | Controller |
PLCInputFloat | number | Your client | Controller |
PLCInputText | string | Your client | Controller |
Text signals exist only on interfaces that carry strings (for example MQTT or KEBA variables). Arrays and objects are not signal values in v2. A float is sent without a fractional part when it has none (0.0 may arrive as 0) — treat every number as a number, not by its spelling.
See signal direction for what direction means in practice.
Errors
Section titled “Errors”The signal channel has no error messages. Everything that is refused is refused either at the handshake or silently:
| Situation | What the client sees |
|---|---|
| No key from another machine, or wrong key | Handshake fails with HTTP 401 and {"error":"Invalid or missing API key"} |
| Browser origin not trusted | Handshake fails with HTTP 403 |
| Gateway not registered / no license | Handshake fails with HTTP 403 and {"error":"LICENSE_REQUIRED", "code":"LICENSE_REQUIRED", "message":"…", "url":"http://localhost:5100/"} |
Plain HTTP request to /ws | HTTP 400 |
| No text message for 90 seconds | Connection closed with code 1008, reason zombie |
| The trusted origin of the connection was removed in the tray | Connection closed with code 4403, reason origin-revoked |
| A message larger than 2 MB | Connection closed with code 1009 (message too big) |
Write to an unknown signal, a value that does not fit the type, unknown type, invalid JSON | Ignored |
| Write while the license expired during the connection | Ignored |
A browser does not expose the HTTP status of a failed handshake; it reports only error followed by close with code 1006. Call GET /health and a REST route with the same key to find out which check failed.
Reconnect
Section titled “Reconnect”A connection can drop at any time: the gateway restarts after an update, the network blinks, the 90-second timeout hits. A robust client:
- Reconnects after 500 ms, doubling the delay after every failed attempt up to 30 s. This is what realvirtual does.
- Resets the delay to 500 ms once a connection is open.
- Treats every connection as a new session: discard the catalog and values you had, and rebuild them from the
import_answerand baselinedataCONNECT sends on connect. Changes that happened while you were disconnected are contained in that baseline; there is nothing to request or replay. - Sends its own outputs again if they must hold a value. CONNECT keeps the last written value of a
PLCInput*signal across client reconnects, but not across a gateway restart.
Minimal clients
Section titled “Minimal clients”Both examples connect, authenticate, read a value, write a value, keep the connection alive and reconnect with backoff. Replace the two signal names with names from your gateway (GET /signals lists them).
TypeScript / JavaScript
Section titled “TypeScript / JavaScript”Runs in the browser and in Node.js 22 or newer, which both have a built-in WebSocket. Node.js 23.6 and newer run the file directly as client.ts; for plain JavaScript, remove the type annotations.
const URL = 'ws://localhost:5100/ws'; // from another machine: 'ws://<host>:5100/ws?apikey=<key>'const READ = 'Conveyor1Running'; // a PLCOutput* signalconst WRITE = 'StartButton'; // a PLCInput* signal
type Value = boolean | number | string;const values = new Map<string, Value>();let types: Record<string, string> = {};let attempt = 0;
function connect(): void { const ws = new WebSocket(URL); let keepAlive: ReturnType<typeof setInterval> | undefined; const send = (msg: object) => ws.send(JSON.stringify({ version: 2, ...msg }));
ws.onopen = () => { attempt = 0; values.clear(); // every connection is a new session send({ type: 'init', name: 'MinimalClient' }); keepAlive = setInterval(() => send({ type: 'init', name: 'MinimalClient' }), 25_000); };
ws.onmessage = (event) => { const msg = JSON.parse(String(event.data)); switch (msg.type) { case 'import_answer': types = msg.signalTypes ?? {}; for (const [name, value] of Object.entries(msg.signals ?? {})) values.set(name, value as Value); if (types[WRITE]?.startsWith('PLCInput')) send({ type: 'data', signals: { [WRITE]: true } }); break; case 'data': for (const [name, value] of Object.entries(msg.signals ?? {})) values.set(name, value as Value); if (READ in msg.signals) console.log(`${READ} =`, msg.signals[READ]); break; case 'catalog_changed': send({ type: 'import_request' }); break; } };
ws.onclose = () => { clearInterval(keepAlive); const delay = Math.min(500 * 2 ** attempt++, 30_000); setTimeout(connect, delay); };}
connect();Python
Section titled “Python”Needs Python 3.9 or newer and the websockets package, version 14 or newer (pip install websockets).
import asyncioimport json
import websockets
URL = "ws://localhost:5100/ws" # from another machine: ws://<host>:5100/wsHEADERS = {} # from another machine: {"X-API-Key": "<key>"}READ = "Conveyor1Running" # a PLCOutput* signalWRITE = "StartButton" # a PLCInput* signal
def message(**fields): return json.dumps({"version": 2, **fields})
async def keep_alive(ws): while True: await asyncio.sleep(25) await ws.send(message(type="init", name="MinimalClient"))
async def session(ws): values, types = {}, {} # every connection is a new session await ws.send(message(type="init", name="MinimalClient")) async for raw in ws: msg = json.loads(raw) if msg["type"] == "import_answer": types = msg.get("signalTypes", {}) values.update(msg.get("signals", {})) if types.get(WRITE, "").startswith("PLCInput"): await ws.send(message(type="data", signals={WRITE: True})) elif msg["type"] == "data": values.update(msg["signals"]) if READ in msg["signals"]: print(f"{READ} = {msg['signals'][READ]}") elif msg["type"] == "catalog_changed": await ws.send(message(type="import_request"))
async def main(): delay = 0.5 while True: try: async with websockets.connect(URL, additional_headers=HEADERS) as ws: delay = 0.5 pinger = asyncio.create_task(keep_alive(ws)) try: await session(ws) finally: pinger.cancel() except (OSError, websockets.exceptions.WebSocketException) as error: print(f"disconnected: {error}") await asyncio.sleep(delay) delay = min(delay * 2, 30)
asyncio.run(main())REST endpoints
Section titled “REST endpoints”All bodies are JSON with camelCase field names. Every error answer is a JSON object with at least error; most also carry a machine-readable code.
Overview
Section titled “Overview”| Method and path | Purpose |
|---|---|
GET /health | Liveness, version, build and capability flags — answers without authentication |
GET /health/detail | Signal and client counts, license state |
GET /status | Configuration revision and per-interface connection state |
GET /signals | All signals with values, types, forced values and init state |
POST /signals/{name}/force | Force a signal to a fixed value |
DELETE /signals/{name}/force | Release a forced signal |
POST /signals/validate | Validate a protocol address without saving anything |
GET /config | The complete configuration |
PUT /config | Replace the complete configuration |
GET /config/interfaces | List interfaces |
POST /config/interfaces | Create an interface |
PUT /config/interfaces/{id} | Replace an interface — also used for tag-table re-import |
PUT /config/interfaces/{id}/allow-web-to-plc | Switch write access to the controller for one interface |
DELETE /config/interfaces/{id} | Remove an interface |
POST /discover/{id}/start | Run discovery on a live interface |
POST /discover/{id}/bind | Register and persist selected discovered signals |
GET /interface-types | Available interface types and what each one supports |
Additional endpoints exist for the optional services: /history/* for recorded data, /cad/step-to-glb and /cad/jt-to-glb for CAD conversion, /diagnose and /comments for AI diagnosis, and /update/* for updates.
Status codes
Section titled “Status codes”| Status | Meaning | Body |
|---|---|---|
200 / 201 | Success | Route-specific |
400 | Invalid request, or a limit refused it | {"error": "...", "code": "..."} — see below |
401 | No key from another machine, or wrong key | {"error": "Invalid or missing API key"} |
403 | Browser origin not trusted, or LICENSE_REQUIRED | License: {"error":"LICENSE_REQUIRED","code":"LICENSE_REQUIRED","message":"…","url":"…"} |
404 | Interface not found or not discovery-capable | {"error": "..."} |
408 | Discovery took longer than 30 seconds | empty |
409 | Name collision, revision mismatch, interface exists, discovery busy, or lease-required (another session holds the document lease) | {"error": "...", ...} |
422 | Discovery bind could not resolve an address | {"error", "code", "unresolved": [...]} |
503 | CONFIG_BUSY — another request is writing the configuration; retry | {"error":"CONFIG_BUSY","code":"CONFIG_BUSY","message":"…","detail":"…"} |
Codes you will meet in a 400:
code | Cause | Extra fields |
|---|---|---|
SIGNAL_LIMIT_REACHED | The license’s signal limit would be exceeded | limit, requested, rejected (names) |
INTERFACE_TYPE_NOT_ALLOWED | The delivery does not include this interface type | type, types, allowed |
revision-required | allow-web-to-plc without a revision | — |
A request body that is not valid JSON, or does not fit the expected shape, is refused with 400 before the route runs.
Health and status
Section titled “Health and status”curl http://localhost:5100/health{ "status": "ok", "version": "1.8.0", "build": 52, "buildDate": "2026-11-04 23:03", "appVersion": "1.8.0.52", "release": { "semver": "1.8.0", "channel": "stable", "build": 52 }, "stepImport": true, "jtImport": true, "...": "further capability flags"}status is "starting" while the bundled web server is still starting, otherwise "ok". Clients should feature-detect optional services from the flags and treat a missing flag as false.
curl -H "X-API-Key: $KEY" http://localhost:5100/health/detail{ "signals": 128, "clients": 2, "signalVersion": 48211, "license": { "...": "license state" }, "diagnoseRerank": "ready", "diagnoseProviders": { "embedding": "cloud", "rerank": "local", "chat": "cloud" }}GET /status returns revision and instance of the configuration and one entry per interface under interfaces with its connection state and its configRevision — the value allow-web-to-plc expects.
Signals
Section titled “Signals”curl -H "X-API-Key: $KEY" http://localhost:5100/signals{ "signals": { "Conveyor1Running": true, "Motor1_Speed": 1.45, "StartButton": false }, "types": { "Conveyor1Running": "PLCOutputBool", "Motor1_Speed": "PLCOutputFloat", "StartButton": "PLCInputBool" }, "forced": {}, "initialized": { "Conveyor1Running": true, "Motor1_Speed": true, "StartButton": false }, "count": 3, "version": 48211}version increases with every value change; compare it to tell whether anything changed since your last call. For continuous values, use the signal channel rather than polling this route.
Force a signal. There is no plain REST write; forcing is the REST way to set a value. A forced signal keeps its value — incoming controller values and client writes are ignored — until it is released. A forced PLCInput* signal is sent to the controller like any other write, subject to write access.
curl -X POST -H "X-API-Key: $KEY" -H "Content-Type: application/json" \ -d '{"value": true}' http://localhost:5100/signals/StartButton/force{ "name": "StartButton", "forced": true, "value": true }value is a JSON boolean, integer, number or string; anything else answers 400 with {"error":"value must be a bool, integer, number or string"}. A whole number without a decimal point is stored as an integer, anything else as a float.
curl -X DELETE -H "X-API-Key: $KEY" http://localhost:5100/signals/StartButton/force{ "name": "StartButton", "forced": false }Validate an address before you create a signal:
curl -H "X-API-Key: $KEY" -H "Content-Type: application/json" \ -d '{"interfaceType":"S7","protocolAddress":"DB1.DBX0.0","dataType":"Bool","signalType":"PLCOutputBool"}' \ http://localhost:5100/signals/validate{ "checked": true, "valid": true, "error": null, "effectiveType": "PLCOutputBool", "normalizedAddress": "DB1.DBX0.0" }The answer is always 200; read valid. checked: false means CONNECT has no address check for this interface type and accepted the address as entered.
Configuration
Section titled “Configuration”GET /config, GET /config/interfaces, GET /config/mirrors and GET /config/mappings return the stored objects and two headers: X-Config-Revision and X-Config-Instance.
An interface looks like this (fields abbreviated; each protocol adds its own settings object):
{ "id": "plc1", "type": "S7", "enabled": true, "name": "Line PLC", "ipAddress": "192.168.1.50", "rack": 0, "slot": 1, "updateCycleMs": 10, "reconnectDelaySec": 10, "allowWebToPlc": false, "signals": [ { "protocolAddress": "DB1.DBX0.0", "name": "Conveyor1Running", "type": "PLCOutputBool", "dataType": "Bool", "comment": "", "record": false } ]}The simplest way to get a valid body for a protocol is to configure one interface in the CONNECT panel and read it back with GET /config/interfaces.
| Request | Body | Success answer |
|---|---|---|
POST /config/interfaces | One interface. Without id, CONNECT generates one. | 201, Location: /config/interfaces/{id}, the stored interface |
PUT /config/interfaces/{id} | One interface; the id in the path wins | 200 {"success": true} |
DELETE /config/interfaces/{id} | — | 200 {"success": true} |
PUT /config | The complete configuration: interfaces, webSocket, mirrors, mappings, influxDb | 200 {"success": true} |
PUT /config/interfaces/{id}/allow-web-to-plc | {"allow": true, "revision": "<from GET /status>"} | 200 {"success": true, "allowWebToPlc": true} |
Behaviour to know:
- Credentials are write-only. No route returns a password, token or key — not
GET /config, notGET /config/interfaces, not the answer toPOST /config/interfaces, notconfig_answer. Credential fields read asnull; the InfluxDB token is reported asinfluxDb.tokenConfigured. To keep a stored credential, send it back asnull(or masked, for a URL) or leave it out; to clear it, send an empty string; to change it, send the new value. - Signal names are global. A name already used by another interface answers
409with{"error": "Signal name(s) already bound to another interface", "collisions": [{"signal": "...", "existingInterfaceId": "..."}]}. - Duplicate id.
POSTwith an existingidanswers409withcode: "interface-exists". - Unknown id.
PUTandDELETEwith an unknownidchange nothing and still answer200. - Write access.
allow-web-to-plcanswers404(interface-not-found) or409(revision-mismatch, when the interface changed since you read the revision). - Applying. Writes are saved atomically and applied by hot-reload. Affected interfaces restart; the gateway does not. Connected WebSocket clients receive
catalog_changed.
Discovery
Section titled “Discovery”curl -X POST -H "X-API-Key: $KEY" http://localhost:5100/discover/plc1/start{ "interfaceId": "plc1", "count": 1, "signals": [ { "name": "Motor1.Speed", "displayName": "Motor1.Speed", "dataType": "Double", "direction": "output", "browsePath": "Objects/Motor1/Speed", "currentValue": 1.45, "symbolKey": "Motor1.Speed", "protocolAddress": "ns=2;s=Motor1.Speed" } ]}direction is input, output or unknown from the controller’s point of view. Use protocolAddress when you bind; name and browsePath exist for older clients.
curl -X POST -H "X-API-Key: $KEY" -H "Content-Type: application/json" \ -d '[{"protocolAddress":"ns=2;s=Motor1.Speed","signalName":"Motor1_Speed","type":"PLCOutputFloat","dataType":"Double","record":false}]' \ http://localhost:5100/discover/plc1/bind{ "success": true, "bound": 1 }Discovery answers 404 when the interface does not exist or cannot browse, 408 after 30 seconds and 409 while another discovery runs. Bind answers 422 with unresolved when an address does not match exactly one entry of the last discovery, and the limit and collision errors described above.
Interface types
Section titled “Interface types”curl -H "X-API-Key: $KEY" http://localhost:5100/interface-typesReturns {"types": [...]} with one entry per interface type this delivery offers, including which features it supports. Use it to build interface forms instead of hard-coding the list.
Relation to realvirtual Unity
Section titled “Relation to realvirtual Unity”realvirtual Unity’s WebSocket Realtime interface speaks the same protocol and can connect to CONNECT as a client (ws://<host>:5100/ws). Its wire reference describes a few things that only a Unity server does: filtering by subscribe, answering subscribe with snapshot, and applying config_set. Against CONNECT, the behaviour on this page applies.
See also
Section titled “See also”- AI clients — the MCP endpoint
- Remote access and security — keys, origins and TLS
- Configuring interfaces — signal direction and write access