Skip to content

Reference

Browserbase

Connect Browserbase to Alter Vault for secure API access

Use Browserbase credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDbrowserbase
CategoryDev Tools
Credential TypeAPI Key

Log in to the Browserbase Dashboard

Log in to the Browserbase Dashboard at browserbase.com.

Open project Settings

Open Settings for the project at browserbase.com/settings.

Copy the key

Copy the API Key, and note the Project ID — most endpoints require it as a parameter.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Browserbase

Go to Managed Secrets > Add Provider > Browserbase.

Enter credentials

Paste your API Key into the credential field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.POST,
"https://api.browserbase.com/v1/sessions",
grant_id="YOUR_GRANT_ID",
json={"projectId": "YOUR_PROJECT_ID"},
)
  • The key is injected via the X-BB-API-Key header. Most endpoints also take a projectId, passed in the request body by the caller.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
sessions/createwritePOST/v1/sessions
sessions/listreadGET/v1/sessions
sessions/getreadGET/v1/sessions/{id}
sessions/updatewritePOST/v1/sessions/{id}
sessions/debugreadGET/v1/sessions/{id}/debug
sessions/logsreadGET/v1/sessions/{id}/logs
sessions/recordingreadGET/v1/sessions/{id}/recording
sessions/downloadsreadGET/v1/sessions/{id}/downloads
sessions/downloads/deletedeleteDELETE/v1/sessions/{id}/downloads
sessions/uploadswritePOST/v1/sessions/{id}/uploads
contexts/createwritePOST/v1/contexts
contexts/getreadGET/v1/contexts/{id}
contexts/updatewritePUT/v1/contexts/{id}
contexts/deletedeleteDELETE/v1/contexts/{id}
extensions/uploadwritePOST/v1/extensions
extensions/getreadGET/v1/extensions/{id}
extensions/deletedeleteDELETE/v1/extensions/{id}
projects/listreadGET/v1/projects
projects/getreadGET/v1/projects/{id}
projects/usagereadGET/v1/projects/{id}/usage

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.