Browserless Sessions & Connections API

Create persistent browser sessions, reconnect to running browsers, and query CDP metadata. `/session` spins up a session that outlives a single WebSocket connection. `/reconnect/:id` reattaches to it later.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /session Create a browser automation session · /session #
Ask an LLM
“How do I start a browser session that runs for a set time and reconnects automatically?”
“Can I create a stealth session that blocks ads and uses a specific proxy?”
Tell an agent
Create a browser session with TTL {ttl}.
Start a {browser} session with TTL {ttl} that blocks ads {blockAds} and uses proxy {proxy}.
PUT /json/new Connect to a blank page via DevTools /json/new · /json/new #
Ask an LLM
“How do I connect a remote client to a blank page through the DevTools /json/new endpoint?”
“What does the /json/new payload return for a new blank page connection?”
Tell an agent
Get the DevTools /json/new payload for a new blank page connection.
Connect a remote client to a blank page using the /json/new endpoint.
GET /json/version Get the DevTools /json/version payload · /json/version #
Ask an LLM
“What version of Chrome or Chromium is the DevTools /json/version endpoint returning?”
“Can I read the DevTools protocol version for a session?”
Tell an agent
Fetch the DevTools /json/version payload.
Show the Chrome version the DevTools protocol is built on.
GET /json/protocol Get the DevTools /json/protocol metadata · /json/protocol #
Ask an LLM
“Where can I read the full DevTools protocol metadata for a session?”
“What does the /json/protocol endpoint return for Chromium?”
Tell an agent
Fetch the DevTools /json/protocol metadata.
Show the Chrome DevTools protocol JSON for this session.
POST /session/bql/* Query an existing session with BrowserQL · /session/bql/* #
Ask an LLM
“How do I run a GraphQL-style BrowserQL query against a session I already opened?”
“Can I pass variables to a query executed against an existing session?”
Tell an agent
Run BrowserQL query {query} against my open session.
Execute session query {query} with variables {variables} and operation name {operationName}.
GET /reconnect/* Reconnect to an existing Chromium/Chrome session · /reconnect/* #
Ask an LLM
“Can I reconnect a Puppeteer script to a session that's already running?”
“How do I get CDP connection details for a running session?”
Tell an agent
Reconnect to the existing Chromium session.
Give me the CDP connection details for my running session.
GET /session/connect/* Connect to an existing session over CDP · /session/connect/* #
Ask an LLM
“How do I connect a Puppeteer or Playwright script to an existing session?”
“What browser type (Chromium vs stealth) does my session use?”
Tell an agent
Connect to my existing session over CDP.
Get the CDP details for the running session.
DELETE /session/* Delete an existing session · /session/* #
Ask an LLM
“How do I clean up a session and its stored data?”
“Can I force-delete a session that still has connections?”
Tell an agent destructive · confirm first
Delete the session.
Force-delete session {force}.

Documentation

Specifications

SDKs

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/browserless:browserless-sessions-connections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

browserless-sessions-connections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Browserless Sessions & Connections API
  version: 2.57.0
  description: 'This is the API reference for **Browserless Enterprise and Cloud** deployments. You''ll find endpoints for capturing screenshots and PDFs, scraping content, running custom browser functions, solving CAPTCHAs, bypassing bot detection with stealth browsing, managing authenticated browser profiles, and orchestrating crawls.


    The API includes REST endpoints (JSON in, JSON or binary out), WebSocket connections for direct CDP/Playwright/Puppeteer access, and CDP extensions that expose Browserless-specific commands like `liveURL`, `solveCaptcha`, and `reconnect`. For the open-source container API, see the GitHub repository.


    ## Just Getting Started?


    Check out the Quick Start guide to launch your first session, or explore the BrowserQL IDE for a GraphQL-based automation workflow.


    ## Base URL


    All API requests go to your deployment''s base URL. For Browserless Cloud:


    ```plaintext

    https://production-sfo.browserless.io

    ```


    Self-hosted Enterprise deployments use the host and port where the container is running (default `http://localhost:3000`).


    ## Authentication


    Include your API token as a query parameter on every request:


    ```plaintext

    https://production-sfo.browserless.io/chromium/content?token=YOUR_API_TOKEN

    ```


    Tokens are managed from the Account dashboard. Self-hosted deployments set the token via the `TOKEN` environment variable. See connection details for all authentication options.


    ## Changelog


    For release notes and version history, see the Enterprise Changelog.


    ## Software keys


    Self-hosted Enterprise deployments use time-limited software keys for offline licensing. No external connections or callbacks are required. Keys are cryptographically secure and can''t be reverse engineered. When a key expires, the container exits with a semantic error code.


    To use a software key, set the `KEY` environment variable when running the container:


    ```bash

    docker run -e KEY=your-generated-key browserless/enterprise

    ```'
servers:
- url: https://production-sfo.browserless.io
security:
- tokenAuth: []
tags:


# --- truncated at 32 KB (53 KB total) ---
# Full source: https://artifacts.apis.io/browserless/openapi/browserless-sessions-connections-api-openapi.yml