Send a command to start or stop recording on a device
devices:write scope.
dev_abc123).start_recording - Start a new recordingstop_recording - Stop the current recordingstatus set to pending.
| Field | Type | Description |
|---|---|---|
id | string | Command identifier |
device_id | string | Target device (dev_*) |
type | string | start_recording or stop_recording |
status | string | Command status (see Command Lifecycle below) |
params | object | Command parameters |
grant_token | string | Signed authorization token for the device |
result | object | null | Execution result (populated after execution) |
error | object | null | Error details (if failed) |
expires_at | string | null | Expiration timestamp (ISO 8601) |
delivered_at | string | null | When delivered to device (ISO 8601) |
executed_at | string | null | When executed on device (ISO 8601) |
created_at | string | Creation timestamp (ISO 8601) |
| Status | Description |
|---|---|
pending | Command created, waiting to be delivered to device |
delivered | Command received by device, execution in progress |
executed | Command successfully executed |
failed | Command execution failed |
expired | Command expired before delivery |
cancelled | Command was cancelled via API |
grant_token is a signed JWT that authorizes the device to execute the command