Skip to content

Authentication

The Browserbase API uses Bearer token authentication.

Getting an API Key

  1. Sign up at browserbase.com
  2. Navigate to your dashboard settings
  3. Create a new API key

Client Initialization

1
2
3
4
using Browserbase;

var client = new BrowserbaseClient(
    apiKey: Environment.GetEnvironmentVariable("BROWSERBASE_API_KEY")!);

Environment Variables

For integration tests, set the following environment variable:

1
export BROWSERBASE_API_KEY=your-api-key-here