ados-control). It serves most routes itself and forwards a fixed set of prefixes to a residual Python app over an internal Unix socket, authenticating them first. To a client it is one HTTP API for status, telemetry, commands, configuration, video, pairing and the rest. The CLI, the terminal dashboard, the browser dashboard and Mission Control all use it.
Treat :8080 as one API. Which process answers a route is not a contract.
Base URL
http://192.168.1.50:8080 or http://ados-9f2c1a.local:8080. On the node itself use http://localhost:8080. The API is plain HTTP on the LAN; see Hardening.
Authentication
Send the pairing key in theX-ADOS-Key header. The key is created at pairing and stored in /etc/ados/pairing.json; it starts with ados_. The node also accepts an optional operator API key in the same header; see Operator API key.
- Public routes. A few routes answer without a key so an unpaired node can be found and paired:
/api/pairing/info,/api/pairing/claim,/api/pairing/code,/api/ping,/api/version,/healthzand the dashboard PIN routes. The full list is in Public routes. - The unpaired gate. While a node is unpaired, its data routes answer on-box callers and the first-boot lifelines (link-local, the node’s own hotspot at
192.168.4.1and USB tether at192.168.7.1), require a dashboard PIN session from other callers on the operator LAN, and refuse remote callers. The pairing claim is refused to remote callers. - Dashboard PIN session. The browser dashboard exchanges its PIN at
POST /api/dashboard/pin/verifyand then sends the session in thex-ados-dashboard-sessionheader instead of a key. The dashboard PIN itself is covered on Agent dashboard overview.
X-ADOS-Key on a WebSocket handshake. Mint a short-lived ticket with POST /api/_ws/ticket and body {"scope": "<scope>"} (authenticated with the key) and pass it as a subprotocol: new WebSocket(url, ["ados-ws-ticket", ticket]). The agent mints tickets only for the scopes it knows, for example vision.detections for the detection stream and nav.stream for the navigation stream.
Conventions
-
JSON. Requests and responses are JSON unless a route says otherwise (for example
GET /api/video/snapshotreturnsimage/jpeg). -
Armed guard. Actions that can drop the link or change how the vehicle flies (reboot, supervisor restart, link-carrying unit restarts, radio hop, TX power and unpair, profile or role changes, signing enrolment, parameter writes, extension install and lifecycle) answer
409while the vehicle is armed:Override with"force": truein the JSON body, or?force=1on a bodiless request. -
Residual routes. A residual prefix answers
501rather than404on a profile that does not run that feature. - Relay-forbidden routes. Pairing, unpair, MCP token, dashboard PIN set, signing disable and some setup routes refuse requests that arrive through a ground station’s relay proxy. Call them on the node’s own network.
-
Extension errors. The extension lifecycle routes use one envelope:
{"ok": false, "code": N, "kind": "...", "detail": "..."}.
Route domains
Examples
Status
Configuration
persisted; see Configuration.
Video snapshot
main path, with an X-Captured-At header. Nothing is written to disk. The route answers 503 with E_NO_FRAME when no frame is available.
WFB-ng link and parameters
Pairing
Ground station
Extension HTTP passthrough
An extension that declaresagent.http: true serves its own API on a Unix socket the plugin host creates for it. /api/plugins/{id}/x/{path} forwards GET, POST, PUT, PATCH and DELETE there as /{path}, keeping the query string, and upgrades WebSockets. The key is checked before the request is forwarded, and the route also works through a ground station’s relay proxy. When the extension is not serving, the answer is 503 with {"detail": "plugin <id> is not serving HTTP"}.
failure_reason: why the host stopped or refused the extension (for example tampered: <detail> or signer_revoked), or null when it has not failed. GET /api/plugins/{id}/locales/{lang} returns the extension’s locales/<lang>.json bundle so Mission Control can show its labels in the extension’s own words; lang is a bare tag of letters, digits, - and _.
Video attention profile
/api/video/profile sets which video profile this drone streams. POST {"profile": "hero"} or {"profile": "thumbnail"} moves the base profile, which is what a ground station’s fleet-hero assignment sends. A viewer can instead hold a lease: POST {"profile": "hero", "holder": "<id>", "lease_s": 30} creates or renews it, and DELETE /api/video/profile?holder=<id> (or a thumbnail POST with the same holder) releases it. The drone streams hero while any lease is live, and a lease lapses lease_s seconds (5 to 120, default 30) after its last renewal, so a viewer that goes away cannot leave a drone on hero. holder is 1 to 64 characters of letters, digits, ., _, : and -; vision is reserved. Every method answers 200 with the profile the encoder actually applied and the live leases, or 503 on a node with no video pipeline.
EKF source set
ekfSourceSet switches ArduPilot’s EKF3 between its three configured source sets (EK3_SRCn_*) with MAV_CMD_SET_EKF_SOURCE_SET (42007). Pass the set number as the only argument; anything other than 1, 2 or 3 is a 400 before a frame is built. PX4 has no source sets and answers UNSUPPORTED, which the response’s ack block reports.
Vision status
GET /api/vision/status lists the models registered with the vision engine and reports the inference backend:
When the vision engine is not running the route answers
503. A build without the requested backend no longer substitutes a mock silently: it reports unavailable and logs vision_backend_unavailable at startup.
Navigation and map
The agent collects navigation state that extensions publish on the plugin event bus and serves it from the host, so an operator surface can show it without loading an extension UI. The sources are Navigation’s pose, planar scan, occupancy, map-status andnav.state topics, and Follow-Me’s follow.state and follow events. Every route is served on every profile; a kind nothing publishes is null, never a 404.
data is the source payload unchanged.
GET /api/v1/nav/status returns the latest entry of each kind:
WS /api/v1/nav/stream pushes frames {kind, ts_ms, data} for pose, scan, nav, follow and map. Each kind is sent at most 10 times a second and only its latest value goes out, so a slow client never queues stale frames. One-shot follow events arrive as {kind: "follow_event", ts_ms, topic, data} with topic follow.reacquired or follow.lost. Authenticate the upgrade with the X-ADOS-Key header or a nav.stream ticket.
GET /api/v1/map/live?since=<seq> returns the live occupancy tiles that changed after seq (omit it for every tile):
seq and pass it on the next call. A since ahead of the node’s current seq (a client still holding an earlier session) gets every tile again.
Operator API key
Besides the pairing key, a node accepts one optional operator API key inX-ADOS-Key, stored at security.api.api_key in the agent config.
POST /api/v1/security/api-key/rotatemints a new key in the pairing key’s format (ados_plus URL-safe base64), stores it and returns it once:{"ok": true, "api_key": "ados_...", "rotated_at": "<RFC 3339 UTC>"}. No read route returns it again;GET /api/configredacts it.DELETE /api/v1/security/api-keyremoves the key and answers{"ok": true}. The pairing key is untouched, so paired clients keep working.
403 when the request crossed a ground station’s radio relay or arrived through a proxy or tunnel, and an MCP token can never call them. The log events security.api_key_rotated and security.api_key_cleared record each change without the key.
CORS
CORS is on with an allowlist, not a wildcard. The defaults cover the local Mission Control development origins (localhost:4000, localhost:4001). Add origins without dropping the defaults:
cors_origins and cors_origins_extra.
Machine-readable surfaces
The node does not serve Swagger UI or ReDoc. Use:GET /api/config/schemafor the build-time-embedded shape of the config surface, to drive a settings UI.docs/api-surface.mdin the agent repository, the generated table of every route and the process that serves it. The route reference below mirrors it.ados logs status --openapifor the OpenAPI document of the Black Box query API.
Route reference
Every route the node serves, generated from the agent’s route table.{name} matches one path segment; {*name} matches the rest of the path. Method WS marks a route that answers only a WebSocket upgrade.
Public routes
These answer without a key.Native routes
Served by the control front itself.Residual routes
Forwarded to the residual app on the same port after authentication.Next steps
Agent CLI reference
The
ados commands built on this API.Systemd services
The units behind each route domain.