Skip to content
Dashboard

Create a new computer instance

POST/computers

Create a new automation session. Set kind to "browser" for web automation or "desktop" for OS-level automation. Defaults to "browser" if not specified. timeout_seconds controls max lifetime, inactivity_timeout_seconds controls idle timeout, and auto_kill disables only the idle timeout (max lifetime still applies).

Body ParametersJSONExpand Collapse
auto_kill: optional boolean

If true (default), kill session after inactivity

context_id: optional string
display: optional object { height, scale, width }
height: optional number
scale: optional number
width: optional number
environment_id: optional string
inactivity_timeout_seconds: optional number

Idle timeout before auto-kill

kind: optional string

"browser" (default) or "desktop"

persistent: optional boolean

Persist cookies/storage state to DB on session teardown only if true

stealth: optional unknown
timeout_seconds: optional number
use_advanced_proxy: optional boolean

If true (browser sessions), use ADVANCED_PROXY_URL on session start

ReturnsExpand Collapse
ComputerResponse = object { id, auto_kill, created_at, 8 more }
id: optional string
auto_kill: optional boolean
created_at: optional string
endpoints: optional map[string]
expires_at: optional string
idle_expires_at: optional string
inactivity_timeout_seconds: optional number
kind: optional string
last_activity_at: optional string
max_lifetime_seconds: optional number
status: optional string

Create a new computer instance

curl https://api.tzafon.ai/computers \
    -X POST \
    -H "Authorization: Bearer $TZAFON_API_KEY"
{
  "id": "id",
  "auto_kill": true,
  "created_at": "created_at",
  "endpoints": {
    "foo": "string"
  },
  "expires_at": "expires_at",
  "idle_expires_at": "idle_expires_at",
  "inactivity_timeout_seconds": 0,
  "kind": "kind",
  "last_activity_at": "last_activity_at",
  "max_lifetime_seconds": 0,
  "status": "status"
}
Returns Examples
{
  "id": "id",
  "auto_kill": true,
  "created_at": "created_at",
  "endpoints": {
    "foo": "string"
  },
  "expires_at": "expires_at",
  "idle_expires_at": "idle_expires_at",
  "inactivity_timeout_seconds": 0,
  "kind": "kind",
  "last_activity_at": "last_activity_at",
  "max_lifetime_seconds": 0,
  "status": "status"
}