Skip to main content

/sessions API

The /sessions API returns a list of currently running browser sessions. Available on Private Deployment and Enterprise Docker plans only.

To create and manage persistent browser sessions, see the Session Management documentation.

Listing Running Sessions

Issue a GET request to /sessions to list running sessions:

curl -X GET \
https://production-sfo.browserless.io/sessions?token=YOUR_API_TOKEN_HERE
warning

Running this in the browser exposes your API key.

Running this request will result in an output like:

[{
"id": null,
"initialConnectURL": "wss://production-sfo.browserless.io/firefox/playwright/?token=YOUR_API_TOKEN_HERE",
"isTempDataDir": true,
"launchOptions": {},
"numbConnected": 1,
"routePath": ["/firefox/playwright", "/firefox/playwright"],
"startedOn": 1709584439748,
"ttl": 0,
"userDataDir": null,
"browser": "FirefoxPlaywright",
"browserId": "d9a8570a73666d79d79ac23f07cf8966",
"killURL": null,
"running": true,
"timeAliveMs": 10118,
"type": "browser"
}]