Read one of your organization's devices
Code Mode: praxis.sandbox.byod.devices.retrieve
HTTP: GET /sandbox/v1/byod/devices/{deviceID}
Read one BYOD device: the same fields listByodDevices returns, for a single device. Use it to poll whether a device is online before acting on it, or to refresh one row of the BYOD page after a rename. An unknown id and another organization’s device both answer 404, so the answer never reveals that a foreign device exists. Example: GET /sandbox/v1/byod/devices/byd_0123456789abcdefghijklmno.
Signature
praxis.sandbox.byod.devices.retrieve(args:{path:{deviceID:string}}):Promise<{/** Resource type; always "byod_device". */ object:"byod_device";/** Device id, `byd_` followed by 26 lowercase hex characters. */ id:string;/** The device's platform, which decides the use faces it answers. */ platform:"android"|"macos"|"linux";/** Display name of the device, 1 to 64 characters. */ name:string;/** Device model the phone's app reported when it claimed the pairing, such as 23127PN0CC; empty when the app sent none. */ model:string;/** Operating-system version the app reported, such as 16; empty when the app sent none. */ os_version:string;/** True while the device holds its one control connection; false when it is paired but not connected. */ online:boolean;/** When the device last said hello or answered a ping, as an ISO-8601 timestamp; null until it first connects. */ last_seen_at:string|null;/** When the device was paired, as an ISO-8601 timestamp; the list is ordered by it, oldest first. */ created_at:string;/** What the device can be asked to do, derived from its platform: display for a phone (act, the action socket), agent for a desktop (a local coding agent session). */ capabilities:Array<"display"|"agent">;/** The absolute directories a desktop registered for agent sessions with its last hello; a session may only start in one of these. */ agent_dirs:Array<string>;/** Which agent each registered directory is bound to, as the desktop's last hello reported. */ agent_bindings:Array<{/** The absolute directory the desktop bound to an agent with praxis agent connect. */ dir:string;/** The agent the directory is bound to: its identity number or its agent id. */ agent:string}>;/** The version of the envd on the desktop, as its last hello reported. */ envd_version:string|null;/** Whether the desktop's envd lets a platform session run in bypassPermissions (all tool calls without asking). */ allow_bypass:boolean}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| deviceID | path | string | yes | Device id from the claim or from listByodDevices, `byd_` followed by 26 lowercase hex characters. An unknown id and another organization’s device both answer 404. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The device, with its live online fact. |
| 401 | Authentication required: supply an organization API key that carries a tenant. | |
| 404 | NOT_FOUND: no such device for this organization. The device was disconnected, never existed, or belongs to another organization; the three are indistinguishable. | |
| 503 | SERVICE_UNAVAILABLE: BYOD is not bound in this deployment, or the sandbox is not ready. Wait and retry. |