---
title: "Check whether this desktop can do work on a computer"
method: POST
path: "/v1/computer-sources/computers/{computerId}/authorize"
tags: ["Internal"]
---

# Check whether this desktop can do work on a computer

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

## Request

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

Checks permission for this desktop. An allowed registered virtual computer includes the details needed to reach it directly.

## Path parameters

- `computerId` string, typeid, required

## Request body

- object
  - `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

## Response `200`

The decision and the connection if available.

- object
  - `decision` union, required
    - object
      - `outcome` 'allow', required
      - `route` 'direct', required
      - `scope` unknown, required
    - object
      - `outcome` 'allow', required
      - `route` 'checked', required
      - `scope` union, required
        - object
          - `surface` 'sandbox', required
          - `folders` string[], required
          - `writableFolders` string[]
        - object
          - `surface` 'whole_vm', required
          - `folders` string[], required
    - object
      - `outcome` 'refuse', 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
  - `computer` ListedComputer, 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
    - `state` 'ready' | 'starts_when_needed' | 'has_a_problem' | 'online' | 'offline', required
    - `lastSeenAt` string, date-time, nullable, required
    - `access` object, nullable, required
      - `choice` 'allow' | 'off', nullable, required
      - `scope` 'whole_vm'
      - `folders` string[], required
    - `reach` union, required
      - object
        - `outcome` 'allow', required
        - `route` 'direct', required
        - `scope` unknown, required
      - object
        - `outcome` 'allow', required
        - `route` 'checked', required
        - `scope` union, required
          - object
            - `surface` 'sandbox', required
            - `folders` string[], required
            - `writableFolders` string[]
          - object
            - `surface` 'whole_vm', required
            - `folders` string[], required
      - object
        - `outcome` 'refuse', 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
  - `connection` object, nullable, required
    - `provider` 'openwork_desktop' | 'workbot' | 'freestyle' | 'daytona' | 'mac_host' | 'other', required
    - `externalId` 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/authorize/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)
