API

DeviceInvocation

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/challenge create Device-key authorization response
POST /api/v1/device_runtime/organizations/{organization_id}/devices/{device_id}/invocations/lease create Device-key authorization response

Fields

Field Type Required Description

create

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

Operation ID: 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/lease

Operation ID: 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.agent_id string Yes
lease.agent_name string,null Yes
lease.capability enum: browser, computer, files, harnesses, processes Yes
lease.channel enum: dev, alpha, release Yes
lease.command string Yes
lease.conversation_id string Yes
lease.device_id string Yes
lease.environment string Yes
lease.expires_at string (date-time) Yes
lease.grant_id string Yes
lease.grant_revision integer Yes
lease.input_run_id string Yes
lease.invocation_id string Yes
lease.issued_at string (date-time) Yes
lease.lease_id string Yes
lease.local_approval_required boolean Yes
lease.native_agent_id string Yes
lease.native_device_id string Yes
lease.native_instance_id string Yes
lease.native_pairing_generation string Yes
lease.organization_id string Yes
lease.pairing_generation integer Yes
lease.principal_id string Yes
lease.principal_name string,null 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