live-control
Live control of a robot: real motion from code, a policy or teleoperation. An agent or a key may ask. A signed-in person arms it for a window, in teach or full mode. The bridge on the robot's computer verifies the grant offline and enforces the limits the person read.
GET / v1/ devices/ {device_id}/ live-control
List a device's live-control requests and grants
Newest first. - as the device lists every device you can see. status narrows the list. An issued or armed grant past its expires_at reads as expired, and status=issued lists only grants still inside their window. The bridge on the robot's computer polls status=issued and verifies each token offline before it arms.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
status | query | LiveControlStatus | |
limit | query | integer | Page size. |
cursor | query | string | Opaque cursor from the previous page's |
Responses
| Status | Description | Body |
|---|---|---|
200 | Page of live-control requests. | LiveControlPage |
401 | Missing or invalid credentials. | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
POST / v1/ devices/ {device_id}/ live-control
Ask a person to arm live control of a robot
Files a request to arm one robot on this device for live control: real motion driven by code, a policy or teleoperation. A request arms nothing. A signed-in person decides it on the consent page (grantLiveControl). No API key can grant one.
The robot is the device's robot (its card must declare an interface, else 422). robot_name is the robot's name in the bridge's own configuration on the robot's computer. mode is teach (reduced speed, the default) or full (the declared limits). minutes is the window, 1 to 60, 10 by default. The answer carries the limits table the person will read. 404 for a device you cannot see, 409 when it was disconnected. Audited as device.live_request.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
Request body
| Field | Type | Description |
|---|---|---|
robot_name | string | The robot's name in the bridge's configuration on the robot's computer. |
robot_type | string | null | LeRobot's type for the robot, when the bridge drives it through LeRobot ( |
mode | LiveControlMode | |
minutes | integer | |
reason | string | null | Why, in the asker's words. The person reads it before deciding. |
Responses
| Status | Description | Body |
|---|---|---|
201 | The pending request, with the limits a person will read. | LiveControl |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ live-control/ {grant_id}
Get a live-control request by its id
What the consent page shows: the robot and what can move on it, the mode, the limits table, the window, and who asked. After the decision the same id is the record: who decided, when the bridge armed, when and why it ended. A request on a device you cannot see is 404.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
grant_id | path | Id | Live-control request id ( |
Responses
| Status | Description | Body |
|---|---|---|
200 | The request or grant. | LiveControl |
401 | Missing or invalid credentials. | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
POST / v1/ live-control/ {grant_id}/ grant
Arm live control (web session only)
session scope: a person signed in to the web app. No API key of any scope can call this. Approving a pending request mints an EdDSA (Ed25519) token. It is bound to the device (sub), the robot, its name on the bridge, the mode, the interface fingerprint and the limits table's digest, with exp = now + minutes. The bridge verifies it offline against the key it pinned and arms the robot until exp.
The person may shorten the window or lower full to teach. A longer window or a wider mode is 422. There is no way to extend a grant: a longer session is a new request. safety_acknowledged must be true (422 otherwise). 409 when the request is not pending or the device was disconnected. Where an organization requires a second person, the person who asked cannot grant (403). Audited as device.live_armed.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
grant_id | path | Id | Live-control request id ( |
Request body
| Field | Type | Description |
|---|---|---|
minutes | integer | null | A shorter window than asked. Absent means as asked. |
mode | LiveControlMode | null |
|
safety_acknowledged | boolean | The person confirms the workspace is clear and a hardware stop is within reach. Must be true. |
Responses
| Status | Description | Body |
|---|---|---|
200 | The issued grant. | LiveControl |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
POST / v1/ live-control/ {grant_id}/ deny
Deny a live-control request (web session only)
session scope. A person declines a pending request, with a reason the asker reads. 409 when it is not pending. Audited as device.live_ended with the reason denied.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
grant_id | path | Id | Live-control request id ( |
Request body
| Field | Type | Description |
|---|---|---|
reason | string |
Responses
| Status | Description | Body |
|---|---|---|
200 | The denied request. | LiveControl |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
POST / v1/ live-control/ {grant_id}/ stop
Stop a live session from the hub
key:read scope: anyone who can see the device may stop it. A person on the web page, a key or an agent. A stop only reduces what can move, which is why it needs no more than read. An issued grant ends at once. An armed one keeps its status until the bridge confirms. The bridge listens for stops (listLiveControlStops) and acts on every one it receives: it latches its e-stop and ends the session. It takes no motion or limits this way. 409 when the grant already ended. Audited as device.live_ended with the reason stopped.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
grant_id | path | Id | Live-control request id ( |
Responses
| Status | Description | Body |
|---|---|---|
200 | The grant, with | LiveControl |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
GET / v1/ devices/ {device_id}/ live-control/ stops
Wait for a stop from the hub
The bridge holds this open. It answers at once when a person asked to stop a grant on this device that is still inside its window, and the bridge has not confirmed it yet. Otherwise it waits up to wait seconds (at most 30) and answers with an empty list.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
device_id | path | Id | Device id ( |
wait | query | number |
Responses
| Status | Description | Body |
|---|---|---|
200 | The stops to act on. | LiveControlStops |
401 | Missing or invalid credentials. | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
POST / v1/ live-control/ {grant_id}/ report
The bridge reports that it armed, refused or ended a grant
Signed by the device's own key over the canonical JSON of {grant_id, device_id, kind, reason, ts}, verified against the key the device registered (422 otherwise). armed moves an issued grant to armed. refused and ended end it, with the bridge's reason: expired, e_stop, hub_stop, bridge_stop, bridge_restart, disarmed, or the offline check that failed. ended with hub_stop confirms a stop from the hub, also on a grant that already ended. A report changes only this grant's record. 409 for a transition the grant cannot make. ended and refused are audited as device.live_ended.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
grant_id | path | Id | Live-control request id ( |
Request body
| Field | Type | Description |
|---|---|---|
kind | LiveControlReportKind | |
reason | string |
|
detail | string | null | One sentence for a person. It is not part of the signed payload. |
ts | string (date-time) | The bridge's clock; part of the signed payload. |
signature | string | base64url Ed25519 signature, by the device's registered key, over the canonical JSON of |
Responses
| Status | Description | Body |
|---|---|---|
200 | The grant after the report. | LiveControl |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
Schemas (14)
The schemas these operations reach before any other tag’s do. A type that links elsewhere is rendered on that tag’s page.
LiveControlStatus
pending waits for a person. denied was declined. issued is signed and waits for the bridge. armed means the bridge verified it and the robot may move. ended is over, with the bridge's reason. expired is computed for an issued or armed grant past its expires_at.
LiveControlPage
| Field | Type | Description |
|---|---|---|
items | array of LiveControl | |
next_cursor | string | null |
LiveControlRequestCreate
| Field | Type | Description |
|---|---|---|
robot_name | string | The robot's name in the bridge's configuration on the robot's computer. |
robot_type | string | null | LeRobot's type for the robot, when the bridge drives it through LeRobot ( |
mode | LiveControlMode | |
minutes | integer | |
reason | string | null | Why, in the asker's words. The person reads it before deciding. |
LiveControl
| Field | Type | Description |
|---|---|---|
id | Id | |
device | LiveControlDevice | |
robot | RepoRef | null | The device's robot. Null once the robot repo was deleted. |
robot_name | string | |
robot_type | string | null | |
robot_label | string | null | How a page names the robot: the label of its LeRobot type ( |
joints | array of string | What can move, in the interface's joint order. |
mode | LiveControlMode | |
minutes | integer | |
reason | string | null | |
status | LiveControlStatus | |
requester | ActivityActor | |
limits | LiveControlLimits | |
limits_sha256 | string | |
interface_fingerprint | string | |
created_at | string (date-time) | |
decided_by | UserPublic | null | |
decided_at | string (date-time) | null (date-time) | |
decision_reason | string | null | |
safety_acknowledged | boolean | |
issued_at | string (date-time) | null (date-time) | |
expires_at | string (date-time) | null (date-time) | |
armed_at | string (date-time) | null (date-time) | When the bridge reported it verified the grant and armed the robot. |
ended_at | string (date-time) | null (date-time) | |
end_reason | string | null | |
end_detail | string | null | |
stop_requested_at | string (date-time) | null (date-time) | When a person pressed Stop on the hub. |
stop_requested_by | UserPublic | null | |
stop_acknowledged_at | string (date-time) | null (date-time) | When the bridge confirmed it acted on the stop. |
kid | string | null | |
token | string | null | The signed grant, for the bridge. Present for an issued or armed grant when the caller uses an API key or a device credential. Null for a browser session. |
LiveControlGrantCreate
| Field | Type | Description |
|---|---|---|
minutes | integer | null | A shorter window than asked. Absent means as asked. |
mode | LiveControlMode | null |
|
safety_acknowledged | boolean | The person confirms the workspace is clear and a hardware stop is within reach. Must be true. |
LiveControlDeny
| Field | Type | Description |
|---|---|---|
reason | string |
LiveControlStops
| Field | Type | Description |
|---|---|---|
stops | array of LiveControlStop |
LiveControlReport
| Field | Type | Description |
|---|---|---|
kind | LiveControlReportKind | |
reason | string |
|
detail | string | null | One sentence for a person. It is not part of the signed payload. |
ts | string (date-time) | The bridge's clock; part of the signed payload. |
signature | string | base64url Ed25519 signature, by the device's registered key, over the canonical JSON of |
LiveControlMode
teach moves at reduced speed: each joint at most 0.5 rad/s and a quarter of its declared velocity limit, the tool at most 0.25 m/s where the kinematics are known. full moves within the declared limits.
LiveControlDevice
| Field | Type | Description |
|---|---|---|
id | Id | |
name | string |
LiveControlLimits
The table the bridge enforces, computed from the robot card. The grant binds its sha256. The bridge recomputes it from the interface it pinned and refuses a grant whose table differs.
| Field | Type | Description |
|---|---|---|
version | integer | |
mode | LiveControlMode | |
joints | array of LiveControlLimitRow | |
tool_speed_cap | number | null | The tool's top speed (m/s) in teach mode, where the kinematics are known. |
load_hold_fraction | number | The bridge holds when a joint's load stays above this share of its limit. |
load_hold_seconds | number |
LiveControlStop
| Field | Type | Description |
|---|---|---|
grant_id | Id | |
robot_name | string | |
requested_at | string (date-time) |
LiveControlReportKind
LiveControlLimitRow
| Field | Type | Description |
|---|---|---|
joint | string | |
lower | number | null | The lowest angle the bridge allows (rad). Null when the card declares no range, and the joint does not move. |
upper | number | null | |
range_source | string |
|
velocity_declared | number | null | The card's velocity limit (rad/s). |
velocity_cap | number | The speed the bridge allows in this mode (rad/s). |
accel_cap | number | The acceleration the bridge allows in this mode (rad/s²). |
effort | number | null | The card's effort limit (N·m). The bridge holds above a share of it. |