API

InvocationControl

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/device_runtime/organizations/{organization_id}/devices/{device_id}/invocations/control/challenge create Device-key authorization response
POST /api/v1/device_runtime/organizations/{organization_id}/devices/{device_id}/invocations/control/lease create Device-key authorization response

Fields

Field Type Required Description

create

POST /api/v1/device_runtime/organizations/{organization_id}/devices/{device_id}/invocations/control/challenge

Operation ID: control_challenge.

Authentication: not required.

Parameters

Parameter In Type Required Description
organization_id path string Yes
device_id path string Yes
X-Composal-Device-Connection header string No The Rails-issued routing selector for this physical pairing and selected OCE agent runtime. It is bound into the signed challenge; it does not replace native key proof or authorize execution. Retained tenant connections omit it.

Request body

application/json

Property Type Required Description
invocation_id string Yes
request_hash string Yes

Responses

200: Device-key authorization response

application/json

Property Type Required Description
challenge string Yes
400: Malformed JSON
404: Unavailable organization device or feature
422: Invalid request fields
503: Native invocation owner unavailable

POST /api/v1/device_runtime/organizations/{organization_id}/devices/{device_id}/invocations/control/lease

Operation ID: control_lease.

Authentication: not required.

Parameters

Parameter In Type Required Description
organization_id path string Yes
device_id path string Yes
X-Composal-Device-Connection header string No The Rails-issued routing selector for this physical pairing and selected OCE agent runtime. It is bound into the signed challenge; it does not replace native key proof or authorize execution. Retained tenant connections omit it.

Request body

application/json

Property Type Required Description
challenge string Yes
signature string Yes

Responses

200: Device-key authorization response

application/json

Property Type Required Description
lease object Yes
lease.channel enum: dev, alpha, release Yes
lease.command enum: worker.bundle.install.v1, worker.workspace.prepare.v1, worker.workspace.validate.v1, worker.workspace.drain.v1, worker.cancel.v1, worker.environment.stop.v1, ... Yes
lease.control_purpose enum: runtime-installation, workspace-preparation, cleanup, runtime-observation Yes
lease.device_id string Yes
lease.environment string Yes
lease.expires_at string (date-time) Yes
lease.invocation_id string Yes
lease.issued_at string (date-time) Yes
lease.kind enum: worker_control Yes
lease.lease_id string Yes
lease.local_machine_required enum: true Yes
lease.native_device_id string Yes
lease.native_pairing_generation string Yes
lease.organization_id string Yes
lease.pairing_generation integer Yes
lease.request_hash string Yes
lease.version integer Yes
400: Malformed JSON
404: Unavailable organization device or feature
422: Invalid request fields
503: Native invocation owner unavailable