API reference
The 39 operations of the public API, read from its OpenAPI contract when this page is built. The base address is https://api.foxdeploy.ai/v1.
Every call carries an API key in the Authorization header as Bearer fd_live_.... Bodies and answers are JSON; times are RFC 3339 in UTC. A create takes an Idempotency-Key header, kept 24 hours. HTTP API explains keys, scopes, retries and rate limits.
Errors
An error answers with a status and a body of three fields: code, one of the words below; message, a sentence for a person; fields, the field errors of a request that did not validate.
{
"code": "limit_concurrent",
"message": "...",
"fields": {}
}Codes: invalid_state, not_found, unauthenticated, forbidden, validation_failed, bad_request, payload_too_large, too_many_requests, limit_concurrent, limit_size, limit_snapshots, limit_monthly, kill_switch, starts_blocked, capacity, upstream_error, timeout, idempotency_conflict, key_in_url, csrf_mismatch, unavailable, server_error, file_changed, already_exists, grant_not_allowed, approval_required, approval_invalid, limit_previews, private_file, public_not_allowed, app_failed, not_creator, not_running, not_signed_in, not_memory, not_supported, bad_files, too_many_saves, too_many_sign_ins, sign_in_computer, saved_plans_off, computer_not_running.
Status for each: invalid_state 409 (not in a state that allows this), not_found 404 (also any id of another organisation), unauthenticated 401, forbidden 403 (the key's scope), validation_failed 422, bad_request 400, payload_too_large 413, too_many_requests 429 (with Retry-After), limit_concurrent, limit_size, limit_snapshots (the organisation's snapshot count or storage), limit_monthly, kill_switch and starts_blocked 403 or 402, capacity 503, upstream_error 502, timeout 504, idempotency_conflict 409, key_in_url 400 (revoke that key), csrf_mismatch 403 (a cookie call from another origin), unavailable 503 (keys cannot be checked now), server_error 500, file_changed 412 (a write with If-Match whose file changed since it was read), already_exists 409 (a new folder or a move onto a path that is taken), grant_not_allowed 403 (a route or a field an agent chat's run grant may not use; agent chat), approval_required 403 (the call needs the person's approval first; approval_id names the waiting approval, and the call is sent again with X-Approval once it is allowed), approval_invalid 409 (a malformed X-Approval), limit_previews 409 (3 ports of the computer are open as previews; close one first), private_file 403 (the file holds a person's sign in; the files routes never read, write or delete it), public_not_allowed 403 (a key's token link is a public preview, and the account or the key's maker may not share public links now; reason says why and message in plain words), app_failed 503 (a ready-made app did not start in its new computer; the computer is gone and nothing was charged), not_creator 403, not_running 409, not_signed_in 404, not_memory 422, not_supported 422, bad_files 422 and too_many_saves 429 (the saved plan sign ins' save route; saved-plans), too_many_sign_ins 429 (more than 3 sign in computers, metadata.purpose plan_sign_in, an hour for one person; such a computer is made only from a dashboard session, size small, auto_pause_minutes 1 to 15, is free and is destroyed 30 minutes after its create), sign_in_computer 409 (a sign in computer cannot have its size, auto pause, egress or domains changed, be snapshotted, be resumed from a snapshot or be started after a stop), saved_plans_off 403 (the saved_plans flag is off for the workspace, so no save and no sign in computer), computer_not_running 409 (a chat file copy to a computer that is not running; start it first).
Computers
GET/computers
List computers
GET https://api.foxdeploy.ai/v1/computers
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| state (query) | "starting" | "running" | "paused" | "snapshotted" | "stopped" | "failed" | |
| limit (query) | integer | |
| cursor (query) | string |
Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| itemsrequired | list of Computer | |
| next_cursorrequired | string | May be null. |
| snapshot_count | integer | The user snapshots of the computers the caller can see (pause snapshots not counted); an owner or admin counts every computer of the organisation, a member only their own computers, a run grant only the computers it was granted. The same on every page, whatever the state filter. Only the caller's organisation; an older gateway leaves it out. |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers
Create a computer
Idempotency-Key header on creates. 402 when credit is empty; 403 limit_concurrent, limit_size or limit_monthly; 503 capacity when the host has no memory left.
POST https://api.foxdeploy.ai/v1/computers
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| Idempotency-Key (header) | string | A repeat with the same key and body answers the first create; another body is 409 idempotency_conflict. Kept 24 hours. At most 255 characters. |
Request body
| Name | Type | Notes |
|---|---|---|
| name | string | At most 64 characters. |
| size | "small" | "medium" | "large" | "xl" | |
| regionrequired | "sgp" | |
| image | string | a name from GET /images; when left out, the first image of that list |
| snapshot_id | string | a user snapshot of this organisation to restore into the new computer |
| app | string | a live app id from GET /apps; the computer starts with the app installed and running. An unknown, coming or withdrawn id is 404; an app not ready in the region is 503 capacity; an app whose first start fails is 503 app_failed, and nothing is charged. |
| env | map of string | |
| egress | boolean | Default true. |
| allowed_domains | list of string | |
| auto_pause_minutes | integer | Default 30. |
| metadata | map of string |
Answer 201: created
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| namerequired | string | |
| staterequired | "starting" | "running" | "paused" | "snapshotted" | "stopped" | "failed" | |
| sizerequired | "small" | "medium" | "large" | "xl" | |
| regionrequired | string | |
| imagerequired | string | |
| created_atrequired | string, date-time | |
| started_in_msrequired | integer | |
| app | ComputerApp | The ready-made app the computer started with; left out for other computers. |
| app.idrequired | string | |
| app.namerequired | string | The app's name as the catalogue has it. |
| app.versionrequired | string | |
| app.portrequired | integer | The app's port for Open app and the agent (a private preview of it). |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
GET/computers/{id}
One computer
GET https://api.foxdeploy.ai/v1/computers/{id}
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| namerequired | string | |
| staterequired | "starting" | "running" | "paused" | "snapshotted" | "stopped" | "failed" | |
| sizerequired | "small" | "medium" | "large" | "xl" | |
| regionrequired | string | |
| imagerequired | string | |
| uptime_srequired | integer | |
| cost_so_farrequired | Money | |
| cost_so_far.currencyrequired | string | |
| cost_so_far.amountrequired | string | |
| ports | list of object | |
| ports[].port | integer | |
| ports[].process | string | |
| preview | object | May be null. |
| preview.port | integer | |
| preview.url | string | |
| preview.private | boolean | |
| preview.require_sign_in | boolean | |
| created_byrequired | object | |
| created_by.kind | "claude_code" | "api" | "cli" | "dashboard" | "agent_chat" | |
| created_by.name | string | |
| created_atrequired | string, date-time | |
| updated_atrequired | string, date-time | |
| fail_reason | string | Why a failed computer failed, in plain words for the person; null otherwise. May be null. |
| auto_pause_minutes | integer | Pause after this many idle minutes; 0 never pauses. |
| egress | boolean | |
| allowed_domains | list of string | null lets every domain through; a list lets only those through. May be null. |
| blocked_ports | list of integer | Outbound ports blocked to every host (the plan's list, changed per computer). |
| dns_log | boolean | |
| env_keys | list of string | The names of the sealed env values. Values are never sent back. |
| next_size | "small" | "medium" | "large" | "xl" | null | The size the computer takes at its next start, when changed. May be null. |
| from_snapshot | boolean | The computer was made from a user snapshot. It started from the snapshot's disk only, signed out of Claude Code. |
| app | ComputerApp | The ready-made app the computer started with; left out for other computers. |
| app.idrequired | string | |
| app.namerequired | string | The app's name as the catalogue has it. |
| app.versionrequired | string | |
| app.portrequired | integer | The app's port for Open app and the agent (a private preview of it). |
| helper | ComputerHelper | The helper inside the computer, as its last health answer said. Absent until the host has read it. |
| helper.versionrequired | string | The helper's version stamp, for example agent-73647e6af40c. |
| helper.protocolrequired | integer | The helper's wire protocol. 1 is a helper baked into an older image. |
| helper.system | string | The system drive version the helper runs from, for example sys-3f9a1c0d7b2e. Absent for a helper baked into an older image. |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
PATCH/computers/{id}
Change a computer's settings
PATCH https://api.foxdeploy.ai/v1/computers/{id}
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Request body
| Name | Type | Notes |
|---|---|---|
| name | string | |
| auto_pause_minutes | integer | |
| egress | boolean | |
| allowed_domains | list of string | May be null. |
| blocked_ports | list of integer | |
| dns_log | boolean | |
| size | "small" | "medium" | "large" | "xl" | |
| env | map of string | Sealed values to set; an empty string removes that name. |
Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| namerequired | string | |
| staterequired | "starting" | "running" | "paused" | "snapshotted" | "stopped" | "failed" | |
| sizerequired | "small" | "medium" | "large" | "xl" | |
| regionrequired | string | |
| imagerequired | string | |
| uptime_srequired | integer | |
| cost_so_farrequired | Money | |
| cost_so_far.currencyrequired | string | |
| cost_so_far.amountrequired | string | |
| ports | list of object | |
| ports[].port | integer | |
| ports[].process | string | |
| preview | object | May be null. |
| preview.port | integer | |
| preview.url | string | |
| preview.private | boolean | |
| preview.require_sign_in | boolean | |
| created_byrequired | object | |
| created_by.kind | "claude_code" | "api" | "cli" | "dashboard" | "agent_chat" | |
| created_by.name | string | |
| created_atrequired | string, date-time | |
| updated_atrequired | string, date-time | |
| fail_reason | string | Why a failed computer failed, in plain words for the person; null otherwise. May be null. |
| auto_pause_minutes | integer | Pause after this many idle minutes; 0 never pauses. |
| egress | boolean | |
| allowed_domains | list of string | null lets every domain through; a list lets only those through. May be null. |
| blocked_ports | list of integer | Outbound ports blocked to every host (the plan's list, changed per computer). |
| dns_log | boolean | |
| env_keys | list of string | The names of the sealed env values. Values are never sent back. |
| next_size | "small" | "medium" | "large" | "xl" | null | The size the computer takes at its next start, when changed. May be null. |
| from_snapshot | boolean | The computer was made from a user snapshot. It started from the snapshot's disk only, signed out of Claude Code. |
| app | ComputerApp | The ready-made app the computer started with; left out for other computers. |
| app.idrequired | string | |
| app.namerequired | string | The app's name as the catalogue has it. |
| app.versionrequired | string | |
| app.portrequired | integer | The app's port for Open app and the agent (a private preview of it). |
| helper | ComputerHelper | The helper inside the computer, as its last health answer said. Absent until the host has read it. |
| helper.versionrequired | string | The helper's version stamp, for example agent-73647e6af40c. |
| helper.protocolrequired | integer | The helper's wire protocol. 1 is a helper baked into an older image. |
| helper.system | string | The system drive version the helper runs from, for example sys-3f9a1c0d7b2e. Absent for a helper baked into an older image. |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
DELETE/computers/{id}
Destroy a computer
DELETE https://api.foxdeploy.ai/v1/computers/{id}
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 204: destroyed.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/previews
Open a port as a private preview for 1 hour
Agent chat. A run grant (the Preview approval in X-Approval unless the chat is in Don't ask) or the person's own dashboard session (Open again); keys use the token link route in this release. At most 3 ports per computer (409 limit_previews). The link is https://p-<16 hex>.<preview domain>/, opens for signed in members of the organisation only and stops 1 hour after the open or the last renew.
POST https://api.foxdeploy.ai/v1/computers/{id}/previews
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Request body
| Name | Type | Notes |
|---|---|---|
| portrequired | integer | From 1 to 65535. |
Answer 201: open
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| computer_idrequired | string | |
| portrequired | integer | |
| staterequired | "open" | "expired" | "closed" | |
| urlrequired | string | |
| opened_byrequired | "agent" | "member" | |
| expires_atrequired | string, date-time |
Errors: 400, 401, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/previews/{id}/close
Close a preview now
The person's session or the run grant of a chat on its own computers; another organisation's or another member's preview is 404. Open connections to it end at once.
POST https://api.foxdeploy.ai/v1/previews/{id}/close
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 200: closed
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| computer_idrequired | string | |
| portrequired | integer | |
| staterequired | "open" | "expired" | "closed" | |
| urlrequired | string | |
| opened_byrequired | "agent" | "member" | |
| expires_atrequired | string, date-time |
Errors: 400, 401, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/plans/save
Save the sign in of a tool from this computer
Saved plan sign ins (saved-plans). Reads the tool's credentials files from the caller's own running computer and hands them to the control plane, which seals and stores them; answers the record's metadata only, never a file or anything sealed. Only the dashboard session of the person who created the computer; 10 saves an hour per person. Errors: saved_plans_off 403 (the flag is off for the workspace), not_creator 403, forbidden 403 (not a dashboard session), not_running 409, not_signed_in 404 (no credentials file yet), not_memory 422 and not_supported 422 (an older image: make a new computer), bad_files 422 (not that tool's sign in), validation_failed 422 (tool), too_many_saves 429, unavailable 503.
POST https://api.foxdeploy.ai/v1/computers/{id}/plans/save
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Request body
| Name | Type | Notes |
|---|---|---|
| toolrequired | "claude" | "codex" | "kimi" |
Answer 200: saved
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| toolrequired | "claude" | "codex" | "kimi" | |
| kind | "plan" | "api_key" | |
| label | string | At most 120 characters. |
| staterequired | "active" | "expired" | "removed" | |
| new_computers | boolean | |
| version | integer | |
| created_at | string, date-time | |
| renewed_at | string, date-time | May be null. |
| last_used_at | string, date-time | May be null. |
| expired_at | string, date-time | May be null. |
Errors: 400, 401, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
GET/apps
Ready-made apps
The catalogue of ready-made apps, merged with each region's readiness (cached 30 seconds per region). A live app has a snapshot in a region when that region can launch it; with none it reads "Coming to {region}". A coming app is listed only. Withdrawn apps are left out.
GET https://api.foxdeploy.ai/v1/apps
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| region (query) | "sgp" | one region's readiness only; every live region when left out |
| group (query) | "ai-chat" | "local-models" | "developer-tools" | "observability-data" |
Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| itemsrequired | list of CatalogueApp |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
WS/chats/{id}/stream
The agent chat's live run (WebSocket, a dashboard session only): the run's events after ?after= of ?run=, then live ones, one ChatStreamEvent JSON text frame each. Output only: frames from the browser are dropped. The Origin must be the dashboard's; a sign out ends it.
GET https://api.foxdeploy.ai/v1/chats/{id}/stream
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| run (query) | string | |
| after (query) | integer |
Answer 101: switching protocols.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/chats/{id}/takeover
Take over (a dashboard session, the chat's member only): the answer is pausing; the agent pauses at its next step boundary, and the stream's run paused event says when Shell 1 is the person's.
POST https://api.foxdeploy.ai/v1/chats/{id}/takeover
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 200: pausing until the agent's next step boundary
| Name | Type | Notes |
|---|---|---|
| staterequired | "pausing" | "running" |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/chats/{id}/handback
Hand back (a dashboard session, the chat's member only): the agent goes on and is told the person used the terminal.
POST https://api.foxdeploy.ai/v1/chats/{id}/handback
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 200: the agent goes on
| Name | Type | Notes |
|---|---|---|
| staterequired | "pausing" | "running" |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
Commands and the terminal
POST/computers/{id}/exec
Run a command
cmd as a string runs in /bin/sh -c inside the guest (nothing is interpolated by the gateway); as a list it runs as is; argv (instead of cmd) is an argument list that never goes through a shell, with optional stdin. Cancelling ends the process group: TERM, then KILL after 5 seconds. timeout_s from 1 to 3600. With stream true the answer is text/event-stream: events stdout and stderr with data {d: text}, then exit with {exit_code, duration_ms, timed_out}, or error with {message}.
POST https://api.foxdeploy.ai/v1/computers/{id}/exec
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Request body
| Name | Type | Notes |
|---|---|---|
| cmd | string or list of string | The command; exactly one of cmd and argv is given. |
| argv | list of string | An argument list run as is, never through a shell; exactly one of cmd and argv is given. |
| stdin | string | Given to the program on its standard input (at most 512 KiB); never logged. |
| cwd | string | |
| env | map of string | |
| timeout_s | integer | Default 600. |
| stream | boolean | Default false. |
Answer 200: done (with stream true, server sent events stdout, stderr, exit)
| Name | Type | Notes |
|---|---|---|
| exit_coderequired | integer | |
| stdoutrequired | string | |
| stderrrequired | string | |
| duration_msrequired | integer | |
| truncated | boolean | true when stdout or stderr passed 1 MiB and was cut |
| timed_out | boolean | true when timeout_s ended the command |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
WS/computers/{id}/pty
Terminal over WebSocket
GET https://api.foxdeploy.ai/v1/computers/{id}/pty
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| cols (query) | integer | |
| rows (query) | integer |
Answer 101: switching protocols; messages {t: in|resize, d} in, {t: out|exit, d} out.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
Files
GET/computers/{id}/files
Read a file or list a folder
Files come with X-Content-Type-Options nosniff and a Content-Security-Policy that blocks every script, style and frame; only plain text and raster images are sent inline, anything else as an attachment.
GET https://api.foxdeploy.ai/v1/computers/{id}/files
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| path (query)required | string |
Answer 200: file bytes, or {entries} for a folder
| Name | Type | Notes |
|---|---|---|
| entriesrequired | list of object | |
| entries[].namerequired | string | |
| entries[].kindrequired | "file" | "dir" | |
| entries[].sizerequired | integer | |
| entries[].mtime | string, date-time | |
| entries[].private | boolean | The file holds a person's sign in (Claude Code's credentials or account file, a CLAUDE_CONFIG_DIR folder, or Codex's auth.json); the files routes refuse it with 403 private_file. |
| entries[].items | integer | A folder that is not private. How many entries it holds, counted up to 1000. |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
PUT/computers/{id}/files
Write a file (up to 100 MiB)
PUT https://api.foxdeploy.ai/v1/computers/{id}/files
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| path (query)required | string | |
| If-Match (header) | string | One strong tag "sha256:<64 hex>", the SHA-256 of the content read: the write lands only while the file is still that version (a compare and set), else 412 file_changed. |
Request body
| Name | Type | Notes |
|---|---|---|
| contentrequired | string |
Answer 200: written
| Name | Type | Notes |
|---|---|---|
| pathrequired | string | |
| sizerequired | integer |
Errors: 400, 401, 402, 403, 404, 409, 412, 413, 422, 429, 502, 503, 504, each with the error envelope below.
DELETE/computers/{id}/files
Delete a file
DELETE https://api.foxdeploy.ai/v1/computers/{id}/files
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| path (query)required | string |
Answer 204: deleted.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/files/upload
Upload files (multipart or a tar stream)
The files land in the folder path. A folder under /workspace/ that is not there yet is made first (an existing one is fine); a private path is refused before anything is made.
POST https://api.foxdeploy.ai/v1/computers/{id}/files/upload
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| path (query)required | string | |
| name (query) | string | The file's name when the body is one file's bytes (application/octet-stream) |
Answer 200: uploaded
| Name | Type | Notes |
|---|---|---|
| filesrequired | integer | |
| bytesrequired | integer |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
GET/computers/{id}/files/download
Download a folder as a zip
GET https://api.foxdeploy.ai/v1/computers/{id}/files/download
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| path (query)required | string |
Answer 200: zip stream; files that hold a person's sign in are left out.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
GET/computers/{id}/files/stat
A path's kind, size and time, whether a file is text, how many files a folder holds
A final link is not followed (kind symlink). The sign in paths are refused with 403 private_file.
GET https://api.foxdeploy.ai/v1/computers/{id}/files/stat
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| path (query)required | string |
Answer 200: the path's details
| Name | Type | Notes |
|---|---|---|
| pathrequired | string | |
| kindrequired | "file" | "dir" | "symlink" | "other" | |
| sizerequired | integer | |
| mtimerequired | string, date-time | |
| text | boolean | A file only. Its first 8 KiB are UTF-8 with no NUL byte. |
| files | integer | A folder only. How many files are under it, counted up to 10000. |
| files_capped | boolean | The count of files stopped at 10000. |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/files/mkdir
Make a folder (and the missing folders above it)
409 already_exists when something is at the path. Never inside a sign in folder (403 private_file).
POST https://api.foxdeploy.ai/v1/computers/{id}/files/mkdir
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| path (query)required | string |
Answer 201: made
| Name | Type | Notes |
|---|---|---|
| pathrequired | string |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/files/move
Rename or move a file or folder within the computer
One rename: the missing folders above to are made, nothing at to is replaced (409 already_exists), a folder never moves into itself (400). The sign in paths never move, nothing moves into them, and a folder that holds one stays (403 private_file). Two paths on different disks are 409 invalid_state.
POST https://api.foxdeploy.ai/v1/computers/{id}/files/move
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Request body
| Name | Type | Notes |
|---|---|---|
| fromrequired | string | |
| torequired | string |
Answer 200: moved; path is the new path
| Name | Type | Notes |
|---|---|---|
| pathrequired | string |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/chats/{id}/files/sync
Copy the chat's files into its computer (change chat-uploads): the files kept with the chat that this computer does not have yet go into /workspace/uploads, oldest message first, then the message box's drafts. A dashboard session of the chat's member, or the run grant of a run of the chat (in every approval mode); keys are refused with 403. computer is the chat's current computer: another, or a chat that is not the caller's, is 404. A computer that is not running is 409 computer_not_running before anything is read. A file of the same name, size and SHA-256 already there is skipped (and recorded as the copy); one that differs is written as name (2).ext, then (3), up to (99). A file that fails is counted in failed and tried again by the next call. 10 calls a minute per caller and chat; a call while one runs for the same chat waits for it; at most 60 seconds.
POST https://api.foxdeploy.ai/v1/chats/{id}/files/sync
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Request body
| Name | Type | Notes |
|---|---|---|
| computerrequired | string |
Answer 200: what the call copied
| Name | Type | Notes |
|---|---|---|
| copiedrequired | integer | |
| skippedrequired | integer | |
| failedrequired | integer | |
| filesrequired | list of object | |
| files[].idrequired | string | |
| files[].pathrequired | string |
Errors: 400, 401, 403, 404, 409, 413, 422, 429, 502, 503, each with the error envelope below.
Ports and previews
GET/computers/{id}/ports
Listening ports
GET https://api.foxdeploy.ai/v1/computers/{id}/ports
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| portsrequired | list of object | |
| ports[].port | integer | |
| ports[].process | string | |
| ports[].since | string, date-time |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/preview
Open a preview URL
Deprecated: the token link route stays for keys and SDKs for one release; run grants are refused (grant_not_allowed) and the dashboard uses POST /computers/{id}/previews. A token link (private, without require_sign_in) is a public preview: the control plane records it under the same rules as the dashboard's Public switch (owners and admins of paid or credited accounts, a verified email, the global switch; else 403 public_not_allowed with reason), it opens for anyone at https://p-<16 hex>.<preview domain>/ for hours (1, 6 or 24; default 1) with the visitor bar, reports and the other guard rails, and DELETE closes it. token_expires_at is when it stops.
POST https://api.foxdeploy.ai/v1/computers/{id}/preview
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Request body
| Name | Type | Notes |
|---|---|---|
| portrequired | integer | |
| private | boolean | false without require_sign_in (a link anyone can open) is refused with 422 validation_failed: public previews are switched on from the dashboard, with their guard rails. Default true. |
| require_sign_in | boolean | Default false. |
| hours | 1 | 6 | 24 | A token link's public period. Default 1. |
| show_name | boolean | A token link's bar shows the workspace's name (verified businesses only; the control plane decides); default by workspace. |
Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| urlrequired | string | |
| portrequired | integer | |
| token_expires_atrequired | string, date-time |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
DELETE/computers/{id}/preview
Close the preview
DELETE https://api.foxdeploy.ai/v1/computers/{id}/preview
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 204: closed.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
Pause, resume, stop and start
POST/computers/{id}/pause
Pause to a snapshot
POST https://api.foxdeploy.ai/v1/computers/{id}/pause
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 200: paused
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| staterequired | "starting" | "running" | "paused" | "snapshotted" | "stopped" | "failed" | |
| snapshot_idrequired | string |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/resume
Resume from a snapshot
POST https://api.foxdeploy.ai/v1/computers/{id}/resume
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Request body
| Name | Type | Notes |
|---|---|---|
| snapshot_id | string | Resume from this snapshot of the computer; the last one when left out |
Answer 200: running
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| staterequired | "starting" | "running" | "paused" | "snapshotted" | "stopped" | "failed" | |
| resumed_in_msrequired | integer |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/stop
Stop (keep the disk)
POST https://api.foxdeploy.ai/v1/computers/{id}/stop
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 200: stopped
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| staterequired | "starting" | "running" | "paused" | "snapshotted" | "stopped" | "failed" |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/start
Start from the disk (cold start)
POST https://api.foxdeploy.ai/v1/computers/{id}/start
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 200: running
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| staterequired | "starting" | "running" | "paused" | "snapshotted" | "stopped" | "failed" |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
Snapshots
GET/computers/{id}/snapshots
Snapshots of a computer
GET https://api.foxdeploy.ai/v1/computers/{id}/snapshots
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| itemsrequired | list of Snapshot | |
| storage_per_monthrequired | Money | |
| storage_per_month.currencyrequired | string | |
| storage_per_month.amountrequired | string |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
POST/computers/{id}/snapshots
Take a snapshot
POST https://api.foxdeploy.ai/v1/computers/{id}/snapshots
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Request body
| Name | Type | Notes |
|---|---|---|
| name | string |
Answer 201: created
| Name | Type | Notes |
|---|---|---|
| idrequired | string | |
| namerequired | string | |
| kind | "pause" | "user" | |
| created_by | object | |
| created_by.kind | "claude_code" | "api" | "cli" | "dashboard" | "auto_pause" | "agent_chat" | |
| created_by.name | string | |
| size_bytesrequired | integer | |
| created_atrequired | string, date-time |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
DELETE/snapshots/{id}
Delete a snapshot
DELETE https://api.foxdeploy.ai/v1/snapshots/{id}
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 204: deleted.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
Logs
GET/computers/{id}/logs
Logs (GET .../logs/stream for server sent events)
GET https://api.foxdeploy.ai/v1/computers/{id}/logs
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| kind (query) | "computer" | "calls" | |
| since (query) | string, date-time |
Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| linesrequired | list of object | |
| lines[].t | string, date-time | |
| lines[].kind | string | |
| lines[].text | string | |
| lines[].key | string |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
GET/computers/{id}/logs/stream
Live logs as server sent events (each event's data is one line as in GET .../logs)
GET https://api.foxdeploy.ai/v1/computers/{id}/logs/stream
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string | |
| kind (query) | "computer" | "calls" |
Answer 200: text/event-stream; event line, data {t, kind, text, key?}.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
Desktop
WS/computers/{id}/desktop
Desktop over WebSocket (noVNC frames)
GET https://api.foxdeploy.ai/v1/computers/{id}/desktop
Authorization: Bearer fd_live_...Parameters
| Name | Type | Notes |
|---|---|---|
| id (path)required | string |
Answer 101: switching protocols.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
Images and regions
GET/images
Images
GET https://api.foxdeploy.ai/v1/images
Authorization: Bearer fd_live_...Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| itemsrequired | list of object | |
| items[].name | string | |
| items[].sizes | list of "small" | "medium" | "large" | "xl" | |
| items[].desktop | boolean | |
| items[].description | string | |
| items[].claude_code_version | string | The Claude Code version preinstalled in this image, as Anthropic publishes it. |
| items[].codex_version | string | The Codex CLI version preinstalled in this image, as OpenAI publishes it. |
| items[].kimi_code_version | string | The Kimi Code CLI version preinstalled in this image, as Moonshot publishes it. |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
GET/regions
Regions
GET https://api.foxdeploy.ai/v1/regions
Authorization: Bearer fd_live_...Answer 200: ok
| Name | Type | Notes |
|---|---|---|
| itemsrequired | list of object | |
| items[].code | string | |
| items[].name | string | |
| items[].state | "live" | "coming" |
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.
Events
WS/events
Computer state changes for the organisation (WebSocket)
GET https://api.foxdeploy.ai/v1/events
Authorization: Bearer fd_live_...Answer 101: switching protocols.
Errors: 400, 401, 402, 403, 404, 409, 413, 422, 429, 502, 503, 504, each with the error envelope below.