Skip to content
Docs menu

devices

Device consent layer: robot-side runners, approval requests and approvals, and the driver's telemetry summaries. An agent may make an approval request. Only a human session may sign an approval. No API key can put a policy on a robot.

27 operations · 61 schemas

GET /v1/devices/signing-key

The hub's approval verification key

getDeviceSigningKey · scope none

The public half of the key the hub signs device approvals with, as PEM. A robot-side driver (lucen-device) pins this key at registration. It verifies every approval token offline against it: signature, expiry, audience and the device binding. So a compromised network path between hub and robot cannot forge an approval. This endpoint is public, because nobody can verify against a key they cannot fetch. ephemeral is true when the deployment runs without DEVICE_APPROVAL_SIGNING_KEY (dev / CI). The key was then generated at process start, and every approval it signs dies with the process.

Responses

getDeviceSigningKey responses
StatusDescriptionBody
200

The verification key.

DeviceSigningKey
401

Missing or invalid credentials.

Problemapplication/problem+json

GET /v1/devices

List devices

listDevices · scope key:read

Devices the caller may see: their own and those owned by an org they belong to. No device is public. Newest first; an unknown owner is an empty page, not a 404.

Parameters

listDevices parameters
NameInTypeDescription
ownerqueryHandle

Only devices owned by this user or org handle.

limitqueryinteger

default 20 · ≥ 1 · ≤ 100

Page size.

cursorquerystring

length ≤ 512

Opaque cursor from the previous page's next_cursor.

Responses

listDevices responses
StatusDescriptionBody
200

Page of devices.

DevicePage
401

Missing or invalid credentials.

Problemapplication/problem+json
403

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

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

POST /v1/devices

Register a robot-side runner

registerDevice · scope key:write

A robot box declares itself with:

  • a name, unique among the owner's connected devices (a disconnected device gives its name back);
  • the robot repo it embodies, which must be visible to the caller and of kind robot;
  • the adapter it drives;
  • the io_contract fingerprints it accepts (sha256 of the canonical contract block of a stamped ONNX manifest);
  • the public half of the Ed25519 keypair the driver generated locally. The hub verifies the driver's telemetry signatures against it.

Owner is a user or an org, like a repo. Nothing here grants the device anything. A policy reaches it only through an approval a human signs in the web app. Audited as device.register.

Request body

application/json · required · DeviceRegister

registerDevice request body
FieldTypeDescription
namerequiredSlug
robot_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of a robot repo visible to the caller.

ownerHandle | null

Owner handle (user or org). Omit to own it yourself.

adapterrequiredDeviceAdapter
accepted_contractsrequiredarray of ContractFingerprint

items 0–32

At least one in trust mode registered (422 otherwise). A device that accepts no contract can never be handed a policy. May be empty in trust mode approved.

public_key_pemrequiredEd25519PublicKeyPem
endpoint_capableboolean

default false

Declare that the adapter implements hold / stop and may consume an endpoint. The driver sets this from the adapter's own code: the chunks protocol plus a passed fail-safe probe. The hub answers 422 when the declaration contradicts what it can know:

  • the adapter is a built-in without a chunk interface (command, lucen-legged), or
  • it is not a built-in and adapter_info does not declare chunks with a passed probe.
adapter_infoDeviceAdapterInfo | null

Where the adapter's code came from and which protocols it implements. Optional; older drivers omit it.

trust_modeDeviceTrustMode
interface_fingerprintstring | null

pattern ^[a-f0-9]{64}$

The robot card's interface fingerprint the driver pinned before registering. When given, it must equal the card's current one. 409 otherwise: the card changed since the driver read it.

descriptionstring | null

length ≤ 1024

Responses

registerDevice responses
StatusDescriptionBody
201

Device registered.

Device
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/device-pairings

Start pairing a robot from the platform

createDevicePairing · scope key:write

A person (or the owner's write key) starts connecting a robot to a robot repo. The answer is a short code (XXXX-XXXX, Crockford base32, about 40 bits). The code expires after ten minutes and works once. On the robot, lucen-device pair CODE --hub URL generates the device's Ed25519 key locally and claims the code (claimDevicePairing). No person's API key is ever typed on the robot. What the robot declared then waits for a signed-in person to confirm it (confirmDevicePairing). Owner is a user or an org, like a repo. name, when given, names the device. A device credential cannot start a pairing.

Request body

application/json · required · DevicePairingCreate

createDevicePairing request body
FieldTypeDescription
robot_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of a robot repo visible to the caller.

ownerHandle | null

Owner handle (user or org) of the device-to-be. Omit to own it yourself.

nameSlug | null

The device's name; else it is named at confirmation.

Responses

createDevicePairing responses
StatusDescriptionBody
201

Pairing started; code is what to type on the robot.

DevicePairing
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/device-pairings/claim

Declare this robot to a pairing: with a code, or to get one

claimDevicePairing · scope none

The robot's driver declares itself. It sends the public half of the key it generated, the adapter and its provenance, and the fail-safe probe. It also sends the capability and any contracts it registers. That is what registerDevice takes, minus the robot repo, owner and trust mode a person decides. With code it joins a pairing a person started on the hub. The code is the only credential for this call. A used, expired or unknown code gets the same 404. Without code (a robot that ships with the driver) the hub starts the pairing. It answers with a code for the robot to show. A signed-in person opens it on the hub. Either way the pairing is then claimed and waits for a person's confirmation. The driver polls collectDevicePairing. The call is unauthenticated. So it is counted per caller address (429 past ten attempts a minute), on top of the anonymous rate limit. Nothing is created until a person confirms.

Request body

application/json · required · DevicePairingClaim

claimDevicePairing request body
FieldTypeDescription
codestring | null

length ≤ 16

The pairing code, any case, dash optional. Omit to have the hub issue one for the robot to show.

nameSlug | null

A suggested name; the pairing's or the confirming person's wins.

adapterrequiredDeviceAdapter
adapter_infoDeviceAdapterInfo | null
accepted_contractsarray of ContractFingerprint

items 0–32

public_key_pemrequiredEd25519PublicKeyPem
endpoint_capableboolean

default false

descriptionstring | null

length ≤ 1024

Responses

claimDevicePairing responses
StatusDescriptionBody
201

Claimed; waiting for a person. code is set when the robot asked for one.

DevicePairing
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json
429

Too many claim attempts from this address; retry after Retry-After.

Problemapplication/problem+json

GET /v1/device-pairings/{pairing}

Get a pairing: has the robot joined, and what did it declare?

getDevicePairing · scope key:read

By id: the person who started it, the owner user or an owner-org member. By code: any signed-in caller holding the code, while the pairing is not yet confirmed. That is how a robot-issued pairing is opened on the hub. The answer carries what the robot declared (adapter and provenance, probe, capability, key fingerprint). It also carries the interface fingerprint the device will pin. So a person can compare the robot's screen with the page before confirming. Anything else is 404.

Parameters

getDevicePairing parameters
NameInTypeDescription
pairingrequiredpathstring

length 8–64

A pairing id (dpair_...) or, while it is not yet confirmed, its code (XXXX-XXXX).

Responses

getDevicePairing responses
StatusDescriptionBody
200

The pairing.

DevicePairing
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

DELETE /v1/device-pairings/{pairing}

Drop a pairing: "Not my robot"

rejectDevicePairing · scope key:write

Ends a pairing that is not yet confirmed: an unused code, or a claim nobody recognises. The robot's next poll is 404. Addressed like getDevicePairing; 409 once confirmed (disconnect the device instead). Not audited: nothing was created.

Parameters

rejectDevicePairing parameters
NameInTypeDescription
pairingrequiredpathstring

length 8–64

A pairing id (dpair_...) or, while it is not yet confirmed, its code (XXXX-XXXX).

Responses

rejectDevicePairing responses
StatusDescriptionBody
200

Rejected.

DevicePairing
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

POST /v1/device-pairings/{pairing}/confirm

Confirm the robot that claimed a pairing (web session only)

confirmDevicePairing · scope session

session scope: a person looks at what the robot declared and says "this is my robot". They look at its key fingerprint on the robot's own screen, its adapter and its probe. No key can look at these. Confirming creates the device (audited device.register, by this person) and pins the robot card's interface fingerprint on it. It also sets the device's trust mode. The mode is chosen here and delivered to the robot when it collects. Afterwards only the robot itself can change it (setDeviceTrustMode). A robot-issued pairing also takes its robot_repo (and owner) here. 409 unless the pairing is claimed, or when the name is taken. 422 for trust mode registered with no registered contract.

Parameters

confirmDevicePairing parameters
NameInTypeDescription
pairingrequiredpathstring

length 8–64

A pairing id (dpair_...) or, while it is not yet confirmed, its code (XXXX-XXXX).

Request body

application/json · required · DevicePairingConfirm

confirmDevicePairing request body
FieldTypeDescription
trust_modeDeviceTrustMode
nameSlug | null

The device's name; else the pairing's, else the robot's suggestion.

robot_repostring | null

length ≤ 129

Required for a robot-issued pairing (a robot repo visible to you); must match for a person-issued one.

ownerHandle | null

For a robot-issued pairing; omit to own it yourself.

Responses

confirmDevicePairing responses
StatusDescriptionBody
200

Confirmed; device_id is the new device.

DevicePairing
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/device-pairings/{pairing_id}/collect

The robot picks up what a person confirmed

collectDevicePairing · scope none

The driver polls with a signature by the key it declared. The signature covers the canonical JSON of {pairing_id, ts} (ts within five minutes). While a person has not confirmed, the answer is 202 with the pairing. Once confirmed, the answer is 200 once. It carries the device (its trust mode included), the hub's approval signing key and the robot interface to pin. It also carries the device credential: an API key bound to this device, shown this once. The credential can act only as the device:

  • read itself and its approvals;
  • post its signed events;
  • pull the model repos its live approvals name;
  • read its robot card;
  • open its endpoint sessions;
  • upload its trial logs;
  • change its own trust mode.

Anything else is 403. disconnectDevice revokes the credential. Rejected or expired: 404. Collected already: 409.

Parameters

collectDevicePairing parameters
NameInTypeDescription
pairing_idrequiredpathId

Pairing id (dpair_...), from the claim's answer.

Request body

application/json · required · DevicePairingCollect

collectDevicePairing request body
FieldTypeDescription
tsrequiredstring (date-time)

The robot's clock; within five minutes of the hub's.

signaturerequiredstring

length ≤ 128

base64url Ed25519 signature, by the key the robot declared, over the canonical JSON of {pairing_id, ts}.

Responses

collectDevicePairing responses
StatusDescriptionBody
200

Connected; api_key is shown this once.

DevicePairingClaimed
202

Waiting for a person to confirm.

DevicePairing
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/devices/{device_id}

Get a device

getDevice · scope key:read

One device. A device the caller may not see is 404. The API does not answer 403 for it (see Visibility). The answer carries what a live page needs without another call:

  • online (a signed event within DEVICE_ONLINE_SECONDS);
  • running_approval_id;
  • the trust mode;
  • the pinned interface fingerprint;
  • the device credential's prefix and last use;
  • disconnected_at.

Parameters

getDevice parameters
NameInTypeDescription
device_idrequiredpathId

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

Responses

getDevice responses
StatusDescriptionBody
200

The device.

Device
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

POST /v1/devices/{device_id}/disconnect

Disconnect a device: revoke its credential

disconnectDevice · scope key:write

The owner cuts the device off, with a session or a write key. Neither an agent session's key nor the device's own key can do this. The device credential is revoked at once, and every later call with it is 401. The device is marked disconnected_at. A running approval is asked to stop. No request, approval or event is accepted for the device again (409). A driver that meets the 401 mid-run stops its adapter. The trail stays, and the name is free again. The same robot can be connected under it as a new device. Idempotent. Audited as device.disconnect.

Parameters

disconnectDevice parameters
NameInTypeDescription
device_idrequiredpathId

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

Responses

disconnectDevice responses
StatusDescriptionBody
200

Disconnected.

Device
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

POST /v1/devices/{device_id}/trust-mode

The robot changes its own trust mode

setDeviceTrustMode · scope key:write

Only the device: its own credential, plus a signature by its own key. The signature covers the canonical JSON of {device_id, trust_mode, ts} (ts within five minutes). On the robot, that is lucen-device trust MODE. A person chose the mode when confirming the pairing. After that the hub never flips it, and a session or any other key is 403. Switching to registered with no registered contract is 422. Audited as device.trust_mode.

Parameters

setDeviceTrustMode parameters
NameInTypeDescription
device_idrequiredpathId

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

Request body

application/json · required · DeviceTrustModeChange

setDeviceTrustMode request body
FieldTypeDescription
trust_moderequiredDeviceTrustMode
tsrequiredstring (date-time)
signaturerequiredstring

length ≤ 128

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

Responses

setDeviceTrustMode responses
StatusDescriptionBody
200

Changed (or already so).

Device
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/devices/{device_id}/approval-requests

List a device's approval requests

listApprovalRequests · scope key:read

Newest first; status narrows to one state.

Parameters

listApprovalRequests parameters
NameInTypeDescription
device_idrequiredpathId

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

statusqueryApprovalRequestStatus
limitqueryinteger

default 20 · ≥ 1 · ≤ 100

Page size.

cursorquerystring

length ≤ 512

Opaque cursor from the previous page's next_cursor.

Responses

listApprovalRequests responses
StatusDescriptionBody
200

Page of requests.

ApprovalRequestPage
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
422

Request failed validation.

Problemapplication/problem+json

POST /v1/devices/{device_id}/approval-requests

Ask for a policy to be put on a device

createApprovalRequest · scope key:write

An agent or a human asks: "model repo X onto device Y for T minutes". The hub pins the request to a specific ONNX and its current sha256, out of the repo's own file rows. The ONNX is onnx_path (or the repo's single *.onnx when omitted). So what the human approves is bytes. Re-pushing a file under the same name does not change what they approved.

When the model repo carries an io_contract.json sidecar, the hub fingerprints its contract block. It refuses (409) a request the device has already said it will not accept. A human should not be asked to approve what the robot will refuse. Without a sidecar the fingerprint is null, and the driver's own check on the ONNX manifest decides.

A request is a trial (mode: run) or an install (mode: install). It records the skill slot the file goes into. On a Laika, and on any robot with pre-deploy checks, a request without a slot gets one from the file. The hub uses the slot the file's signed manifest names. It reads a manifest only from bytes it has verified. There, a dry run of a file still being verified is 409. A request of such a file that names no slot is 409 too. On those robots every request needs a slot, here or in the manifest (422 without one). A dry run is still answered, and its sim check says why. Elsewhere only an install needs a slot (422). Only a Laika or a robot with pre-deploy checks gets it from the manifest. A request for an endpoint is a trial only (422). On a Laika, a trial is at most 60 minutes (422).

A device in trust mode approved also runs a contract it never registered. This needs a signed approval naming it, and a policy built for the robot interface the device pinned. The hub then answers 201 when the model's recorded embodiment_fingerprint equals the device's interface_fingerprint. It also answers 201 for an unstamped policy. That policy's approval then requires the approver's explicit unstamped_acknowledged. The device additionally compares the policy's joint order with its pinned interface. A policy built for another embodiment, or a device that pinned no interface, is still 409. checks[] says which way the contract was established. A disconnected device is 409.

The request appears in the web app as a pending card. Nothing moves until a person approves it there. key:write: it is a data mutation, and it grants nothing. A session files and then approves in two calls (one-step deploy by a person). Audited as device.request.

With dry_run: true nothing is filed or audited. The answer is 200 with the request as it would be, and checks[], device and model filled. That is what a deploy page shows before anything exists. There, a contract the device would refuse is a fail check instead of the 409.

Parameters

createApprovalRequest parameters
NameInTypeDescription
device_idrequiredpathId

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

Request body

application/json · required · ApprovalRequestCreate

createApprovalRequest request body
FieldTypeDescription
model_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of a model repo visible to the caller.

onnx_pathFilePath | null

Which file in the repo. Omit when the repo holds exactly one *.onnx; required (422) when it holds several.

policy_pathstring | null

length ≤ 1024

A LeRobot checkpoint directory in the repo (policy) instead of an ONNX, for a device whose adapter declares checkpoint_dir. The request pins the directory's lucen-checkpoint-v1 digest, and its contract comes from the lucen_manifest.json beside it. Omitted on such a device, a repo whose only policy is a policy/ directory is pinned to it. A device without checkpoint_dir is 409.

onnx_sha256Sha256 | null

Optional assertion. When given and the repo's current file has a different digest, the request is 409. The caller was looking at other bytes.

minutesrequiredinteger

≥ 1 · ≤ 1440

How long the policy may run once approved. The window starts at approval. A trial on a Laika is at most 60 minutes (422). An install's minutes are its pickup window, up to 1440.

reasonstring | null

length ≤ 1024

The reason, shown to the human on the pending card.

endpoint_idId | null

Ask for the device to consume a hub inference endpoint instead of running the policy itself. The endpoint must be visible to the caller and serve model_repo (409 otherwise). The request is pinned to the endpoint's own onnx_path / sha256. The device must be endpoint_capable (422 otherwise). The minted token carries endpoint_id inside its signature. The driver then opens a session on the endpoint and does not pull the model.

modeApprovalMode

run tries the policy for minutes. install keeps it on the robot, and minutes is how long the robot has to fetch it. shadow runs the policy beside the one running for minutes and applies nothing. Omitted, it is run. A request for an endpoint is run only (422). A shadow request on a device whose adapter declares no shadow protocol is 422.

slotSlot | null

The skill slot the file goes into on the robot. Omitted on a Laika, or on a robot with pre-deploy checks, the hub reads it from the file's manifest. There every request needs a slot, and one with none is 422 (a dry run is answered). Elsewhere an install needs one (422). Only a Laika or a robot with pre-deploy checks gets it from the manifest.

dry_runboolean

default false

Check, do not file: 200 with the request as it would be and its checks[]; nothing is stored or audited.

Responses

createApprovalRequest responses
StatusDescriptionBody
200

dry_run: the request as it would be filed, with its checks; nothing stored.

ApprovalRequest
201

Request recorded, status pending.

ApprovalRequest
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/devices/{device_id}/approval-requests/{request_id}

Get an approval request

getApprovalRequest · scope key:read

The consent page in one call. Besides the request itself, the answer carries:

  • who asked and with which credential (requester, and plan when a plan's planner filed it);
  • the device it is for (device);
  • what would run (model, and endpoint when the request is endpoint-bound and the endpoint is visible to the caller);
  • checks[]: what the hub verified against the current state of the hub, computed now.

The checks cover:

  • the device's accepted contracts;
  • the control class and where it would run;
  • the device's declared fail-safe probe;
  • the latest sim-gate scorecard for this model on this robot;
  • the policy's embodiment fingerprint against the robot's interface;
  • whether the pinned bytes are still what the repo (or endpoint) serves.

Absent evidence is reported as absent. It is never reported as a pass. Checks inform the person deciding. None of them approves or blocks anything.

Parameters

getApprovalRequest parameters
NameInTypeDescription
device_idrequiredpathId

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

request_idrequiredpathId

Approval request id (dreq_...).

Responses

getApprovalRequest responses
StatusDescriptionBody
200

The request.

ApprovalRequest
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

POST /v1/devices/{device_id}/approval-requests/{request_id}/deny

Deny an approval request (web session only)

denyApprovalRequest · scope session

A human says no. session scope: denying is a decision on the same footing as approving. No API key of any scope may take it. Otherwise an agent could clear its own trail of refused requests. 409 when the request is no longer pending. Audited as device.deny.

Parameters

denyApprovalRequest parameters
NameInTypeDescription
device_idrequiredpathId

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

request_idrequiredpathId

Approval request id (dreq_...).

Request body

application/json · ApprovalDecision

denyApprovalRequest request body
FieldTypeDescription
reasonstring | null

length ≤ 1024

Responses

denyApprovalRequest responses
StatusDescriptionBody
200

Denied.

ApprovalRequest
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/devices/{device_id}/approvals

List a device's approvals

listApprovals · scope key:read

Newest first. status=issued is what a driver polls: approvals a human has signed that have neither been picked up nor expired. The token is returned on every read. It is a signed statement about one device and does not work as a hub credential. Only that device's driver can use it. device_id may be - for every device the caller can see. model_repo narrows the list to one model: where a model has run.

Parameters

listApprovals parameters
NameInTypeDescription
device_idrequiredpathId

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

statusqueryApprovalStatus
model_repoquerystring

length ≤ 129

owner/slug of a model repo; one you cannot read is an empty page.

modequerystring

one of run · install · shadow · any

default "run"

run, the default, lists trials only. That is what an older driver polls, so it never sees an install approval. install lists approvals to keep a policy. shadow lists shadow runs. any lists every mode.

limitqueryinteger

default 20 · ≥ 1 · ≤ 100

Page size.

cursorquerystring

length ≤ 512

Opaque cursor from the previous page's next_cursor.

Responses

listApprovals responses
StatusDescriptionBody
200

Page of approvals.

ApprovalPage
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
422

Request failed validation.

Problemapplication/problem+json

POST /v1/devices/{device_id}/approvals

Approve a pending request and mint the signed token (web session only)

createApproval · scope session

session scope: a human, signed in to the web app. No API key of any scope can call this. That is the whole invariant of the consent layer. The hub's programmatic credential can browse, push and ask. It cannot put a policy on a robot. Approving a pending request mints a short-lived EdDSA (Ed25519) JWT. The token is bound to the device id (sub), the model repo, and the ONNX path and its sha256. It is also bound to the contract fingerprint, the approver and exp = now + minutes. The driver verifies it offline against GET /v1/devices/signing-key. The approval's window is the run window. A policy picked up late runs for what is left of it. The driver stops it at expires_at on its own clock. 409 when the request is not pending or the device is disconnected. On a trust-mode-approved device whose request rests on an unstamped policy, unstamped_acknowledged: true is required (422 without it). It is signed into the token. The approver may shorten the window with minutes (422 above what was asked). On a device whose organization requires a second person (Org.require_second_approver), the person who asked cannot approve: 403. Audited as device.approve.

On a Laika, and on any robot with pre-deploy checks, the repo must still hold the pinned file (422 once it changed, 409 while the hub checks its bytes). A request for an endpoint skips this check. On those robots, a request that names no slot has no sim test, so it is 422. On a robot the hub runs pre-deploy checks on, a file Lucen has not certified needs its sim test, with a score. The approval names the request's report_rollout_id and sets report_acknowledged (422 without them). A file Lucen certified needs neither, in the slot Lucen certified it for. In another slot it is 422. Lucen's word counts on any Laika. On any other robot, a report_rollout_id the approver gives must still be the request's (422). A second person is required as before, for a certified file too. On a Laika, a trial is at most 60 minutes (422). The token signs mode. It also signs slot, report_rollout_id and certified when they are set.

The gate, one rule for the web, the CLI and MCP. The hub computes the request's checks (ApprovalRequest.checks) as the approver reads them. It refuses while any one is fail. That covers an incompatible policy (device.contract, embodiment.fingerprint, artifact.digest). It covers firmware below the robot's minimum or on its blocked list (firmware.version). It covers a file with no pre-deploy report that Lucen has not certified (sim_gate.scorecard, on a robot the hub runs pre-deploy checks on). Each refusal is RFC 9457 problem+json. Its errors[] carry one entry per failed check, with the check code as type and its sentence as msg. A report with failed tests needs report_acknowledged (422 without it, type: sim_gate.scorecard). A report every test of which passed does not. A runtime-release mismatch (runtime.release) warns and does not refuse. A robot whose card declares no firmware has no firmware check. Every other rule is the same on every robot.

A shadow request (mode: shadow) meets the compatibility checks and no others. Shadow moves nothing, so the sim report is not required and no tick is asked for. The contract, the embodiment fingerprint, the firmware and the pinned bytes still refuse: a candidate the robot cannot load, or that reads the wrong layout, teaches nothing. A run approval gets a bringup ladder. Its first rung is ticked by a finished shadow run of the same file on the same device within the last 24 hours.

Parameters

createApproval parameters
NameInTypeDescription
device_idrequiredpathId

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

Request body

application/json · required · ApprovalCreate

createApproval request body
FieldTypeDescription
request_idrequiredId
safety_acknowledgedboolean

default false

The approver confirmed that they or someone else is at the robot, with a hardware emergency stop within reach. They confirmed it on the page where they approved. It is recorded in the device.approve audit row as safety_acknowledged. It is also signed into the token and shown on the approval. The web app does not let the hold-to-approve start until it is ticked. The API records the answer and does not refuse a request without it. The record therefore says which approvals were made without the confirmation.

unstamped_acknowledgedboolean

default false

The approver read that the policy records no embodiment fingerprint and approved it onto this trust-mode-approved device anyway. Required (422) exactly when the request rests on an unstamped policy whose contract the device never registered. It is signed into the token. The driver requires it there before it compares the policy's joint order with its pinned interface.

minutesinteger | null

≥ 1 · ≤ 1440

The approver may shorten the window. At most the minutes the request asked for; more is a 422. Omitted or null, the approval covers what was asked. The token, expires_at and the audit row carry the minutes approved; the request keeps the minutes asked. A trial on a Laika is at most 60 minutes (422).

report_rollout_idId | null

The pre-deploy report the approver read. An uncertified file needs it (422) on a robot the hub runs pre-deploy checks on. A file Lucen certified needs none in its certified slot. When given, it must be the request's report_rollout_id (422 otherwise). It is signed into the token.

report_acknowledgedboolean

The approver read that report, failed tests included, and approves the file for this robot. Omitted, it is false. Required (422) whenever the approval needs report_rollout_id.

Responses

createApproval responses
StatusDescriptionBody
201

Approved; token is what the driver verifies.

Approval
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/devices/{device_id}/approvals/{approval_id}

Get an approval

getApproval · scope key:read

The approval, token included, plus what a live page polls: seconds_left in the window, stop_requested_at, and the latest heartbeat while it runs.

Parameters

getApproval parameters
NameInTypeDescription
device_idrequiredpathId

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

approval_idrequiredpathId

Approval id (appr_...).

Responses

getApproval responses
StatusDescriptionBody
200

The approval, token included.

Approval
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

POST /v1/devices/{device_id}/approvals/{approval_id}/stop

Stop a deployment now (web session only)

stopApproval · scope session

The STOP button. A signed-in person who can see the device ends an approval before its window does. No API key of any scope may call it. Approving, confirming and stopping a deployment are a person's decisions. So no agent and no device credential can stop a robot either. There is no MCP tool for it. An issued approval ends at once (stopped; it can never start). A running one gets stop_requested_at, and it can never start again. The driver reads the field off its next heartbeat's answer, every two seconds by default. It calls the adapter's hold() when the adapter has one, then stop(), and posts a signed stopped with reason stop_requested. So a stop lands within one heartbeat interval plus two network round trips, while the robot can reach the hub. A robot that cannot reach the hub stops the policy itself about ten seconds after it loses the hub. It hears the stop when the link returns. This is not a safety system. The safety system is a person at a hardware emergency stop. Idempotent while running; 409 on an approval that already ended, unless the robot has reported running since the hub ended it (then the flag is set again). Audited as device.stop, with the person who pressed it.

Parameters

stopApproval parameters
NameInTypeDescription
device_idrequiredpathId

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

approval_idrequiredpathId

Approval id (appr_...).

Request body

application/json · ApprovalDecision

stopApproval request body
FieldTypeDescription
reasonstring | null

length ≤ 1024

Responses

stopApproval responses
StatusDescriptionBody
200

Stopped (issued) or stop requested (running).

Approval
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

POST /v1/devices/{device_id}/approvals/{approval_id}/rungs/{n}

Tick a rung of the bring-up ladder (web session only)

tickRung · scope session

session scope, like approving: no API key of any scope can call it. The person at the robot, from their phone, attests that the rung went right. The approver, or any member of the organization that owns the device, may tick. Rungs 1 to 3 are ticked in order while the approval is running. Rung 0 (shadow) is satisfied by a finished shadow run, and can only be skipped here, with a reason. The robot is asked to do nothing: it behaves the same at every rung, and the hub records what the person attested. A tick after the rung's own window is still taken; the window is informational and extends nothing. The driver reads the tick off its next heartbeat's answer (rungs_ticked) and acknowledges it with a signed rung event. Audited as device.rung. 409 on a rung already ticked or out of order, and on an approval that is not running. 422 on a skip without a reason, or a skip of rung 1 to 3.

Parameters

tickRung parameters
NameInTypeDescription
device_idrequiredpathId

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

approval_idrequiredpathId

Approval id (appr_...).

nrequiredpathinteger

≥ 0 · ≤ 3

The rung, 0 to 3.

Request body

application/json · RungTick

tickRung request body
FieldTypeDescription
skipboolean

default false

Skip rung 0 (shadow) instead of running one. Rungs 1 to 3 cannot be skipped.

reasonstring | null

length ≤ 1024

Why rung 0 is skipped. Required with skip.

Responses

tickRung responses
StatusDescriptionBody
200

The approval with its ladder.

Approval
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/devices/{device_id}/approvals/{approval_id}/shadow

The shadow run's trace and stats

getApprovalShadow · scope key:read

What the robot reported during a shadow approval: the predicted and the applied joint targets over time, thinned to at most points samples, the latest stats and how it ended. The hub stores every trace sample the robot sent and thins on read. Under the device's rule: an approval you may not see is 404. 409 on an approval that is not a shadow run.

Parameters

getApprovalShadow parameters
NameInTypeDescription
device_idrequiredpathId

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

approval_idrequiredpathId

Approval id (appr_...).

pointsqueryinteger

default 2000 · ≥ 10 · ≤ 2000

The most samples to return; the hub thins evenly to it.

Responses

getApprovalShadow responses
StatusDescriptionBody
200

The trace, thinned, with the stats.

ShadowTrace
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

POST /v1/devices/{device_id}/slots/{slot}/restore

Put a slot's previous policy back (web session only)

restoreSlot · scope session

session scope, like approving: no API key of any scope can call it. One press on the live view or the fleet page. The hub finds the slot's newest installed approval and the one before it. It files an install request for that previous file, its path and the digest it installed, through the same path as createApprovalRequest (device.request audited). It then approves that request at once as the person pressing, through the same gate createApproval runs. The previous approval's report and acknowledgment carry over when that report is still the file's bound one. A report the person has not acknowledged is refused the way createApproval refuses it. The robot verifies the signed token and installs as it does any install. Audited as device.approve with restore_of naming the approval it replaces. 409 when the hub installed nothing before the current file in this slot; the robot's own laika policy rollback is the way back to a factory file. Also 409 when the device is disconnected, or when the previous file's bytes are no longer in its repo. 422 from the gate, with the failed check codes. 403 under a second-person rule when the person pressing filed the current install.

Parameters

restoreSlot parameters
NameInTypeDescription
device_idrequiredpathId

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

slotrequiredpathSlot

Request body

application/json · SlotRestore

restoreSlot request body
FieldTypeDescription
safety_acknowledgedboolean

default false

As on ApprovalCreate: someone is at the robot with a hardware emergency stop within reach. Recorded and signed, not required.

minutesinteger | null

≥ 1 · ≤ 1440

How long the robot has to fetch the file. Omitted, the previous install's own window.

Responses

restoreSlot responses
StatusDescriptionBody
201

The install approval for the previous file; the robot picks it up.

Approval
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/devices/{device_id}/events

List a device's events

listDeviceEvents · scope key:read

Newest first; approval_id narrows to one approval's trail.

Parameters

listDeviceEvents parameters
NameInTypeDescription
device_idrequiredpathId

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

approval_idqueryId
kindqueryDeviceEventKind
limitqueryinteger

default 20 · ≥ 1 · ≤ 100

Page size.

cursorquerystring

length ≤ 512

Opaque cursor from the previous page's next_cursor.

Responses

listDeviceEvents responses
StatusDescriptionBody
200

Page of events.

DeviceEventPage
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
422

Request failed validation.

Problemapplication/problem+json

POST /v1/devices/{device_id}/events

Record a telemetry summary from the driver

postDeviceEvent · scope key:write

The driver's four words back to the hub about one approval: started, heartbeat (a few scalars), stopped or refused. A refused event carries the reason (bad signature, expired, wrong device, digest mismatch, contract mismatch). Events are summaries. They carry no control. The body is capped at 64 KiB, and nothing here reaches the robot. Every event is signed with the device's own Ed25519 key (signature over the canonical payload). The hub verifies it against the key registered for the device. So a started row is evidence from the box that holds the private key. Holding the hub API key alone cannot produce one. Transitions are checked: started needs an issued, unexpired approval; heartbeat and stopped need running; refused needs issued. installed needs an install approval (409 on a trial). It is taken while issued, and also once the pickup window has passed. Its summary must name the approval's sha256 and slot. activated must be a boolean, and via is cli or serve. Any other summary is 422. The answer carries the approval's stop_requested_at. A driver reads a person's Stop off its next heartbeat. key:write: a row is a data mutation, and the driver's key still cannot approve anything. started/stopped/refused/installed are audited (device.started / device.stopped / device.refused / device.installed). Heartbeats are not audited.

Two kinds since the bring-up ladder. rung is the robot's signed acknowledgment of a rung a person ticked; it needs running. Its summary names n and name. status is the robot's report of itself with no approval running: approval_id is null, and the summary carries the adapter's status. The hub keeps the firmware, runtime, hardware id and slots it reports. The driver posts one on start, when those change, and otherwise at most every 15 minutes. Neither is audited. The answer also carries rungs_ticked: the rungs a person ticked that the robot has not acknowledged yet.

recording is the bridge's progress while a person records demonstrations on the robot. approval_id is null. The hub checks the summary's keys and their types, and the signed ts must be within five minutes of the hub's clock (422 otherwise). It is not audited. listDeviceEvents with kind=recording and limit=1 is the latest progress.

Parameters

postDeviceEvent parameters
NameInTypeDescription
device_idrequiredpathId

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

Request body

application/json · required · DeviceEventCreate

postDeviceEvent request body
FieldTypeDescription
approval_idrequiredId | null

The approval the event is about. Null for a status or a recording event only, and required for every other kind (422 otherwise). The null is part of the signed payload.

kindrequiredDeviceEventKind
tsrequiredstring (date-time)

The driver's clock when the event happened; part of the signed payload.

summaryrequiredobject

A few scalars (tick, loop_hz, elapsed_s, …) or a reason. ≤ 64 KiB serialised.

messagestring | null

length ≤ 2048

signaturerequiredstring

length ≤ 128

base64url Ed25519 signature, by the device's registered key, over the canonical JSON of {approval_id, device_id, kind, summary, ts} (sorted keys, no whitespace).

Responses

postDeviceEvent responses
StatusDescriptionBody
201

Event recorded.

DeviceEvent
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
413

The summary exceeds 64 KiB.

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

GET /v1/approval-requests/{request_id}

Get an approval request by its id alone

getApprovalRequestById · scope key:read

getApprovalRequest without the device in the path. The consent page has a URL of its own (/inbox/requests/{id}), and a link to it carries only the request id. Same body (device, model, endpoint and checks[] computed now) and the same rule. A request on a device the caller cannot see is 404. The API does not answer 403 here, because that would confirm the request exists.

Parameters

getApprovalRequestById parameters
NameInTypeDescription
request_idrequiredpathId

Approval request id (dreq_...).

Responses

getApprovalRequestById responses
StatusDescriptionBody
200

The request, with everything a person needs before deciding.

ApprovalRequest
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}/bridge-tickets

Get a ticket that pairs a web page with the robot's bridge

createBridgeTicket · scope session

The hub's web page asks for a ticket, then posts it to the bridge on the person's computer (POST /v1/web/pair there). The ticket is an EdDSA token signed with the hub's device-signing key. It names the device, the person and the page's origin, and it expires after 120 seconds. The bridge verifies it offline with the key it pinned at registration, and takes each ticket once. The origin is the request's Origin header, or origin in the body. It must be one of this hub's own web origins (422 otherwise). Only a signed-in person gets one: a paired page can record on the robot, so no key of any scope pairs a page. The caller must see the device (404 otherwise). Audited as device.bridge_ticket.

Parameters

createBridgeTicket parameters
NameInTypeDescription
device_idrequiredpathId

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

Request body

application/json · BridgeTicketCreate

createBridgeTicket request body
FieldTypeDescription
originstring | null

length ≤ 256

The web origin the ticket is for, when the request carries no Origin header (a call from the web app's server).

Responses

createBridgeTicket responses
StatusDescriptionBody
201

The ticket.

BridgeTicket
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
422

Request failed validation.

Problemapplication/problem+json

Schemas (61)

The schemas these operations reach before any other tag’s do. A type that links elsewhere is rendered on that tag’s page.

DeviceSigningKey

object

DeviceSigningKey fields
FieldTypeDescription
algrequiredstring

one of EdDSA

kidrequiredstring

Key id carried in every approval token's header.

public_key_pemrequiredEd25519PublicKeyPem
issuerrequiredstring

The iss claim every approval carries.

audiencerequiredstring

The aud claim every approval carries.

ephemeralrequiredboolean

True when DEVICE_APPROVAL_SIGNING_KEY is unset and the key was generated at process start (dev / CI). Approvals it signed die with the process.

DevicePage

object

DevicePage fields
FieldTypeDescription
itemsrequiredarray of Device
next_cursorrequiredstring | null

DeviceRegister

object

DeviceRegister fields
FieldTypeDescription
namerequiredSlug
robot_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of a robot repo visible to the caller.

ownerHandle | null

Owner handle (user or org). Omit to own it yourself.

adapterrequiredDeviceAdapter
accepted_contractsrequiredarray of ContractFingerprint

items 0–32

At least one in trust mode registered (422 otherwise). A device that accepts no contract can never be handed a policy. May be empty in trust mode approved.

public_key_pemrequiredEd25519PublicKeyPem
endpoint_capableboolean

default false

Declare that the adapter implements hold / stop and may consume an endpoint. The driver sets this from the adapter's own code: the chunks protocol plus a passed fail-safe probe. The hub answers 422 when the declaration contradicts what it can know:

  • the adapter is a built-in without a chunk interface (command, lucen-legged), or
  • it is not a built-in and adapter_info does not declare chunks with a passed probe.
adapter_infoDeviceAdapterInfo | null

Where the adapter's code came from and which protocols it implements. Optional; older drivers omit it.

trust_modeDeviceTrustMode
interface_fingerprintstring | null

pattern ^[a-f0-9]{64}$

The robot card's interface fingerprint the driver pinned before registering. When given, it must equal the card's current one. 409 otherwise: the card changed since the driver read it.

descriptionstring | null

length ≤ 1024

Device

object

Device fields
FieldTypeDescription
idrequiredId
namerequiredSlug
ownerrequiredRepoOwner
robot_repoRepoRef | null

The robot repo this device embodies; null once that repo is deleted.

adapterrequiredDeviceAdapter
accepted_contractsrequiredarray of ContractFingerprint

items 0–32

The IO-contract fingerprints this device registered; in trust mode registered anything else is refused on the box. May be empty for a trust-mode-approved device.

trust_moderequiredDeviceTrustMode
interface_fingerprintstring | null

pattern ^[a-f0-9]{64}$

The robot card's embodiment interface fingerprint this device pinned. An approved-mode device compares a policy's embodiment_fingerprint with it. Null when the card declared none, or for a device registered before pinning existed.

onlinerequiredboolean

last_seen_at within DEVICE_ONLINE_SECONDS (60 s). The overview uses the same rule.

key_fingerprintrequiredstring

sha256 (hex) of the device's raw 32-byte Ed25519 public key. lucen-device pair prints it on the robot, so you can compare it with the page.

running_approvalApproval | null

The approval this device reported started and not yet stopped, inside its window, with its time left and latest heartbeat. Null once the hub has not heard from it for the link window: the robot stops the policy itself when it loses the hub.

credentialDeviceCredential | null

The device's own credential when it was paired; null for a device registered with a person's API key.

disconnected_atstring (date-time) | null (date-time)

When the owner disconnected it; nothing is accepted for it after.

public_key_pemrequiredEd25519PublicKeyPem
endpoint_capablerequiredboolean

Whether this device may consume a hub inference endpoint. True only when its adapter implements the mandatory local fail-safe. That fail-safe is hold / stop on a missed chunk deadline or a lost link. A request naming an endpoint_id on a device without it is 422. This is the driver's declaration, made from the adapter's code and a probe of its hold() / stop(). The hub keeps no list of adapter names for it.

adapter_infoDeviceAdapterInfo | null

What the driver declared about the adapter at registration; null for a device registered before it.

firmwareDeviceFirmware | null

The control-board firmware the robot last reported, taken from the adapter's status() inside a signed event (started, heartbeat, stopped, installed). Null until a robot reports one. The deploy gate's firmware.version check reads it.

runtimeDeviceRuntime | null

The policy runtime the robot last reported, the same way. Null until reported.

hardware_idstring | null

length ≤ 64

The robot's own hardware identity as it reports it (a Laika's controller chip id, hex). Null until reported. The hub shows it so a person can tell which physical robot a device is; it decides nothing.

slotsarray of DeviceSlot

items ≤ 16

The robot's skill slots: what the hub approved for each, from the newest installed approval, beside what the robot reports is running there, from its signed status. One row per slot the hub or the robot knows about. A slot whose running digest differs from the approved one is the fleet page's "differs".

state_reported_atstring (date-time) | null (date-time)

When the robot last reported firmware, runtime, hardware id or slots.

descriptionstring | null

length ≤ 1024

registered_byUserPublic | null
last_seen_atstring (date-time) | null (date-time)

When the hub last heard from the driver: its last signed event. For a paired device, its own credential polling also updates it. Polling is recorded at most every ten seconds, so an idle connected robot reads online.

created_atrequiredstring (date-time)
updated_atrequiredstring (date-time)

DevicePairingCreate

object

DevicePairingCreate fields
FieldTypeDescription
robot_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of a robot repo visible to the caller.

ownerHandle | null

Owner handle (user or org) of the device-to-be. Omit to own it yourself.

nameSlug | null

The device's name; else it is named at confirmation.

DevicePairing

object

DevicePairing fields
FieldTypeDescription
idrequiredId
statusrequiredDevicePairingStatus
initiated_byrequiredstring

one of person · robot

person: a code issued on the hub. robot: a code the robot asked for and shows.

codestring | null

The code, XXXX-XXXX. It appears only in the answer that created it: createDevicePairing for a person, claimDevicePairing without a code for a robot.

ownerRepoOwner | null

Null for a robot-issued pairing until a person confirms it.

robot_repoRepoRef | null
namestring | null
declaredDevicePairingDeclared | null

What the robot declared; null until it claims.

interface_fingerprintstring | null

The robot card's interface fingerprint the device will pin (the robot repo's, once known).

expires_atrequiredstring (date-time)
claimed_atstring (date-time) | null (date-time)
confirmed_atstring (date-time) | null (date-time)
collected_atstring (date-time) | null (date-time)
device_idId | null

The device a person confirmed.

created_byUserPublic | null
created_atrequiredstring (date-time)

DevicePairingClaim

object

What registerDevice takes, minus robot_repo, owner and trust_mode (a person decides those), plus the code when a person issued one.

DevicePairingClaim fields
FieldTypeDescription
codestring | null

length ≤ 16

The pairing code, any case, dash optional. Omit to have the hub issue one for the robot to show.

nameSlug | null

A suggested name; the pairing's or the confirming person's wins.

adapterrequiredDeviceAdapter
adapter_infoDeviceAdapterInfo | null
accepted_contractsarray of ContractFingerprint

items 0–32

public_key_pemrequiredEd25519PublicKeyPem
endpoint_capableboolean

default false

descriptionstring | null

length ≤ 1024

DevicePairingConfirm

object

DevicePairingConfirm fields
FieldTypeDescription
trust_modeDeviceTrustMode
nameSlug | null

The device's name; else the pairing's, else the robot's suggestion.

robot_repostring | null

length ≤ 129

Required for a robot-issued pairing (a robot repo visible to you); must match for a person-issued one.

ownerHandle | null

For a robot-issued pairing; omit to own it yourself.

DevicePairingCollect

object

DevicePairingCollect fields
FieldTypeDescription
tsrequiredstring (date-time)

The robot's clock; within five minutes of the hub's.

signaturerequiredstring

length ≤ 128

base64url Ed25519 signature, by the key the robot declared, over the canonical JSON of {pairing_id, ts}.

DevicePairingClaimed

object

DevicePairingClaimed fields
FieldTypeDescription
devicerequiredDevice
api_keyrequiredstring

The device credential (lucen_sk_...), shown this once. The driver keeps it beside its private key (mode 0600); it acts only as this device.

signing_keyrequiredDeviceSigningKey
robot_interfaceobject | null

The robot card's embodiment interface, to pin; its fingerprint is device.interface_fingerprint. Null when the card declares none.

DeviceTrustModeChange

object

DeviceTrustModeChange fields
FieldTypeDescription
trust_moderequiredDeviceTrustMode
tsrequiredstring (date-time)
signaturerequiredstring

length ≤ 128

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

ApprovalRequestStatus

string

one of pending · approved · denied

ApprovalRequestPage

object

ApprovalRequestPage fields
FieldTypeDescription
itemsrequiredarray of ApprovalRequest
next_cursorrequiredstring | null

ApprovalRequestCreate

object

ApprovalRequestCreate fields
FieldTypeDescription
model_reporequiredstring

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of a model repo visible to the caller.

onnx_pathFilePath | null

Which file in the repo. Omit when the repo holds exactly one *.onnx; required (422) when it holds several.

policy_pathstring | null

length ≤ 1024

A LeRobot checkpoint directory in the repo (policy) instead of an ONNX, for a device whose adapter declares checkpoint_dir. The request pins the directory's lucen-checkpoint-v1 digest, and its contract comes from the lucen_manifest.json beside it. Omitted on such a device, a repo whose only policy is a policy/ directory is pinned to it. A device without checkpoint_dir is 409.

onnx_sha256Sha256 | null

Optional assertion. When given and the repo's current file has a different digest, the request is 409. The caller was looking at other bytes.

minutesrequiredinteger

≥ 1 · ≤ 1440

How long the policy may run once approved. The window starts at approval. A trial on a Laika is at most 60 minutes (422). An install's minutes are its pickup window, up to 1440.

reasonstring | null

length ≤ 1024

The reason, shown to the human on the pending card.

endpoint_idId | null

Ask for the device to consume a hub inference endpoint instead of running the policy itself. The endpoint must be visible to the caller and serve model_repo (409 otherwise). The request is pinned to the endpoint's own onnx_path / sha256. The device must be endpoint_capable (422 otherwise). The minted token carries endpoint_id inside its signature. The driver then opens a session on the endpoint and does not pull the model.

modeApprovalMode

run tries the policy for minutes. install keeps it on the robot, and minutes is how long the robot has to fetch it. shadow runs the policy beside the one running for minutes and applies nothing. Omitted, it is run. A request for an endpoint is run only (422). A shadow request on a device whose adapter declares no shadow protocol is 422.

slotSlot | null

The skill slot the file goes into on the robot. Omitted on a Laika, or on a robot with pre-deploy checks, the hub reads it from the file's manifest. There every request needs a slot, and one with none is 422 (a dry run is answered). Elsewhere an install needs one (422). Only a Laika or a robot with pre-deploy checks gets it from the manifest.

dry_runboolean

default false

Check, do not file: 200 with the request as it would be and its checks[]; nothing is stored or audited.

ApprovalRequest

object

ApprovalRequest fields
FieldTypeDescription
idrequiredId
device_idrequiredId
statusrequiredApprovalRequestStatus
model_reporequiredRepoRef
onnx_pathrequiredFilePath
onnx_sha256requiredSha256
contract_fingerprintContractFingerprint | null

The pinned policy's inputs and outputs. contract_source says where the hub read them. Null when neither the pinned file nor the repo describes them.

contract_sourceContractSource | null

Where contract_fingerprint was read when the request was filed. Null for a request filed before the hub recorded it, and when there is no fingerprint.

minutesrequiredinteger
reasonstring | null
requested_byUserPublic | null
requested_viarequiredstring

one of api_key · session

Which kind of credential asked: an agent's key or a person's session.

approval_idId | null
decided_byUserPublic | null
decided_atstring (date-time) | null (date-time)
decision_reasonstring | null
endpoint_idId | null

The endpoint this request asks the device to consume; null for a run-it-yourself deployment.

modeApprovalMode
slotSlot | null

The slot asked for, or the one the manifest names when none was asked.

suggested_slotread-onlySlot | null

The slot the file's signed manifest names. Only the answer to createApprovalRequest (and its dry run) carries it. Null when the manifest names none, and on later reads. Only a Laika, or a robot with pre-deploy checks, gets one.

certifiedread-onlyboolean

Whether Lucen certified these bytes for this robot. A certified file needs no pre-deploy report in the slot Lucen certified it for. Approving it for another slot is 422.

report_rollout_idread-onlyId | null

The pre-deploy report of these bytes on this robot, for the request's slot. It is the sim test the approver reads. Null when there is none. Null when the request names no slot.

requesterActivityActor | null

Who asked, and with which credential: a person's session or an API key (its name, prefix and scope). It also carries plan_id / agent: planner when a plan's planner filed the request acting as that credential.

planApprovalPlan | null

The plan that filed this request, when a planner did.

deviceDevice | null

Where it would run: the device the request is for. getApprovalRequest and getMyOverview only; null on list pages.

modelApprovalModelFacts | null

What would run: the artifact, its control class and where that class says it may run. It also names the embodiment the policy was built for. getApprovalRequest and getMyOverview only.

endpointEndpoint | null

The endpoint an endpoint-bound request would consume, when it is visible to the caller. Null otherwise, and the endpoint.serving check then says so. getApprovalRequest and getMyOverview only.

checksarray of ApprovalCheck | null

What the hub checked, computed from the hub's current state on every read. getApprovalRequest and getMyOverview only; null on list pages.

trial_idread-onlystring | null

The real-robot trial this request was filed for (its run sheet is locked when the request is approved); null otherwise.

second_person_requiredread-onlyboolean

True when the device belongs to an organization that requires a second person (Org.require_second_approver). Then the person who asked, by session or with one of their keys, cannot approve it: createApproval answers 403. On a device a person owns this is always false, so a solo owner can deploy.

timelineread-onlyarray of ApprovalTimelineEntry | null

The request's audit trail, oldest first: requested, approved or denied, started, stop requested, stopped or expired. Read from the append-only audit log and the device's signed events, so an entry never changes once written. getApprovalRequest and getApprovalRequestById only. Null on list pages.

created_atrequiredstring (date-time)

ApprovalDecision

object

ApprovalDecision fields
FieldTypeDescription
reasonstring | null

length ≤ 1024

ApprovalStatus

string

one of issued · running · stopped · refused · installed · expired

  • issued: signed, not yet picked up.
  • running: the driver reported started.
  • stopped: the driver reported stopped, or a person stopped it before it started.
  • refused: the driver refused it and said why.
  • installed: the robot has the file of an install approval, and its bytes matched the token. Whether the policy is in use shows in the robot's next status.
  • expired: issued past expires_at (computed and never stored).

ApprovalPage

object

ApprovalPage fields
FieldTypeDescription
itemsrequiredarray of Approval
next_cursorrequiredstring | null

ApprovalCreate

object

ApprovalCreate fields
FieldTypeDescription
request_idrequiredId
safety_acknowledgedboolean

default false

The approver confirmed that they or someone else is at the robot, with a hardware emergency stop within reach. They confirmed it on the page where they approved. It is recorded in the device.approve audit row as safety_acknowledged. It is also signed into the token and shown on the approval. The web app does not let the hold-to-approve start until it is ticked. The API records the answer and does not refuse a request without it. The record therefore says which approvals were made without the confirmation.

unstamped_acknowledgedboolean

default false

The approver read that the policy records no embodiment fingerprint and approved it onto this trust-mode-approved device anyway. Required (422) exactly when the request rests on an unstamped policy whose contract the device never registered. It is signed into the token. The driver requires it there before it compares the policy's joint order with its pinned interface.

minutesinteger | null

≥ 1 · ≤ 1440

The approver may shorten the window. At most the minutes the request asked for; more is a 422. Omitted or null, the approval covers what was asked. The token, expires_at and the audit row carry the minutes approved; the request keeps the minutes asked. A trial on a Laika is at most 60 minutes (422).

report_rollout_idId | null

The pre-deploy report the approver read. An uncertified file needs it (422) on a robot the hub runs pre-deploy checks on. A file Lucen certified needs none in its certified slot. When given, it must be the request's report_rollout_id (422 otherwise). It is signed into the token.

report_acknowledgedboolean

The approver read that report, failed tests included, and approves the file for this robot. Omitted, it is false. Required (422) whenever the approval needs report_rollout_id.

Approval

object

Approval fields
FieldTypeDescription
idrequiredId
device_idrequiredId
request_idrequiredId
statusrequiredApprovalStatus
model_reporequiredRepoRef
onnx_pathrequiredFilePath
onnx_sha256requiredSha256
contract_fingerprintContractFingerprint | null
minutesrequiredinteger
approved_byrequiredUserPublic | null
issued_atrequiredstring (date-time)
expires_atrequiredstring (date-time)

When the policy must be stopped; issued_at + minutes.

tokenrequiredstring

The signed EdDSA JWT the driver verifies offline.

kidstring | null

Which hub signing key signed it.

started_atstring (date-time) | null (date-time)
stopped_atstring (date-time) | null (date-time)

When the hub heard the robot's stopped, or ended the approval itself (a lost link, a STOP before the robot started). Always the hub's own clock. The robot's claimed time is robot_stopped_at.

endpoint_idId | null

Bound inside the token when the approved request named an endpoint.

trial_idread-onlystring | null

The trial this approval runs. When set, the token also binds trial_id and run_sheet_sha256 (the locked run sheet's digest). The driver refuses a sheet that does not hash to it.

safety_acknowledgedboolean

The e-stop confirmation, as the approver gave it; signed into the token.

unstamped_acknowledgedboolean

The approver acknowledged an unstamped policy; signed into the token.

modeApprovalMode
slotSlot | null

The skill slot the file goes into, from the request; signed into the token.

report_rollout_idId | null

The pre-deploy report the approver read; signed into the token. Null when they gave none, as for a certified file.

report_acknowledgedboolean

The approver read the report, failed tests included. Recorded on the approval and in the audit log.

certifiedboolean

Whether Lucen certified these bytes for this robot when the hub signed. Signed into the token when true.

installed_atread-onlystring (date-time) | null (date-time)

When the robot reported installed for an install approval. Null otherwise.

stop_requested_atstring (date-time) | null (date-time)

When a person pressed STOP on a running approval. The driver reads it off its next heartbeat, holds, stops and posts stopped with reason stop_requested.

stop_requested_byread-onlyUserPublic | null

Who pressed STOP, read from the device.stop audit row. Null when nobody did.

seconds_leftnumber | null

Seconds left in the window for an issued or running approval; null otherwise.

latest_heartbeatDeviceEvent | null

The newest heartbeat the driver posted while it runs; null otherwise.

link_lost_atread-onlystring (date-time) | null (date-time)

Set on a running approval the hub has not heard from for its link window (20 seconds by default). It is the moment that silence became a lost link, on the hub's clock. A policy on the robot stops itself about ten seconds after the robot loses the hub, so the hub no longer counts the approval as running. Within about a minute the hub's sweep ends the approval (stopped, reason link_lost_presumed). The robot's own signed stopped, reason link_lost, is still recorded when the link returns.

stop_reasonread-onlystring | null

The robot's own reason from its signed stopped event: stop_requested, expired, local_cap, link_lost, disconnected, adapter_finished or another the driver names. link_lost_presumed when the hub ended it on silence and the robot has not reported. Null until it stopped.

robot_stopped_atread-onlystring (date-time) | null (date-time)

The robot's own claimed time of stopping, the ts of its signed stopped event. Shown beside stopped_at where the two differ, as when the event waited for a lost link to return. It never moves stopped_at.

robot_running_after_stop_atread-onlystring (date-time) | null (date-time)

When the robot last reported a heartbeat after the hub had ended this approval on silence. The hub takes that heartbeat once, as evidence the policy is still running, and answers it with the stop. STOP stays available while this is set. Null once the robot reports it stopped.

bringupread-onlyBringup | null

The bring-up ladder of a run approval. Null on an install or a shadow run.

shadowread-onlyShadowSummary | null

What a shadow run reported so far: its latest stats and how it ended. Null until the robot reports, and on every other mode. The trace is getApprovalShadow.

created_atrequiredstring (date-time)

RungTick

object

A person's tick on rung 1 to 3, or a skip of rung 0 with a reason.

RungTick fields
FieldTypeDescription
skipboolean

default false

Skip rung 0 (shadow) instead of running one. Rungs 1 to 3 cannot be skipped.

reasonstring | null

length ≤ 1024

Why rung 0 is skipped. Required with skip.

ShadowTrace

object

ShadowTrace fields
FieldTypeDescription
approval_idrequiredId
summaryrequiredShadowSummary
tracerequiredarray of ShadowPoint

At most points samples, evenly thinned over the whole run.

decimatedrequiredboolean

True when the hub stored more samples than it returned.

SlotRestore

object

What a person confirms when putting a slot's previous policy back.

SlotRestore fields
FieldTypeDescription
safety_acknowledgedboolean

default false

As on ApprovalCreate: someone is at the robot with a hardware emergency stop within reach. Recorded and signed, not required.

minutesinteger | null

≥ 1 · ≤ 1440

How long the robot has to fetch the file. Omitted, the previous install's own window.

DeviceEventKind

string

one of started · heartbeat · stopped · refused · degraded · recovered · verified · pulled · installed · rung · status · recording

started / heartbeat / stopped / refused, plus five more:

  • degraded: the device's local fail-safe fired (two chunk deadlines missed or the endpoint link lost). It holds posture and applies nothing stale.
  • recovered: the link returned and chunks flow again.
  • verified: the token verified offline on the box.
  • pulled: the files pulled and the digest the token binds matched.
  • installed: the robot has the file of an install approval. The command line checked its bytes against the token, or the robot's adapter took it while serving. The robot's next status says whether the policy is in use. The summary carries via (cli or serve), sha256, slot, activated, certified and report_rollout_id. The sha256 and slot must be the approval's. An adapter that will not take the file sends refused with reason adapter_refused.

degraded and recovered are allowed from running, and both are audited. verified and pulled come from issued, before started. They are not audited and do not change the state. installed comes from issued, on an install approval only (409 on a trial). It is also taken after the pickup window, and the request's trail marks it late. It is audited and ends the approval as installed.

A stopped whose summary.reason is link_lost says the robot lost the hub while a policy ran on it and stopped the policy itself. The driver posts it when the link returns, with the robot's own ts. The hub takes it once even on an approval it already ended for that lost link; it records the robot's time and reopens nothing. A heartbeat on that ended approval is taken once as evidence the policy still runs, audited as device.heartbeat_after_stop, and answered with stop_requested_at set. A second one is 409.

  • rung: the robot acknowledged a rung of the bring-up ladder that a person ticked. Allowed from running. The summary carries n and name, and the adapter's status. Not audited; the person's tick is (device.rung).
  • status: the robot's report of itself while no approval runs. approval_id is null. The summary carries the adapter's status, and the hub keeps its firmware, runtime, hardware id and slots. Not audited, and it changes no approval.
  • recording: the bridge's progress while it records demonstrations. approval_id is null. The summary carries recording_id, robot, hub_robot, task, episode (1-based) and episodes. It also carries phase: ready, recording, review, resetting, saving, done or stopped. Then come saved, discarded, elapsed_s and phase_left_s, plus reason once the phase is done or stopped. The bridge sends one at each phase change and every 10 s. Not audited, and it changes no approval.

DeviceEventPage

object

DeviceEventPage fields
FieldTypeDescription
itemsrequiredarray of DeviceEvent
next_cursorrequiredstring | null

DeviceEventCreate

object

DeviceEventCreate fields
FieldTypeDescription
approval_idrequiredId | null

The approval the event is about. Null for a status or a recording event only, and required for every other kind (422 otherwise). The null is part of the signed payload.

kindrequiredDeviceEventKind
tsrequiredstring (date-time)

The driver's clock when the event happened; part of the signed payload.

summaryrequiredobject

A few scalars (tick, loop_hz, elapsed_s, …) or a reason. ≤ 64 KiB serialised.

messagestring | null

length ≤ 2048

signaturerequiredstring

length ≤ 128

base64url Ed25519 signature, by the device's registered key, over the canonical JSON of {approval_id, device_id, kind, summary, ts} (sorted keys, no whitespace).

DeviceEvent

object

DeviceEvent fields
FieldTypeDescription
idrequiredId
device_idrequiredId
approval_idrequiredId | null
kindrequiredDeviceEventKind
tsrequiredstring (date-time)
summaryrequiredobject
messagestring | null
stop_requested_atstring (date-time) | null (date-time)

On the postDeviceEvent answer only: the approval's stop_requested_at when a person asked it to stop. Null on list pages.

rungs_tickedarray of integer

On the postDeviceEvent answer only: the rungs of the approval's bring-up ladder a person ticked that the robot has not acknowledged with a rung event. Empty elsewhere.

created_atrequiredstring (date-time)

BridgeTicketCreate

object

BridgeTicketCreate fields
FieldTypeDescription
originstring | null

length ≤ 256

The web origin the ticket is for, when the request carries no Origin header (a call from the web app's server).

BridgeTicket

object

BridgeTicket fields
FieldTypeDescription
ticketrequiredstring

The signed token. Its type is lucen-bridge-pair+jwt and its audience lucen-bridge.

expires_atrequiredstring (date-time)
device_idrequiredId
originrequiredstring

The web origin the bridge will accept the ticket from.

Ed25519PublicKeyPem

string

length 60–400

An Ed25519 public key, PEM (SubjectPublicKeyInfo).

DeviceAdapter

string

length 1–64 · pattern ^[a-z0-9](?:[a-z0-9._-]{0,62}[a-z0-9])?$

The identifier of the adapter the driver hands an approved policy to. It is an open identifier, with no closed list of values. Adapters are plugins on the robot box. The driver discovers them through the Python entry-point group lucen_device.adapters. An unpackaged script is named as module:Class instead. This field holds the entry-point name, or the class's own name for a module:Class adapter. The operator names it at lucen-device register. The driver never loads an adapter nobody asked for.

Built in:

  • virtual validates the contract and "runs" it for the approved window, emitting heartbeats. It simulates no physics and runs no inference. It exists so the whole consent path runs in CI with no hardware.
  • command shells out to the robot's own start/stop/status commands. They come from the driver's local config. They never come from the hub.
  • lucen-legged is the deprecated alias of command and keeps working.

The hub cannot see the code behind an identifier. What ran is recorded in adapter_info and in the signed started event.

ContractFingerprint

string

pattern ^[a-f0-9]{64}$

sha256 of the canonical JSON (sort_keys, no whitespace, UTF-8) of a stamped ONNX manifest's contract block. That block holds the joint order, obs spec, action scales, control rate and the rest of the IO contract. Two policies with the same fingerprint drive the same plant the same way.

DeviceAdapterInfo

object

What the driver says about the adapter it loaded: where the code came from and which protocols it implements. It is a declaration by the robot box, recorded so the trail says what ran. The hub cannot verify code it cannot see, and it does not claim to.

DeviceAdapterInfo fields
FieldTypeDescription
sourcerequiredstring

one of builtin · entry_point · module · file

builtin (ships in lucen-device), entry_point (an installed distribution registered it), module (module:Class, named explicitly) or file (path/to/file.py:Class).

targetstring | null

length ≤ 256

The module:Class the identifier resolved to.

distributionstring | null

length ≤ 128

The installed distribution that provides the adapter; null for an unpackaged script.

versionstring | null

length ≤ 80

That distribution's version. For a file adapter, sha256:<hex> of the file.

driver_versionstring | null

length ≤ 32

The lucen-device version that inspected it.

protocolsrequiredarray of DeviceAdapterProtocol

items ≤ 8 · unique items

fail_safe_probestring | null

length ≤ 256

Outcome of the driver's registration probe of the local fail-safe. The probe calls hold() then stop() on a fresh instance, before any hub contact. The value is passed, failed: <why>, or null when the adapter has no chunk interface to probe.

DeviceTrustMode

string

one of registered · approved

default "registered"

Chosen by the person who confirms a pairing, or by the box itself at registerDevice. Afterwards only the device changes it (setDeviceTrustMode).

  • registered: the box runs only IO contracts it registered (accepted_contracts). This is the original behaviour and the default.
  • approved: the box also runs a contract it never registered, when both of these hold. A signed approval names that contract, and the policy's embodiment_fingerprint equals the robot interface fingerprint the box pinned. An unstamped policy additionally needs the approver's recorded acknowledgment in the token. It also needs a contract that fits the pinned interface: the same joint order and control rate, one action per joint. The box checks that fit itself.

DeviceCredential

object

The device's own API key, bound to the device. It is minted when the robot collects a confirmed pairing. It can act only as the device. Only its prefix is ever shown again.

DeviceCredential fields
FieldTypeDescription
prefixrequiredstring
created_atrequiredstring (date-time)
last_used_atstring (date-time) | null (date-time)

Coarse (about a minute). It answers "is the driver still polling?".

revoked_atstring (date-time) | null (date-time)

DeviceFirmware

object

The control-board firmware a robot reported, verbatim from its signed status.

DeviceFirmware fields
FieldTypeDescription
componentrequiredstring

length ≤ 64

Which part of the robot the version is of, as the robot names it.

versionrequiredFirmwareVersion
reported_atrequiredstring (date-time)

DeviceRuntime

object

The policy runtime a robot reported, verbatim from its signed status.

DeviceRuntime fields
FieldTypeDescription
namerequiredstring

length ≤ 64

lucen-laika.

versionrequiredstring

length ≤ 64

The runtime's release (0.4.2).

modifiedrequiredboolean

True when the robot says its runtime files no longer match the signed release.

integritystring | null

one of official · modified · unknown

The robot's own word on its runtime files: official when they match the signed release, modified when they do not, unknown when it could not check. Null from a robot that reports none. modified warns on the gate and does not refuse.

reported_atrequiredstring (date-time)

DeviceSlot

object

One skill slot on a robot: what the hub approved for it, and what the robot reports is running in it. approved_* come from the newest installed approval for the slot; running_* from the robot's signed status. Either side may be null.

DeviceSlot fields
FieldTypeDescription
namerequiredSlot
policy_reporequiredRepoRef | null

The policy repo of the approved install; null when the hub installed nothing here.

approved_sha256requiredSha256 | null
approved_approval_idrequiredId | null
running_sha256requiredstring | null

pattern ^[0-9a-f]{8,64}$

The digest the robot reports in the slot. A Laika reports the first 16 hex characters, so compare by prefix.

tierrequiredstring | null

one of certified · uncertified · revoked

The tier the robot reports for the slot's file; null when it reports none.

DevicePairingStatus

string

one of pending · claimed · confirmed · rejected · expired

  • pending: a code a person issued, no robot yet.
  • claimed: a robot declared itself and waits for a person.
  • confirmed: a person confirmed and the device exists. collected_at says whether the robot picked up its credential.
  • rejected: "Not my robot".
  • expired: ten minutes passed unconfirmed (computed).

DevicePairingDeclared

object

What the robot declared when it claimed. The person who confirms sees it.

DevicePairingDeclared fields
FieldTypeDescription
adapterrequiredDeviceAdapter
adapter_infoDeviceAdapterInfo | null
accepted_contractsrequiredarray of ContractFingerprint
endpoint_capablerequiredboolean
key_fingerprintrequiredstring

sha256 (hex) of the raw Ed25519 public key; the robot prints the same.

namestring | null

The name the robot suggested.

descriptionstring | null

ApprovalMode

string

one of run · install · shadow

  • run: a trial. The robot runs the policy for the approved minutes, then goes back to the one it had.
  • install: the robot keeps the policy. The minutes are how long it has to fetch the file.
  • shadow: the policy computes on the robot beside the one running. Its actions are not applied. The robot reports the predicted actions next to the applied ones for the approved minutes. Nothing moves because of it. A finished shadow run is the first rung of a trial's bring-up ladder.

ContractSource

string

one of stamp · sidecar · endpoint · unreadable

Where the hub read a policy's inputs and outputs. stamp: the lucen_manifest inside the pinned file itself (a checkpoint carries its own). sidecar: the repo's io_contract.json, because the pinned file parsed cleanly and carries no stamp. endpoint: the endpoint the request names. unreadable: the hub could not read the pinned file (over 64 MiB, not an ONNX model, a stamp that does not parse). It is never judged by the sidecar then: filing it is 409, and a dry run's contract check reads fail.

ApprovalPlan

object

The plan a planner-filed request came from.

ApprovalPlan fields
FieldTypeDescription
idrequiredId
taskrequiredstring
statusrequiredPlanStatus
run_idrequiredId
budget_usdrequirednumber
cost_usdrequirednumber
expires_atrequiredstring (date-time)

When the plan hands back whatever it is doing.

ApprovalModelFacts

object

What would run if the request were approved. For an endpoint-bound request it is read from the endpoint. Otherwise it is read from the model repo's ModelMeta.

ApprovalModelFacts fields
FieldTypeDescription
artifactrequiredstring

one of onnx · checkpoint_dir

onnx: one file. checkpoint_dir: policy/ + lucen_manifest.json.

control_classControlClass | null
control_class_sourcerequiredstring

one of endpoint · model_meta · undeclared

endpoint (fixed when the endpoint was created), model_meta, or undeclared.

runs_onrequiredstring

one of robot · hub_endpoint

robot: the device pulls the pinned bytes and runs them itself. hub_endpoint: the device consumes action chunks from the hub endpoint over the network. It does so under its own local fail-safe.

policy_typestring | null
robotstring | null

The robot the policy was built for (ModelMeta.robot), when visible.

embodiment_fingerprintstring | null

pattern ^[0-9a-f]{64}$

Endpoint

object

Endpoint fields
FieldTypeDescription
idrequiredId
namestring | null
statusrequiredEndpointStatus
executorrequiredRunExecutor
model_reporequiredRepoRef
onnx_pathrequiredFilePath

The served artifact's path: the ONNX file, or the checkpoint directory (policy) when artifact is checkpoint_dir. The field keeps its original name. It is frozen.

model_sha256requiredSha256

Every claim, session token and device approval binds to this digest. It is the ONNX's sha256, or the directory's lucen-checkpoint-v1 digest (see EndpointArtifact).

artifactEndpointArtifact
policy_formatstring | null

length ≤ 32

The manifest's policy_format for a checkpoint directory (lerobot, lerobot-peft); null for an ONNX.

base_modelstring | null

length ≤ 256

What a PEFT adapter sits on (e.g. lerobot/smolvla_base). The server fetches it from the Hugging Face Hub or its cache. Null otherwise.

contract_fingerprintContractFingerprint | null

Read from the repo's io_contract.json / manifest. For a checkpoint directory it comes from lucen_manifest.json, which the digest covers. Null when the repo carries none.

control_classrequiredControlClass
paramsinteger | null
vram_basisEndpointSizeBasis | null

Which bytes sized the tier. Null on an endpoint created before the rule existed.

weight_bytesinteger | null

The bytes the tier was sized from, before headroom.

tierrequiredstring

one of l4 · a10g · a100 · h100

The tier the model's size selected (the one it is priced on).

rate_usd_per_hourrequirednumber

The tier's billed hourly rate. On Lucen cloud it accrues for every second the endpoint is up, from the claim to the stop. 0 on worker.

pricedrequiredboolean

Whether the hub bills this endpoint. False on worker: the owner's own machine. Zero then means "not charged".

idle_stop_minutesrequiredinteger

Minutes with no open session before the hub stops the endpoint; 0 never.

keep_warmrequiredboolean

true: the hub never stops it for being idle.

session_idle_secondsrequiredinteger

The server closes a session with no chunk request for this long (reason idle).

idle_sincestring (date-time) | null (date-time)

When the endpoint last had no open session: its claim, or the close of its last session. Null while a session is open or before a claim. The hub stops the endpoint idle_stop_minutes after it.

stop_reasonstring | null

length ≤ 32

Why it stopped. The hub asks the server to stop for one of four reasons. requested: stopEndpoint. idle: no session for idle_stop_minutes. budget: the cost cap. max_hours: the uptime cost reached what the endpoint reserved at create. A server that stops on its own says why in its last report (EndpointServerStopReason). max_hours then means the server reached the endpoint's time limit first. Null while running, and when a server stopped without saying why.

ownerrequiredRepoOwner
created_byUserPublic | null
urlstring | null

The websocket URL the claiming server stated; null until claimed.

claimed_bystring | null

The server name given to claimEndpoint.

claimed_atstring (date-time) | null (date-time)
heartbeat_atstring (date-time) | null (date-time)

The server's last claim or report.

stop_requested_atstring (date-time) | null (date-time)

Set by stopEndpoint on a running endpoint; the server stops on its next report.

max_hoursnumber | null
budget_usdnumber | null

A hard cap on the endpoint's cost. The hub asks the server to stop on the report whose uptime cost reaches it (stop_reason: budget).

cost_usdnumber | null

What the endpoint has cost (4 decimal places). On the uptime basis: billed_seconds at rate_usd_per_hour, live while it runs and fixed when it ends, equal to its ledger row. On the sessions basis: the sum of its closed sessions. 0 on worker.

cost_basisrequiredEndpointCostBasis
billed_secondsnumber | null

The seconds the endpoint is billed for: from the claim to now while it runs, to the stop once it ended. The hub ends a server that went silent at its last report, and bills to that. Null before a claim and on the sessions basis.

sessions_openrequiredinteger
sessions_totalrequiredinteger
chunks_servedrequiredinteger

Summed over every session, as the server reported.

gpu_secondsrequirednumber

Summed over every session, as attributed by the server.

service_ms_p95number | null

The worst p95 service time (receive → send) over the open sessions. With none open, the p95 of the latest session that measured one.

rtt_ms_p95number | null

The worst p95 round trip the devices reported over the open sessions. With none open, the p95 of the latest session that reported one.

modal_call_idstring | null

length ≤ 64

The Modal function call serving a modal endpoint, set by the dispatch job after the endpoint was recorded. Null for a worker endpoint.

dispatched_atstring (date-time) | null (date-time)

When the hub spawned the modal call; null for worker.

errorstring | null
created_atrequiredstring (date-time)
started_atstring (date-time) | null (date-time)
stopped_atstring (date-time) | null (date-time)
updated_atrequiredstring (date-time)

ApprovalCheck

object

One thing the hub verified before a person decides. Codes:

  • device.contract: the device registered this contract fingerprint.
  • model.control_class: reflex runs only on the robot. Only skill / planner may be served.
  • device.fail_safe: the probe the device DECLARED. The hub cannot run it.
  • sim_gate.scorecard: the pinned file's own sim test on this device's robot. On a robot the hub runs pre-deploy checks on, it is the file's pre-deploy report. None is fail unless Lucen certified the file (pass). Failed tests are warn, named in evidence.failures. Elsewhere it is the newest finished sim test of the file in the policy's own repo. That is the caller's own, one run by someone who can edit the policy, or one published there. None is absent. A test of the same file in another repo never counts. A test that ran these bytes as a checkpoint counts too: a campaign's scan, its control, or a test while the run trained. It is matched by the digest the worker measured. It says what it measured and never refuses: one that failed is warn. Its evidence adds checkpoint_step, purpose and upright (episodes upright, episodes). evidence holds rollout_id, onnx_sha256, battery, gates_passed, gates_total, failures and certified (certified, revoked or null). It also holds the report's slot and slot_from (manifest or owner). A certified pass holds the slot Lucen certified, with slot_from: certified, and a report's facts only when that report is of the same slot. report_hidden is true when a report exists that the caller cannot see. A file whose upload the hub has not yet verified gets no report and no certified pass.
  • embodiment.fingerprint: the policy's recorded fingerprint against the robot's current interface.
  • artifact.digest: the pinned bytes are still what the repo holds. It is warn while the hub is still checking the bytes of a large upload (evidence.verified false).
  • endpoint.serving: the endpoint is claimed and not stopping.
  • firmware.version: the controller firmware the robot last reported (Device.firmware) against the robot card's hardware.firmware. Below required_min or on blocked is fail and the hub refuses to approve. Not yet reported is absent. A card that declares no firmware gets no such check. evidence holds reported, required_min, blocked and reported_at.
  • runtime.release: the policy's stamped runtime_release against the runtime the robot last reported (Device.runtime). Equal is pass. A stamp the robot does not run, or no stamp, is warn, which does not refuse. Not reported is absent. A card that declares no hardware.runtime gets no such check.

The gate: createApproval refuses (422) while any check is fail, and names each failed code in errors[].type.

New codes may be added. Render unknown ones by status and message.

ApprovalCheck fields
FieldTypeDescription
coderequiredstring
statusrequiredApprovalCheckStatus
messagerequiredstring

One sentence, safe to show verbatim.

evidenceobject | null

The facts behind the verdict (fingerprints, ids, counts) for a UI or an agent to show.

ApprovalTimelineEntry

object

ApprovalTimelineEntry fields
FieldTypeDescription
kindrequiredstring

one of requested · approved · denied · started · stop_requested · stopped · refused · degraded · recovered · installed · expired · link_lost · robot_still_running · rung

  • requested / approved / denied: the decision.
  • started, stop_requested, stopped, refused, degraded, recovered: what happened on the robot.
  • installed: the robot has the file of an install approval. The robot's next status says whether the policy is in use. The reason is after_window when the robot reported it after the pickup window.
  • expired: the window ended before the robot started.
  • link_lost: the hub stopped hearing from a running robot past its link window. The robot stops the policy itself before then. The entry is computed until the hub's sweep ends the approval with a stopped entry of its own (reason link_lost_presumed, actor the hub). The robot's own stopped adds another when the link returns.
  • robot_still_running: the robot reported a heartbeat after the hub had ended the approval. The hub told it to stop on that answer.
  • rung: a person ticked, or skipped, a rung of the bring-up ladder. The reason names the rung (1 hoisted), and a skip's reason.
atrequiredstring (date-time)
actorActivityActor | null

Who wrote the entry; null for a computed expired or link_lost.

reasonstring | null

The decision's reason, or the robot's machine reason (stop_requested, expired, link_lost, after_window).

minutesinteger | null

The minutes asked (requested) or approved (approved).

robot_atstring (date-time) | null (date-time)

On a stopped entry the robot posted: the robot's own claimed time. at stays the hub's clock.

Bringup

object

The bring-up ladder of a trial: Shadow, Hoisted, Supported, Free. Rungs 1 to 3 are ticks by a signed-in person at the robot (tickRung), acknowledged by the robot with a signed rung event. The robot behaves the same at every rung; the ladder records what the person attested. Any stop ends it. The approval's window ends the run whatever the rung.

Bringup fields
FieldTypeDescription
rungsrequiredarray of BringupRung

items 4–4

currentinteger | null

The rung the person is on now, while the trial runs; null otherwise.

ShadowSummary

object

ShadowSummary fields
FieldTypeDescription
activerequiredboolean

Whether the robot's last report said the shadow was still computing.

endedstring | null

Why it ended, in the robot's word: expired, stop, down, adapter_stop, superseded, slot_changed, deploy_exit, late, or a fault: reason. Null while it runs.

sha256string | null

The first hex of the candidate the robot compared, as it reported it.

slotstring | null
obs_sourcestring | null

verbatim when the candidate read the running policy's own observation; rebuilt when the robot built one for it; synthetic from the virtual adapter.

ticksrequiredinteger

Ticks the robot compared.

pointsrequiredinteger

Trace samples the hub stored.

joint_orderrequiredarray of string

The joint names the stats and the trace index, from the robot card.

statsrequiredShadowStats
updated_atstring (date-time) | null (date-time)

ShadowPoint

object

ShadowPoint fields
FieldTypeDescription
trequirednumber

Seconds since the shadow started.

predrequiredarray of number

The candidate's joint targets, in the joint order.

appliedrequiredarray of number

The targets the running policy wrote to the motors.

DeviceAdapterProtocol

string

one of policy · chunks · staged_start · safe_stop · install · shadow · checkpoint_dir

A protocol the adapter's class implements, as the driver found it by inspecting the code on the box. policy: run an approved file locally (start / stop / status / is_running). chunks: consume a hub endpoint (begin / observe / apply / hold / resume / stop). The driver's registration probe exercises hold() and stop() once. staged_start: the optional stage(name, interface) hook (safe state, then default pose, then the policy). safe_stop: the optional set_safe_stop(mode) hook. It lets the robot card's interface.safety.safe_stop choose what hold / stop mean. install: the optional install(model_path, manifest, slot, approval) hook. It keeps the file of an install approval on the robot. The robot refuses such an approval when its adapter lacks it. shadow: the optional shadow(model_path, manifest, seconds) hook. The policy computes beside the one running and applies nothing. The hub refuses a shadow request on a device whose adapter declares none (422), and the robot refuses one with no_shadow. checkpoint_dir: the adapter runs a LeRobot checkpoint directory (policy/ beside lucen_manifest.json) instead of an ONNX file. The lerobot adapter does, through the bridge on the robot's computer.

PlanStatus

string

one of active · done · handed_back · canceled · budget_exhausted · failed

active is the only non-terminal state. Plan.waiting_on says what the plan is waiting on. The terminal states:

  • done: the planner handed back with the task complete.
  • handed_back: control returned to the human for another reason. The reason is an out-of-vocabulary task, a denied or expired approval, the window, the decision cap or the quota.
  • canceled: ended by cancelPlan.
  • budget_exhausted: model spend reached budget_usd or a step's cap.
  • failed: a decision failed validation twice, or there was no model.

EndpointStatus

string

one of queued · running · stopped · failed

  • queued: recorded, no server has claimed it.
  • running: a server claimed it and reports.
  • stopped: ended, by stopEndpoint or by the server's own terminal report.
  • failed: the server reported a failure.

A stop on a running endpoint is a flag (stop_requested_at). It is not one of these statuses.

EndpointArtifact

string

one of onnx · checkpoint_dir

What an endpoint serves.

  • onnx: one ONNX file. onnx_path is the file and model_sha256 its sha256.
  • checkpoint_dir: a policy checkpoint directory plus the lucen_manifest.json beside it. onnx_path is the directory and model_sha256 its lucen-checkpoint-v1 digest.

The digest is sha256("lucen-checkpoint-v1\n" + lines). lines holds one "<sha256 hex> <path>\n" (the sha256sum format) per member, sorted by the path's UTF-8 bytes. The members are the manifest and every file under the directory. Paths are relative to the directory holding both. The hub computes the digest from the repo's content-addressed file list. lucen serve computes it from the pulled bytes. Claims, session tokens and device approvals bind to it exactly as they bind to an ONNX's sha256.

EndpointSizeBasis

string

one of onnx_file · checkpoint_weights · params

Which bytes sized an endpoint's tier.

  • onnx_file: the ONNX file's own size, plus any external-data file beside it (model.onnx.data).
  • checkpoint_weights: the weight files under the checkpoint directory (.safetensors, .bin, .pt, .pth, .ckpt), configs excluded.
  • params: params × bytes_per_param. The fallback when the artifact's bytes cannot stand for the served weights. That is a PEFT adapter (its base weights are loaded from base_model), or a file smaller than its declared parameters could be at 2 bits each.

EndpointCostBasis

string

one of uptime · sessions

How an endpoint is billed.

  • uptime: the owner pays the tier's hourly rate for every second the endpoint is up, from the server's claim to the stop. A robot's session makes no difference to that. One ledger row per endpoint, cut when it ends. Sessions are metering detail with no price. Every endpoint created since 16 October 2026.
  • sessions: the sum of its closed sessions, each priced on the GPU-seconds the server attributed to it, one ledger row per session. Endpoints created before that date keep this basis, so their history is not restated.

A worker endpoint is unpriced on either basis.

ApprovalCheckStatus

string

one of pass · fail · warn · absent · not_applicable

  • pass: the evidence agrees.
  • fail: the evidence contradicts the request.
  • warn: the evidence is partial or weaker than a pass.
  • absent: the evidence does not exist. The check says so, and it is never counted as a pass.
  • not_applicable: the check does not apply to this kind of request.

BringupRung

object

BringupRung fields
FieldTypeDescription
nrequiredinteger

≥ 0 · ≤ 3

namerequiredRungName
statusrequiredRungStatus
window_srequiredinteger | null

How long the rung is meant to take, in seconds. Null on free: the approval's own window is what is left.

activated_atstring (date-time) | null (date-time)

When the rung became the current one.

ticked_atstring (date-time) | null (date-time)
ticked_byUserPublic | null

The person who ticked or skipped it; null for rung 0 ticked by a shadow run.

device_event_idstring | null

The robot's signed rung acknowledgment, or for rung 0 the shadow run's stopped event. Null until the robot answers.

shadow_approval_idstring | null

On rung 0, the shadow approval that satisfied it.

reasonstring | null

Why the person skipped rung 0.

ShadowStats

object

What the robot measured over a shadow run, in the robot's joint order. max_abs_diff and mean_abs_diff are per joint, in the action's unit. The counters are ticks. The hub fills every key; one the robot left out reads as empty or zero.

ShadowStats fields
FieldTypeDescription
max_abs_diffrequiredarray of number
mean_abs_diffrequiredarray of number
nonfiniterequiredinteger
clip_hitsrequiredinteger
late_ticksrequiredinteger
dropped_ticksrequiredinteger
idle_ticksrequiredinteger
infer_mean_msrequirednumber
infer_max_msrequirednumber

RungName

string

one of shadow · hoisted · supported · free

The four rungs of the bring-up ladder, in order. shadow: the policy computed beside the running one and applied nothing. hoisted: the robot hangs in its default pose, feet just touching, and the policy is applied. supported: rope slack, someone holding, first steps. free: on the ground, for the rest of the approved window.

RungStatus

string

one of pending · ticked · skipped · expired

pending: not reached, or reached and not ticked yet. ticked: a person at the robot attested it, or (rung 0) a shadow run of the same file finished on this device within 24 hours. skipped: the person skipped rung 0 with a reason. expired: the approval ended, or the rung's own window passed, before the tick. A rung's window is informational inside the approval's window and extends nothing.