POST
/
v1
/
sessions
curl --request POST \
  --url https://api.browserbase.com/v1/sessions \
  --header 'Content-Type: application/json' \
  --header 'X-BB-API-Key: <api-key>' \
  --data '{"projectId": "<project-id>"}'
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "projectId": "<string>",
  "startedAt": "2023-11-07T05:31:56Z",
  "endedAt": "2023-11-07T05:31:56Z",
  "expiresAt": "2023-11-07T05:31:56Z",
  "status": "RUNNING",
  "proxyBytes": 123,
  "avgCpuUsage": 123,
  "memoryUsage": 123,
  "keepAlive": true,
  "contextId": "<string>",
  "region": "us-west-2",
  "userMetadata": {},
  "connectUrl": "<string>",
  "seleniumRemoteUrl": "<string>",
  "signingKey": "<string>"
}

Authorizations

X-BB-API-Key
string
header
required

Body

application/json

Response

201 - application/json

The request has succeeded and a new resource has been created as a result.

The response is of type object.