Understanding Browser Sessions

A browser session is the fundamental building block in Browserbase - it represents a single browser instance running in the cloud. Before diving into the APIs, we recommend familiarizing yourself with the core concepts:

API Reference

Once you understand the fundamentals, explore our APIs to get full control of your browser sessions:

Authentication

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

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

Was this page helpful?