Overview
APIs
- Overview
- Sessions API
- Projects API
- Contexts API
- Extensions API
Sessions API
Update a Session
POST
/
v1
/
sessions
/
{id}
Copy
Ask AI
curl --request POST \
--url https://api.browserbase.com/v1/sessions/{id} \
--header 'Content-Type: application/json' \
--header 'X-BB-API-Key: <api-key>' \
--data '{
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "REQUEST_RELEASE"
}'
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"status": "RUNNING",
"proxyBytes": 123,
"avgCpuUsage": 1,
"memoryUsage": 1,
"keepAlive": true,
"contextId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region": "us-west-2",
"userMetadata": {}
}
Authorizations
Your Browserbase API Key.
Path Parameters
Body
application/json
Response
200 - application/json
The request has succeeded.
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.browserbase.com/v1/sessions/{id} \
--header 'Content-Type: application/json' \
--header 'X-BB-API-Key: <api-key>' \
--data '{
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "REQUEST_RELEASE"
}'
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"status": "RUNNING",
"proxyBytes": 123,
"avgCpuUsage": 1,
"memoryUsage": 1,
"keepAlive": true,
"contextId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"region": "us-west-2",
"userMetadata": {}
}
Assistant
Responses are generated using AI and may contain mistakes.