Skip to content

Generated from api/openapi.yaml (OpenAPI 3.1). Base URL: https://api.teemli.com. Auth: Authorization: Bearer <token or tml_ API key>. Errors are application/problem+json; writes accept an Idempotency-Key header.

Agent computers (status, wake, sleep, reset), live view and take-over, files, watch mode

Files made on the computer in this conversation (the work panel’s Files tab)

Section titled “Files made on the computer in this conversation (the work panel’s Files tab)”
GET /v1/orgs/{org}/conversations/{conversation}/files

Newest first, one row per path (at most 200): written by files.write (tool: files.write), or found on the computer after this conversation’s turns ran commands (tool: shell.exec) or its browser downloaded them (tool: download, paths under ~/Downloads). Caches, dependencies (node_modules, .venv…), hidden files and ~/Uploads are left out. Download with GET …/computers/{id}/files/content?path=. conversation.files (live) says new ones appeared.

API keys: needs the agents:read scope.

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
conversation (required) path string (uuid)

Responses

  • 200 Files — object
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem

My computer, and those of AI employees I manage

Section titled “My computer, and those of AI employees I manage”
GET /v1/orgs/{org}/computers

Empty until the computer is first used (an agent tool call or POST).

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.

Responses

  • 200 Computers — object
  • 401 Missing, invalid or expired token — Problem

Create (first time) and start my computer, or an AI employee’s I manage

Section titled “Create (first time) and start my computer, or an AI employee’s I manage”
POST /v1/orgs/{org}/computers

Idempotent. Creating takes a few seconds; waking a sleeping one well under 2 s.

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.

Request body (JSON)

Field Type Description
agent_id string (uuid) An AI employee you manage; omit for your own computer

Responses

  • 200 The running computer — ComputerWoken
  • 401 Missing, invalid or expired token — Problem
  • 403 Computer use is turned off by the organisation’s admin — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem
  • 503 A dependency (e.g. the sign-in service) is unavailable — Problem
GET /v1/orgs/{org}/computers/{computer}

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)

Responses

  • 200 The computer — Computer
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem
POST /v1/orgs/{org}/computers/{computer}/ensure

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)

Responses

  • 200 The running computer (woke_ms set when it was asleep) — ComputerWoken
  • 401 Missing, invalid or expired token — Problem
  • 403 Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem
  • 503 A dependency (e.g. the sign-in service) is unavailable — Problem

Put the computer to sleep now (memory kept; it also sleeps by itself after 5 idle minutes)

Section titled “Put the computer to sleep now (memory kept; it also sleeps by itself after 5 idle minutes)”
POST /v1/orgs/{org}/computers/{computer}/hibernate

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)

Responses

  • 200 The computer (state is paused) — Computer
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem
POST /v1/orgs/{org}/computers/{computer}/reset

Replaces the machine and starts a fresh one on the same disk: files in the home folder and browser logins are kept; running programs and open tabs are not. Also picks up a new image. Confirm with the person first (“Your files and logins stay; open windows close”).

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)

Responses

  • 200 The new running computer — ComputerWoken
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem
  • 503 A dependency (e.g. the sign-in service) is unavailable — Problem
POST /v1/orgs/{org}/computers/{computer}/stream-tickets

Then open wss://<api>/v1/computer-stream?ticket=<ticket> with noVNC (@novnc/novnc), subprotocol binary. The stream is RFB (VNC) at 1280×800. view mode is enforced inside the computer: mouse, keyboard and clipboard input are dropped (noVNC should also set viewOnly). control requires an active take-over by you (409 otherwise) and closes when you end the take-over. Streams close when the sign-in token expires; get a new ticket and reconnect. Only the computer’s owner (or an AI employee’s manager) gets tickets.

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)

Request body (JSON)

Field Type Description
mode view, control

Responses

  • 200 Ticket — object
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem
  • 409 Conflicting state (card already answered, duplicate in flight, name taken) — Problem
  • 503 A dependency (e.g. the sign-in service) is unavailable — Problem
GET /v1/computer-stream

Authenticated by the ticket only (browsers can’t set WebSocket headers). 401 before the upgrade when the ticket is missing, used or expired.

Auth: none (public endpoint).

Parameter In Type Description
ticket (required) query string

Responses

  • 101 Switching protocols (binary RFB frames)
  • 401 Missing, invalid or expired token — Problem
  • 409 Conflicting state (card already answered, duplicate in flight, name taken) — Problem
POST /v1/orgs/{org}/computers/{computer}/take-over

Agents’ browser and desktop actions pause (“Waiting: you have control of the computer”; their turns wait with waiting_for: computer) until you end it. Shell and file work continues. Then get a control ticket for the stream.

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)

Responses

  • 200 The computer (taken_over_by is you) — ComputerWoken
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem
POST /v1/orgs/{org}/computers/{computer}/take-over/end

Closes control streams; tasks waiting for the computer continue.

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)

Responses

  • 200 The computer — Computer
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem
GET /v1/orgs/{org}/computers/{computer}/files

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)
path query string Default ~ (/home/agent). Relative paths are under the home folder. Browser downloads: ~/Downloads.

Responses

  • 200 Folder listing (folders first; at most 1000 entries) — object
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem
GET /v1/orgs/{org}/computers/{computer}/files/content

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)
path (required) query string

Responses

  • 200 The file, as an attachment (Content-Disposition)
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem

Upload a file (max 64 MB; folders are created)

Section titled “Upload a file (max 64 MB; folders are created)”
PUT /v1/orgs/{org}/computers/{computer}/files/content

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)
path (required) query string

Request body: application/octet-stream.

Responses

  • 200 Written — object
  • 401 Missing, invalid or expired token — Problem
  • 403 Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem

The screen as a JPEG (1280×800; for thumbnails; wakes the computer)

Section titled “The screen as a JPEG (1280×800; for thumbnails; wakes the computer)”
GET /v1/orgs/{org}/computers/{computer}/screenshot

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)

Responses

  • 200 JPEG
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem

Recent commands on the computer, with the last 200 lines of output (the terminal’s history)

Section titled “Recent commands on the computer, with the last 200 lines of output (the terminal’s history)”
GET /v1/orgs/{org}/computers/{computer}/terminal

Oldest first. Only commands from the caller’s own conversations (on an AI employee’s computer, each person sees their own). The server keeps the last 50 per computer and person. Doesn’t wake the computer.

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
computer (required) path string (uuid)
limit query integer

Responses

  • 200 Commands — object
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem

Watch mode (“do this where I can see it”)

Section titled “Watch mode (“do this where I can see it”)”
PUT /v1/orgs/{org}/conversations/{conversation}/watch

On: this task’s browser window comes to the front of the visible desktop when it acts, so the live view shows it. Tasks that need the visible desktop take turns; the others wait (waiting_for: computer), and continue automatically.

API keys: not available (needs a person signed in to the app).

Parameter In Type Description
org (required) path string (uuid) The caller’s organisation id.
conversation (required) path string (uuid)

Request body (JSON)

Field Type Description
watch (required) boolean

Responses

  • 200 Saved — object
  • 401 Missing, invalid or expired token — Problem
  • 404 Not found (also returned for rows the caller may not see, and for disabled features) — Problem