Request
Session type: browser or desktop
Maximum session lifetime in seconds. Defaults to plan maximum.
inactivity_timeout_seconds
Seconds of inactivity before auto-termination (if auto_kill is true)
Automatically terminate session after inactivity timeout
Display configuration
Viewport height in pixels
Custom identifier for request correlation and logging
Response
Session ID (format: comp_<hex>)
Session type: browser or desktop
When max lifetime expires
When inactivity timeout expires
inactivity_timeout_seconds
Configured inactivity timeout
Whether auto-termination is enabled
curl -X POST https://api.tzafon.ai/computers \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"kind": "browser",
"timeout_seconds": 3600,
"inactivity_timeout_seconds": 120,
"display": {
"width": 1920,
"height": 1080
}
}'
{
"id": "comp_a1b2c3d4e5f6",
"kind": "browser",
"status": "ready",
"created_at": "2025-01-16T12:00:00Z",
"expires_at": "2025-01-16T13:00:00Z",
"idle_expires_at": "2025-01-16T12:02:00Z",
"max_lifetime_seconds": 3600,
"inactivity_timeout_seconds": 120,
"auto_kill": true
}