from dari import Dari client = Dari(api_key="YOUR_API_KEY") session = client.get_session("sess_a1b2c3d4e5f6") print(f"Session status: {session['status']}") print(f"Expires at: {session['expires_at']}")
{ "session_id": "sess_a1b2c3d4e5f6", "cdp_url": "ws://browser-proxy.usedari.com/devtools/browser/a1b2c3d4", "screen_config": { "width": 1920, "height": 1080 }, "status": "active", "expires_at": "2024-11-26T10:34:00Z", "metadata": { "purpose": "workflow-automation" }, "created_at": "2024-11-26T09:34:00Z", "updated_at": "2024-11-26T09:34:00Z" }
Get details of a specific browser session
active
terminated
expired
{ "detail": "Invalid API key" }
{ "detail": "Session not found" }