API

DeviceControlMessage

Operations

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

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/devices/{device_registration_id}/control_messages list Current held messages

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

device_control_messages, err := client.DeviceControlMessage(nil).List(map[string]any{"device_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(device_control_messages)

Lua

Construct client as shown in the Lua setup, then call the operations:

local device_control_messages, err = client:DeviceControlMessage():list({ device_id = "example", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$device_control_messages = $client->DeviceControlMessage()->list(["device_id" => "example", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

device_control_messages = client.DeviceControlMessage().list({"device_id": "example", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

device_control_messages = client.DeviceControlMessage.list({ "device_id" => "example", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const device_control_messages = await client.DeviceControlMessage().list({ device_id: "example", organization_id: "example" })

Fields

Field Type Required Description
agent_id string Yes Agent Id
agent_name string Yes Agent Name
expires_at string Yes Expires At
id string Yes Id
sender one,string,null Yes Sender
text one,string,null Yes Text
text_omitted boolean Yes Text Omitted
thread object Yes Thread

list

GET /api/v1/organizations/{organization_id}/devices/{device_registration_id}/control_messages

Operation ID: deviceControlMessages.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
device_registration_id path string Yes
cursor query string No

Responses

200: Current held messages

application/json

Property Type Required Description
messages array of object Yes
messages[].agent_id string Yes
messages[].agent_name string Yes
messages[].expires_at string (date-time) Yes
messages[].id string Yes
messages[].sender string,null Yes
messages[].text string,null Yes
messages[].text_omitted boolean Yes
messages[].thread object Yes
messages[].thread.device_name string Yes
messages[].thread.id string Yes
messages[].thread.provider enum: claude, codex Yes
messages[].thread.source_operation_id string Yes
messages[].thread.title string Yes
next_cursor string,null Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway