curl https://api.tzafon.ai/computers/comp_123/tabs \ -H "Authorization: Bearer sk_your_api_key"
{ "result": { "tabs": [ { "tab_id": "tab_main", "url": "https://example.com", "is_main": true }, { "tab_id": "tab_abc123", "url": "https://google.com", "is_main": 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"}'
{ "result": { "created_tab_id": "tab_xyz789" } }
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?