Skip to content
Docs menu

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.

8 operations · 14 schemas

GET /v1/devices/{device_id}/live-control

List a device's live-control requests and grants

listLiveControl · scope key:read

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

listLiveControl parameters
NameInTypeDescription
device_idrequiredpathId

Device id (dev_...). listApprovals and listLiveControl also take -, every device you can see.

statusqueryLiveControlStatus
limitqueryinteger

default 20 · ≥ 1 · ≤ 100

Page size.

cursorquerystring

length ≤ 512

Opaque cursor from the previous page's next_cursor.

Responses

listLiveControl responses
StatusDescriptionBody
200

Page of live-control requests.

LiveControlPage
401

Missing or invalid credentials.

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json

POST /v1/devices/{device_id}/live-control

Ask a person to arm live control of a robot

requestLiveControl · scope key:write

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

requestLiveControl parameters
NameInTypeDescription
device_idrequiredpathId

Device id (dev_...). listApprovals and listLiveControl also take -, every device you can see.

Request body

application/json · required · LiveControlRequestCreate

requestLiveControl request body
FieldTypeDescription
robot_namerequiredstring

pattern ^[a-z0-9](?:[a-z0-9_-]{0,30}[a-z0-9])?$

The robot's name in the bridge's configuration on the robot's computer.

robot_typestring | null

pattern ^[a-z0-9_]{1,64}$

LeRobot's type for the robot, when the bridge drives it through LeRobot (so101_follower). The page names the robot by it.

modeLiveControlMode
minutesinteger

default 10 · ≥ 1 · ≤ 60

reasonstring | null

length ≤ 1024

Why, in the asker's words. The person reads it before deciding.

Responses

requestLiveControl responses
StatusDescriptionBody
201

The pending request, with the limits a person will read.

LiveControl
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

GET /v1/live-control/{grant_id}

Get a live-control request by its id

getLiveControl · scope key:read

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

getLiveControl parameters
NameInTypeDescription
grant_idrequiredpathId

Live-control request id (lcg_...).

Responses

getLiveControl responses
StatusDescriptionBody
200

The request or grant.

LiveControl
401

Missing or invalid credentials.

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json

POST /v1/live-control/{grant_id}/grant

Arm live control (web session only)

grantLiveControl · scope session

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

grantLiveControl parameters
NameInTypeDescription
grant_idrequiredpathId

Live-control request id (lcg_...).

Request body

application/json · required · LiveControlGrantCreate

grantLiveControl request body
FieldTypeDescription
minutesinteger | null

≥ 1 · ≤ 60

A shorter window than asked. Absent means as asked.

modeLiveControlMode | null

teach to lower a full request. Absent means as asked.

safety_acknowledgedrequiredboolean

The person confirms the workspace is clear and a hardware stop is within reach. Must be true.

Responses

grantLiveControl responses
StatusDescriptionBody
200

The issued grant.

LiveControl
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

POST /v1/live-control/{grant_id}/deny

Deny a live-control request (web session only)

denyLiveControl · scope session

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

denyLiveControl parameters
NameInTypeDescription
grant_idrequiredpathId

Live-control request id (lcg_...).

Request body

application/json · required · LiveControlDeny

denyLiveControl request body
FieldTypeDescription
reasonrequiredstring

length 1–1024

Responses

denyLiveControl responses
StatusDescriptionBody
200

The denied request.

LiveControl
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

POST /v1/live-control/{grant_id}/stop

Stop a live session from the hub

stopLiveControl · scope key:read

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

stopLiveControl parameters
NameInTypeDescription
grant_idrequiredpathId

Live-control request id (lcg_...).

Responses

stopLiveControl responses
StatusDescriptionBody
200

The grant, with stop_requested_at set.

LiveControl
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json

GET /v1/devices/{device_id}/live-control/stops

Wait for a stop from the hub

listLiveControlStops · scope key:read

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

listLiveControlStops parameters
NameInTypeDescription
device_idrequiredpathId

Device id (dev_...). listApprovals and listLiveControl also take -, every device you can see.

waitquerynumber

default 0 · ≥ 0 · ≤ 30

Responses

listLiveControlStops responses
StatusDescriptionBody
200

The stops to act on.

LiveControlStops
401

Missing or invalid credentials.

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json

POST /v1/live-control/{grant_id}/report

The bridge reports that it armed, refused or ended a grant

reportLiveControl · scope key:write

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

reportLiveControl parameters
NameInTypeDescription
grant_idrequiredpathId

Live-control request id (lcg_...).

Request body

application/json · required · LiveControlReport

reportLiveControl request body
FieldTypeDescription
kindrequiredLiveControlReportKind
reasonrequiredstring

pattern ^[a-z_]{1,64}$

armed for an arming. For an end: expired, e_stop, bridge_restart, disarmed, or a refusal code such as bad_signature or limits_changed.

detailstring | null

length ≤ 512

One sentence for a person. It is not part of the signed payload.

tsrequiredstring (date-time)

The bridge's clock; part of the signed payload.

signaturerequiredstring

length ≤ 128

base64url Ed25519 signature, by the device's registered key, over the canonical JSON of {grant_id, device_id, kind, reason, ts}.

Responses

reportLiveControl responses
StatusDescriptionBody
200

The grant after the report.

LiveControl
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

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

string

one of pending · denied · issued · armed · ended · expired

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

object

LiveControlPage fields
FieldTypeDescription
itemsrequiredarray of LiveControl
next_cursorrequiredstring | null

LiveControlRequestCreate

object

LiveControlRequestCreate fields
FieldTypeDescription
robot_namerequiredstring

pattern ^[a-z0-9](?:[a-z0-9_-]{0,30}[a-z0-9])?$

The robot's name in the bridge's configuration on the robot's computer.

robot_typestring | null

pattern ^[a-z0-9_]{1,64}$

LeRobot's type for the robot, when the bridge drives it through LeRobot (so101_follower). The page names the robot by it.

modeLiveControlMode
minutesinteger

default 10 · ≥ 1 · ≤ 60

reasonstring | null

length ≤ 1024

Why, in the asker's words. The person reads it before deciding.

LiveControl

object

LiveControl fields
FieldTypeDescription
idrequiredId
devicerequiredLiveControlDevice
robotrequiredRepoRef | null

The device's robot. Null once the robot repo was deleted.

robot_namerequiredstring
robot_typestring | null
robot_labelstring | null

How a page names the robot: the label of its LeRobot type (SO-101 follower), or null when the request named no known type.

jointsrequiredarray of string

What can move, in the interface's joint order.

moderequiredLiveControlMode
minutesrequiredinteger
reasonstring | null
statusrequiredLiveControlStatus
requesterrequiredActivityActor
limitsrequiredLiveControlLimits
limits_sha256requiredstring
interface_fingerprintrequiredstring
created_atrequiredstring (date-time)
decided_byUserPublic | null
decided_atstring (date-time) | null (date-time)
decision_reasonstring | null
safety_acknowledgedboolean
issued_atstring (date-time) | null (date-time)
expires_atstring (date-time) | null (date-time)
armed_atstring (date-time) | null (date-time)

When the bridge reported it verified the grant and armed the robot.

ended_atstring (date-time) | null (date-time)
end_reasonstring | null
end_detailstring | null
stop_requested_atstring (date-time) | null (date-time)

When a person pressed Stop on the hub.

stop_requested_byUserPublic | null
stop_acknowledged_atstring (date-time) | null (date-time)

When the bridge confirmed it acted on the stop.

kidstring | null
tokenstring | 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

object

LiveControlGrantCreate fields
FieldTypeDescription
minutesinteger | null

≥ 1 · ≤ 60

A shorter window than asked. Absent means as asked.

modeLiveControlMode | null

teach to lower a full request. Absent means as asked.

safety_acknowledgedrequiredboolean

The person confirms the workspace is clear and a hardware stop is within reach. Must be true.

LiveControlDeny

object

LiveControlDeny fields
FieldTypeDescription
reasonrequiredstring

length 1–1024

LiveControlStops

object

LiveControlStops fields
FieldTypeDescription
stopsrequiredarray of LiveControlStop

LiveControlReport

object

LiveControlReport fields
FieldTypeDescription
kindrequiredLiveControlReportKind
reasonrequiredstring

pattern ^[a-z_]{1,64}$

armed for an arming. For an end: expired, e_stop, bridge_restart, disarmed, or a refusal code such as bad_signature or limits_changed.

detailstring | null

length ≤ 512

One sentence for a person. It is not part of the signed payload.

tsrequiredstring (date-time)

The bridge's clock; part of the signed payload.

signaturerequiredstring

length ≤ 128

base64url Ed25519 signature, by the device's registered key, over the canonical JSON of {grant_id, device_id, kind, reason, ts}.

LiveControlMode

string

one of teach · full

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

object

LiveControlDevice fields
FieldTypeDescription
idrequiredId
namerequiredstring

LiveControlLimits

object

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.

LiveControlLimits fields
FieldTypeDescription
versionrequiredinteger
moderequiredLiveControlMode
jointsrequiredarray of LiveControlLimitRow
tool_speed_caprequirednumber | null

The tool's top speed (m/s) in teach mode, where the kinematics are known.

load_hold_fractionrequirednumber

The bridge holds when a joint's load stays above this share of its limit.

load_hold_secondsrequirednumber

LiveControlStop

object

LiveControlStop fields
FieldTypeDescription
grant_idrequiredId
robot_namerequiredstring
requested_atrequiredstring (date-time)

LiveControlReportKind

string

one of armed · refused · ended

LiveControlLimitRow

object

LiveControlLimitRow fields
FieldTypeDescription
jointrequiredstring
lowerrequirednumber | null

The lowest angle the bridge allows (rad). Null when the card declares no range, and the joint does not move.

upperrequirednumber | null
range_sourcerequiredstring

one of soft · factor · none

soft when the card declares soft_lower or soft_upper. factor when the declared range is shrunk by the interface's soft limit factor. none when no range is declared.

velocity_declaredrequirednumber | null

The card's velocity limit (rad/s).

velocity_caprequirednumber

The speed the bridge allows in this mode (rad/s).

accel_caprequirednumber

The acceleration the bridge allows in this mode (rad/s²).

effortrequirednumber | null

The card's effort limit (N·m). The bridge holds above a share of it.