Start a new browser session
Creates a new browser session with the specified configuration. Returns a session ID used for all subsequent operations.
post/v1/sessions/start
Request
- Base URL: https://api.stagehand.browserbase.com
- URL: https://api.stagehand.browserbase.com/v1/sessions/start
- Auth: API 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
No recorded changes to this operation across all 1 revision of this API.