API
OrganizationDevice
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}/control |
create |
Current authorized local agent control result |
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
create
POST /api/v1/device_runtime/organizations/{organization_id}/devices/{device_id}/control
Operation ID: deviceControlRuntime.
Authentication: not required.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
device_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
payload |
string |
Yes | Exact signed JSON array: ["composal-coding-control",1,organization_id,device_id,pairing_generation,unix_milliseconds,nonce_hex_32,action,arguments,environment]. Signature is unpadded base64url Ed25519 over these UTF-8 bytes; timestamp must be within 15 seconds. Actions: connect {transports?}, pending {providers?,features?}, claim {operation_id,request_digest,provider?,features?}, finish {operation_id,request_digest,claim_token,response}. Omitted providers/provider select legacy Codex only. Desktop requests feature relay_mcp_v1 only when connect advertises it; an agent-attributed create then returns a source-bound MCP connection with a separate opaque bearer. Automatic native Relay deliveries require relay_delivery_wait_v1, advertised by connect and sent on both pending and claim. Their pending metadata contains relay_delivery {thread_id,mode:wait,expires_at}; Desktop checks native availability before claiming and retains one original queued receipt while busy. Parent-only actions native_plan {connection} and native_surface {connection} return DeviceAgentNodePlan and DeviceAgentNodeSurface respectively; surface approval follows native advertisement and the coding signer retains only connect/pending/claim/finish. Browser credentials do not replace this proof. |
signature |
string |
Yes |
Responses
200: Current authorized local agent control result
application/json
The response is object or object or object.
400: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
401: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
409: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
422: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
503: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |