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.
Response
201 - application/json
id
string
requiredcreatedAt
string
requiredupdatedAt
string
requiredprojectId
string
requiredThe Project ID linked to the Session.
startedAt
string
requiredendedAt
string
requiredexpiresAt
string
requiredstatus
enum<string>
requiredAvailable options:
NEW
, CREATED
, RUNNING
, REQUEST_RELEASE
, RELEASING
, ERROR
, TIMED_OUT
, COMPLETED
proxyBytes
integer
requiredBytes used via the Proxy
avgCpuUsage
integer
requiredCPU used by the Session
memoryUsage
integer
requiredMemory used by the Session
keepAlive
boolean
requiredIndicates if the Session was created to be kept alive upon disconnections
Was this page helpful?