Skip to main content
POST
/
browser
/
session
Python (Recommended)
# Use the new session() method instead
from smooth import SmoothClient

client = SmoothClient(api_key="YOUR_API_KEY")

with client.session(url="https://example.com") as session:
    session.run_task("Click the login button")
    session.close()
{
  "r": {
    "profile_id": "<string>",
    "live_id": "<string>",
    "live_url": "<string>"
  }
}

Authorizations

apikey
string
header
required

Body

application/json

Request model for opening a browser session (deprecated).

profile_id
string | null

The profile ID to use. If not provided, a new profile will be created.

live_view
boolean
default:true

Request a live URL to interact with the browser.

device
enum<string> | null
default:desktop

Device type for the browser session.

Available options:
desktop,
mobile
url
string<uri> | null

Starting URL to open.

proxy_server
string | null

Proxy server address.

proxy_username
string | null

Proxy server username.

proxy_password
string | null

Proxy server password.

extensions
string[] | null

List of extension IDs to load.

Response

Session opened.

r
BrowserSessionResponse · object
required

Response model for browser session (deprecated).