# Browserbase integrations: sessions and contexts

> Create a session, create a context and run a web search in Browserbase, and start a workflow when Browserbase sends “Function build running”.

**Canonical page:** https://tray.ai/connectors/browserbase-integrations/
**Categories:** Developer tools
**Connects through:** HTTP Connector

## Overview

Browserbase runs headless browsers in the cloud for AI agents and automation, with session recordings, reusable browser contexts, page fetching and web search. Tray.ai connects to Browserbase through the HTTP Connector, so your workflows can call the Browserbase API alongside the rest of your stack.

## Use cases

### Sessions

Read, create, and update sessions in Browserbase from any Tray.ai workflow. The Browserbase API covers calls such as create a session and list sessions.

- Create a session
- List sessions
- Get a session

### Contexts

Read, create, and delete contexts in Browserbase from any Tray.ai workflow. The Browserbase API covers calls such as create a context and get a context.

- Create a context
- Get a context
- Delete a context

### Fetch and search

Read and create fetch and search in Browserbase from any Tray.ai workflow. The Browserbase API covers calls such as fetch a page and run a web search.

- Fetch a page
- Run a web search

### Functions

Read and manage functions in Browserbase from any Tray.ai workflow. The Browserbase API covers calls such as list functions and invoke a function.

- List functions
- Invoke a function
- Get an invocation

### Webhooks

Read, create, update, and delete webhooks in Browserbase from any Tray.ai workflow. The Browserbase API covers calls such as create a webhook and list webhooks.

- Create a webhook
- List webhooks
- Update a webhook

### Projects

Read projects in Browserbase from any Tray.ai workflow. The Browserbase API covers calls such as list projects and get a project.

- List projects
- Get a project
- Get project usage

## Challenges Tray.ai solves

### Keeping Browserbase credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Browserbase credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Browserbase API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Browserbase API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Browserbase?

Yes. Tray.ai connects to Browserbase through the HTTP Connector, which calls the Browserbase API directly. Any call the Browserbase API documents can run as a step in a Tray.ai workflow.

### How does Tray.ai authenticate with Browserbase?

The Browserbase API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

### Can I get a dedicated Browserbase connector?

Browserbase runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Browserbase connector from the Browserbase API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
