Connect to a Session

Connect API

Use WebSocket or HTTP to connect or create a Session on-the-fly

Create custom Sessions and retrieve all information (ex: logs)

Authentication

All REST endpoints are authenticated using your Browserbase API Key, configured as follows:

const response = await fetch(
  `https://www.browserbase.com/v1/sessions/${sessionId}`,
  {
    method: "GET",
    headers: {
      "x-bb-api-key": `${process.env.BROWSERBASE_API_KEY}`,
    },
  },
);