curl https://api.tzafon.ai/computers/comp_123/tabs \ -H "Authorization: Bearer sk_your_api_key"
[ { "id": "tab_main", "url": "https://example.com", "title": "Example", "is_active": true }, { "id": "tab_abc123", "url": "https://google.com", "title": "Google", "is_active": false } ]
Manage browser tabs (browser sessions only)
GET /computers/{id}/tabs
POST /computers/{id}/tabs
curl -X POST https://api.tzafon.ai/computers/comp_123/tabs \ -H "Authorization: Bearer sk_your_api_key" \ -H "Content-Type: application/json" \ -d '{"url": "https://google.com"}'
{ "id": "tab_xyz789", "url": "https://google.com", "title": "Google", "is_active": true }
POST /computers/{id}/tabs/{tab_id}/switch
curl -X POST https://api.tzafon.ai/computers/comp_123/tabs/tab_abc123/switch \ -H "Authorization: Bearer sk_your_api_key"
{ "status": "success", "active_tab": "tab_abc123" }
DELETE /computers/{id}/tabs/{tab_id}
curl -X DELETE https://api.tzafon.ai/computers/comp_123/tabs/tab_abc123 \ -H "Authorization: Bearer sk_your_api_key"
{ "status": "success", "closed_tab": "tab_abc123" }
Was this page helpful?