---
title: "Pick up work and its list of shared folders"
method: POST
path: "/v1/computer-commands/{id}/claim"
tags: ["Internal"]
---

# Pick up work and its list of shared folders

`POST /v1/computer-commands/{id}/claim`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/computer-commands/{id}/claim`
- Auth: HTTP bearer

Only the target computer can pick up a pending command. Den checks access again. The runner must run the assignment in its sandbox and mount only the folders in the assignment.

## Path parameters

- `id` string, required

## Response `200`

Command assignment.

- object
  - `assignment` object, required
    - `id` string, required
    - `source` Computer, required
      - `id` string, required
      - `kind` 'cloud_sandbox' | 'registered_vm' | 'member_machine', required
      - `provider` 'openwork_desktop' | 'workbot' | 'freestyle' | 'daytona' | 'mac_host' | 'other', required
      - `label` string, required
      - `ownerMemberId` string, nullable, required
      - `availability` 'online' | 'paused' | 'needs_setup' | 'offline' | 'unknown', required
    - `action` union, required
      - object
        - `type` 'shell', required
        - `command` string, required
        - `cwd` string
        - `timeoutMs` integer
      - object
        - `type` 'read', required
        - `path` string, required
      - object
        - `type` 'write', required
        - `path` string, required
      - object
        - `type` 'list', required
        - `path` string
      - object
        - `type` 'search', required
        - `path` string
    - `call` union
      - 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
    - `scope` object, required
      - `surface` 'sandbox', required
      - `folders` string[], required
      - `writableFolders` string[]
    - `expiresAt` string, date-time, required

## Other responses

- `401`: The runner token was missing, expired, or its owner is no longer an active member.
- `403`: This computer cannot use the sandbox or has been disconnected.
- `404`: Computers is disabled or the computer or command was not found.
- `409`: This computer can't pick up the command.

## Changes

- **2026-11-28** `6aa21cd7a1ac`: 2 info
  - added the optional property `assignment/call` to the response with the `200` status
  - added the optional property `assignment/scope/writableFolders` to the response with the `200` status
- **2026-11-28** `974b1bd609d3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/computer-commands/:id/claim/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)
