---
title: "Send work to a personal computer"
method: POST
path: "/v1/computer-sources/computers/{computerId}/commands"
tags: ["Internal"]
---

# Send work to a personal computer

`POST /v1/computer-sources/computers/{computerId}/commands`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/computer-sources/computers/{computerId}/commands`
- Auth: HTTP bearer

Checks the sharing settings for this desktop before sending work to a personal computer's sandbox. Waits for the result if asked to.

## Path parameters

- `computerId` string, typeid, required

## Request body

- ComputerSourceCommandRequest
  - `call` union, required
    - object
      - `tool` 'shell', required
      - `input` object, required
        - `command` string, required
        - `cwd` string, required
        - `timeoutMs` integer
    - object
      - `tool` 'read', required
      - `input` object, required
        - `path` string, required
        - `offset` integer
        - `limit` integer
    - object
      - `tool` 'write', required
      - `input` object, required
        - `path` string, required
        - `content` string, required
    - object
      - `tool` 'edit', required
      - `input` object, required
        - `path` string, required
        - `oldString` string, required
        - `newString` string, required
        - `replaceAll` boolean
    - object
      - `tool` 'glob', required
      - `input` object, required
        - `path` string, required
        - `pattern` string, required
        - `hidden` boolean
        - `limit` integer
    - object
      - `tool` 'grep', required
      - `input` object, required
        - `path` string, required
        - `pattern` string, required
        - `literal` boolean
        - `include` string
        - `caseSensitive` boolean
        - `limit` integer
  - `waitMs` integer

## Response `200`

The status or result of the work.

- union
  - object
    - `state` 'refused', required
    - `layer` 'organization' | 'computer' | 'source', required
    - `code` 'organization_off' | 'computer_not_allowed' | 'not_available_yet' | 'owner_app_only' | 'nothing_shared' | 'folder_not_shared' | 'sandbox_unavailable' | 'source_not_allowed' | 'folder_read_only' | 'not_owner', required
    - `message` string, required
    - `changeableBy` 'organization_admin' | 'computer_owner' | 'no_one', required
  - object
    - `state` 'offline', required
    - `message` string, required
    - `retryable` true, required
    - `lastSeenAt` string, date-time, nullable
  - object
    - `state` 'unsupported', required
    - `message` string, required
  - object
    - `state` 'running', required
    - `id` string, required
    - `expiresAt` string, date-time, required
  - object
    - `state` 'unknown', required
    - `id` string, required
    - `message` string, required
  - object
    - `state` 'done', required
    - `id` string, required
    - `exitCode` integer, required
    - `output` string, required
    - `truncated` boolean, required
  - object
    - `state` 'failed', required
    - `id` string, required
    - `error` object, required
      - `code` string, required
      - `message` string, required

## Other responses

- `400`: Invalid request.
- `401`: The runner token was missing, expired, or its owner is no longer an active member.
- `403`: This computer was disconnected from the organization; signing in on it again connects it.
- `404`: The computer or command was not found, or Computers is off.

## Changes

- **2026-11-28** `6aa21cd7a1ac`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/computer-sources/computers/:computerId/commands/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
