Start a new browser session
Changed onCreates a new browser session with the specified configuration. Returns a session ID used for all subsequent operations.
post/v1/sessions/start
Request
- Base URLhttps://api.stagehand.browserbase.com
- AuthAPI key in header x-bb-api-key and API key in header x-bb-project-id
Headers
x-stream-response'true' | 'false'
Whether to stream the response via SSE
Example:true
Request body
Example request
{
"modelName": "openai/gpt-5.4-mini",
"domSettleTimeoutMs": 5000,
"verbose": 1,
"browser": {
"type": "local",
"cdpUrl": "ws://localhost:9222"
},
"selfHeal": true
}Response
Default Response
Example response
{
"data": {
"sessionId": "c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123",
"cdpUrl": "wss://connect.browserbase.com/?signingKey=abc123"
}
}Changes
- breaking
removed
subschema #2: ProxyConfigListfrom the/request propertyanyOflist - breaking
added 'propertyNames' constraint to the request property
// - breaking
added 'propertyNames' constraint to the request property
/ - info
added
subschema #2to the/request propertyanyOflist
- breaking
- info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
request property
/deprecated
- info