Computers
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}/filesNewest 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
200Files — object401Missing, invalid or expired token — Problem404Not 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}/computersEmpty 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
200Computers — object401Missing, 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}/computersIdempotent. 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
200The running computer — ComputerWoken401Missing, invalid or expired token — Problem403Computer use is turned off by the organisation’s admin — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem503A dependency (e.g. the sign-in service) is unavailable — Problem
Computer status (does not wake it)
Section titled “Computer status (does not wake it)”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
200The computer — Computer401Missing, invalid or expired token — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Wake the computer (or start it)
Section titled “Wake the computer (or start it)”POST /v1/orgs/{org}/computers/{computer}/ensureAPI 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
200The running computer (woke_msset when it was asleep) — ComputerWoken401Missing, invalid or expired token — Problem403Authenticated but not allowed (e.g. unverified email, not the agent’s controller, card routed to someone else) — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem503A 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}/hibernateAPI 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
200The computer (stateispaused) — Computer401Missing, invalid or expired token — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Reset a stuck computer
Section titled “Reset a stuck computer”POST /v1/orgs/{org}/computers/{computer}/resetReplaces 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
200The new running computer — ComputerWoken401Missing, invalid or expired token — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem503A dependency (e.g. the sign-in service) is unavailable — Problem
A live-view ticket (60 s, single use)
Section titled “A live-view ticket (60 s, single use)”POST /v1/orgs/{org}/computers/{computer}/stream-ticketsThen 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
200Ticket — object401Missing, invalid or expired token — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem503A dependency (e.g. the sign-in service) is unavailable — Problem
Live view WebSocket (noVNC)
Section titled “Live view WebSocket (noVNC)”GET /v1/computer-streamAuthenticated 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
101Switching protocols (binary RFB frames)401Missing, invalid or expired token — Problem409Conflicting state (card already answered, duplicate in flight, name taken) — Problem
Take control
Section titled “Take control”POST /v1/orgs/{org}/computers/{computer}/take-overAgents’ 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
200The computer (taken_over_byis you) — ComputerWoken401Missing, invalid or expired token — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
“I’m done”: give control back
Section titled ““I’m done”: give control back”POST /v1/orgs/{org}/computers/{computer}/take-over/endCloses 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
200The computer — Computer401Missing, invalid or expired token — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Browse a folder (wakes the computer)
Section titled “Browse a folder (wakes the computer)”GET /v1/orgs/{org}/computers/{computer}/filesAPI 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
200Folder listing (folders first; at most 1000 entries) — object401Missing, invalid or expired token — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem
Download a file
Section titled “Download a file”GET /v1/orgs/{org}/computers/{computer}/files/contentAPI 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
200The file, as an attachment (Content-Disposition)401Missing, invalid or expired token — Problem404Not 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/contentAPI 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
200Written — object401Missing, invalid or expired token — Problem403Authenticated 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}/screenshotAPI 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
200JPEG401Missing, invalid or expired token — Problem404Not 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}/terminalOldest 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
200Commands — object401Missing, invalid or expired token — Problem404Not 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}/watchOn: 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
200Saved — object401Missing, invalid or expired token — Problem404Not found (also returned for rows the caller may not see, and for disabled features) — Problem