---
title: "Check whether my OpenWork app can do work on a computer"
method: POST
path: "/v1/computers/{computerId}/authorize"
tags: ["Devices"]
---

# Check whether my OpenWork app can do work on a computer

`POST /v1/computers/{computerId}/authorize`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/computers/{computerId}/authorize`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Checks the requested action on one of the caller's computers or a computer shared with the organization. Registered virtual computers require the owner's own OpenWork app and explicit permission to use the entire computer. The organization can turn access off. Using a personal computer requires an identified desktop and a grant from its owner. Both allowed and refused decisions return HTTP 200. Only an allowed action on a registered virtual computer includes its provider and provider id. Den never runs the action or supplies provider credentials. Requires active organization membership and Computers.

## 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, computer and 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 computer id or request body.
- `401`: Sign in required.
- `404`: No such computer for this member or Computers is off.

## Changes

- **2026-11-28** `6aa21cd7a1ac`: 2 breaking, 2 info
  - added `subschema #1, subschema #2` to the `computer/reach` response property `oneOf` list for the response status `200`
  - added `subschema #1, subschema #2` to the `decision` response property `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `computer/reach` response property `oneOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `decision` response property `oneOf` list for the response status `200`
- **2026-11-28** `974b1bd609d3`: 1 info
  - endpoint added

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