Sessions API
Create a Session
POST
/
v1
/
sessions
Authorizations
X-BB-API-Key
string
headerrequiredYour Browserbase API Key.
Body
application/json
projectId
string
requiredThe Project ID. Can be found in Settings.
extensionId
string
The uploaded Extension ID. See Upload Extension.
browserSettings
object
timeout
integer
Duration in seconds after which the session will automatically end. Defaults to the Project's defaultTimeout
.
keepAlive
boolean
Set to true to keep the session alive even after disconnections. This is available on the Startup plan only.
proxies
Proxy configuration. Can be true for default proxy, or an array of proxy configurations.
Response
201 - application/json
id
string
requiredcreatedAt
string
requiredupdatedAt
string
requiredprojectId
string
requiredThe Project ID linked to the Session.
startedAt
string
requiredendedAt
string
expiresAt
string
requiredstatus
enum<string>
requiredAvailable options:
RUNNING
, ERROR
, TIMED_OUT
, COMPLETED
proxyBytes
integer
requiredBytes used via the Proxy
avgCpuUsage
integer
CPU used by the Session
memoryUsage
integer
Memory used by the Session
keepAlive
boolean
requiredIndicates if the Session was created to be kept alive upon disconnections
contextId
string
Optional. The Context linked to the Session.
Was this page helpful?