DevicePairing
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/devices/pairings/{device_pairing_intent_id}/complete |
create |
Device enrollment metadata |
POST |
/api/v1/organizations/{organization_id}/devices/pairings |
create |
Device enrollment metadata |
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:
created, err := client.DevicePairing(nil).Create(map[string]any{"organization_id": "example", "architecture": "example", "channel": "example", "name": "example", "platform": "example", "public_key": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local created, err = client:DevicePairing():create({ organization_id = "example", architecture = "example", channel = "example", name = "example", platform = "example", public_key = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->DevicePairing()->create(["organization_id" => "example", "architecture" => "example", "channel" => "example", "name" => "example", "platform" => "example", "public_key" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.DevicePairing().create({ "organization_id": "example", "architecture": "example", "channel": "example", "name": "example", "platform": "example", "public_key": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.DevicePairing.create({ "organization_id" => "example", "architecture" => "example", "channel" => "example", "name" => "example", "platform" => "example", "public_key" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.DevicePairing().create({ organization_id: "example", architecture: "example", channel: "example", name: "example", platform: "example", public_key: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
architecture |
string |
Yes | Architecture |
channel |
string |
Yes | Channel |
id |
string |
No | Id |
name |
string |
Yes | Name |
platform |
string |
Yes | Platform |
public_key |
string |
Yes | Public Key |
create
POST /api/v1/organizations/{organization_id}/devices/pairings/{device_pairing_intent_id}/complete
Operation ID: devicePairingComplete.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
device_pairing_intent_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
signature |
string |
Yes | |
token |
string |
Yes |
Responses
201: Device enrollment metadata
application/json
| Property | Type | Required | Description |
|---|---|---|---|
device |
object |
Yes | |
device.architecture |
enum: arm64, x64 |
Yes | |
device.channel |
enum: dev, alpha, release |
Yes | |
device.coding_connection |
object,null |
No | Independent organization coding-control service state for the current device owner. Null when unavailable or using the legacy transport. A retry request does not imply readiness. |
device.coding_connection.can_retry |
boolean |
Yes | |
device.coding_connection.status |
enum: provisioning, ready, failed |
Yes | |
device.connection_checked_at |
string,null (date-time) |
Yes | When this native presence observation was obtained; null when unobserved or unavailable. |
device.connection_status |
enum: registered, connected, offline, unknown, revoked |
Yes | Display-only native presence. Does not grant execution or placement authority. |
device.control_delivery_policy |
object |
Yes | |
device.control_delivery_policy.restricted |
boolean |
Yes | |
device.control_delivery_policy.version |
integer |
Yes | |
device.control_spawn_policy |
object |
No | |
device.control_spawn_policy.max_agents |
integer |
Yes | Maximum sessions agents can create through Control. Zero permits unlimited sessions. |
device.control_spawn_policy.repositories |
array of string |
Yes | |
device.control_spawn_policy.version |
integer |
Yes | |
device.created_at |
string (date-time) |
Yes | |
device.environment |
string |
Yes | |
device.id |
string |
Yes | |
device.name |
string |
Yes | |
device.native_device_id |
string |
Yes | |
device.paired_at |
string (date-time) |
Yes | |
device.pairing_generation |
integer |
Yes | |
device.platform |
enum: darwin, win32, linux |
Yes | |
device.project_visibility |
object |
Yes | Folder discovery and new-thread selection. Does not restrict existing threads or OS-account command access. |
device.project_visibility.folders |
array of string |
Yes | |
device.project_visibility.mode |
enum: all, selected |
Yes | |
device.project_visibility.version |
integer |
Yes | |
device.provider_status |
array of object |
No | Recent native provider observations; absent on older API replicas. |
device.provider_status[].observed_at |
string,null (date-time) |
Yes | Time of the current pairing report, including an expired report; null when absent or invalid. |
device.provider_status[].provider |
enum: codex, claude |
Yes | |
device.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. |
device.revoked_at |
string,null (date-time) |
Yes | |
device.scheduled_check_ins |
boolean |
No | Whether the owner's private agents may check this computer's connection during scheduled runs. |
device.user_browser_access |
enum: off, agent_tabs, all_tabs |
Yes | Whether agents may use the owner's own Chrome-family browser here: off, only tabs agents open or the owner shares, or every tab. |
execution_available |
boolean |
Yes |
400: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
401: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
409: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
422: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
503: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
POST /api/v1/organizations/{organization_id}/devices/pairings
Operation ID: devicePairingCreate.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
architecture |
enum: arm64, x64 |
Yes | |
channel |
enum: dev, alpha, release |
Yes | |
name |
string |
Yes | |
platform |
enum: darwin, win32, linux |
Yes | |
public_key |
string |
Yes |
Responses
201: Device enrollment metadata
application/json
| Property | Type | Required | Description |
|---|---|---|---|
execution_available |
boolean |
Yes | |
pairing |
object |
Yes | |
pairing.expires_at |
string (date-time) |
Yes | |
pairing.id |
string |
Yes | |
pairing.payload |
string |
Yes | |
pairing.token |
string |
Yes |
400: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
401: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
409: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
422: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
503: Request rejected or enrollment unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |