ControlComputer
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}/control_computers |
list |
Current authorized local agent control result |
PATCH |
/api/v1/organizations/{organization_id}/control_computers/{computer}/consent |
update |
Current authorized local agent control result |
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:
control_computers, err := client.ControlComputer(nil).List(map[string]any{"organization_id": "example", "persistent_agent_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(control_computers)
Lua
Construct client as shown in the Lua setup, then call the operations:
local control_computers, err = client:ControlComputer():list({ organization_id = "example", persistent_agent_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$control_computers = $client->ControlComputer()->list(["organization_id" => "example", "persistent_agent_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
control_computers = client.ControlComputer().list({"organization_id": "example", "persistent_agent_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
control_computers = client.ControlComputer.list({ "organization_id" => "example", "persistent_agent_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const control_computers = await client.ControlComputer().list({ organization_id: "example", persistent_agent_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
connection |
object |
No | A point-in-time control transport observation. |
consent |
object |
Yes | Consent |
device |
object |
Yes | Device |
id |
string |
No | Id |
provider_status |
array |
No | Provider Status |
list
GET /api/v1/organizations/{organization_id}/control_computers
Operation ID: controlComputersList.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
persistent_agent_id |
query |
string |
Yes | |
cursor |
query |
string |
No | |
observe_connection |
query |
boolean |
No | Opt in to a bounded live control connection check after loading metadata. Provider readiness and execution authorization remain separate. |
Responses
200: Current authorized local agent control result
application/json
| Property | Type | Required | Description |
|---|---|---|---|
computers |
array of object |
Yes | |
computers[].connection |
object |
No | A point-in-time control transport observation. Unknown means no valid observation; it never means offline. This grants no execution access or provider readiness. |
computers[].connection.checked_at |
string (date-time) or null |
Yes | |
computers[].connection.status |
enum: connected, offline, unknown |
Yes | |
computers[].consent |
object |
Yes | |
computers[].consent.enabled |
boolean |
Yes | |
computers[].consent.providers |
array of enum: codex, claude |
Yes | |
computers[].consent.revision |
integer,null |
Yes | |
computers[].device |
object |
Yes | |
computers[].device.id |
string |
Yes | |
computers[].device.name |
string |
Yes | |
computers[].device.platform |
enum: darwin, linux, win32 |
Yes | |
computers[].provider_status |
array of object |
No | |
computers[].provider_status[].observed_at |
string,null (date-time) |
Yes | Time of the current pairing report, including an expired report; null when absent or invalid. |
computers[].provider_status[].provider |
enum: codex, claude |
Yes | |
computers[].provider_status[].status |
enum: ready, checking, not-installed, sign-in-required, unavailable, unknown |
Yes | Latest signed account-readiness report for this pairing. Unknown after 45 seconds, disconnection, or a pairing change. Advisory only; requests recheck current access and provider readiness. |
next_cursor |
string or null |
Yes |
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 |
update
PATCH /api/v1/organizations/{organization_id}/control_computers/{computer}/consent
Operation ID: controlComputerConsentUpdate.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
computer |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
enabled |
boolean |
Yes | |
expected_revision |
integer,null |
Yes | |
persistent_agent_id |
string |
Yes | |
providers |
array of enum: codex, claude |
No | Explicit providers for this consent. Omitted keeps legacy Codex-only consent. |
Responses
200: Current authorized local agent control result
application/json
| Property | Type | Required | Description |
|---|---|---|---|
computer |
object |
Yes | |
computer.connection |
object |
No | A point-in-time control transport observation. Unknown means no valid observation; it never means offline. This grants no execution access or provider readiness. |
computer.connection.checked_at |
string (date-time) or null |
Yes | |
computer.connection.status |
enum: connected, offline, unknown |
Yes | |
computer.consent |
object |
Yes | |
computer.consent.enabled |
boolean |
Yes | |
computer.consent.providers |
array of enum: codex, claude |
Yes | |
computer.consent.revision |
integer,null |
Yes | |
computer.device |
object |
Yes | |
computer.device.id |
string |
Yes | |
computer.device.name |
string |
Yes | |
computer.device.platform |
enum: darwin, linux, win32 |
Yes | |
computer.provider_status |
array of object |
No | |
computer.provider_status[].observed_at |
string,null (date-time) |
Yes | Time of the current pairing report, including an expired report; null when absent or invalid. |
computer.provider_status[].provider |
enum: codex, claude |
Yes | |
computer.provider_status[].status |
enum: ready, checking, not-installed, sign-in-required, unavailable, unknown |
Yes | Latest signed account-readiness report for this pairing. Unknown after 45 seconds, disconnection, or a pairing change. Advisory only; requests recheck current access and provider readiness. |
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 |