Sessions API
Update Session
POST
/
v1
/
sessions
/
{id}
Authorizations
X-BB-API-Key
string
headerrequiredYour Browserbase API Key.
Path Parameters
id
string
requiredBody
application/json
projectId
string
requiredThe Project ID. Can be found in Settings.
status
enum<string>
requiredSet to REQUEST_RELEASE
to request that the session complete. Use before session's timeout to avoid additional charges.
Available options:
REQUEST_RELEASE
Response
200 - application/json
id
string
requiredcreatedAt
string
requiredupdatedAt
string
requiredprojectId
string
requiredThe Project ID linked to the Session.
startedAt
string
requiredexpiresAt
string
requiredstatus
enum<string>
requiredAvailable options:
RUNNING
, ERROR
, TIMED_OUT
, COMPLETED
proxyBytes
integer
requiredBytes used via the Proxy
keepAlive
boolean
requiredIndicates if the Session was created to be kept alive upon disconnections
region
enum<string>
requiredThe region where the Session is running.
Available options:
us-west-2
, us-east-1
, eu-central-1
, ap-southeast-1
endedAt
string
avgCpuUsage
integer
CPU used by the Session
memoryUsage
integer
Memory used by the Session
contextId
string
Optional. The Context linked to the Session.
Was this page helpful?