POST
/
v1
/
contexts
curl --request POST \
  --url https://api.browserbase.com/v1/contexts \
  --header 'Content-Type: application/json' \
  --header 'X-BB-API-Key: <api-key>' \
  --data '{
  "projectId": "<string>"
}'
{
  "id": "<string>",
  "uploadUrl": "<string>",
  "publicKey": "<string>",
  "cipherAlgorithm": "<string>",
  "initializationVectorSize": 123
}

Authorizations

X-BB-API-Key
string
header
required

Body

application/json
projectId
string
required

The Project ID. Can be found in Settings.

Response

201 - application/json
The request has succeeded and a new resource has been created as a result.
id
string
required
uploadUrl
string
required

An upload URL to upload a custom user-data-directory.

Minimum length: 1
publicKey
string
required

The public key to encrypt the user-data-directory.

cipherAlgorithm
string
required

The cipher algorithm used to encrypt the user-data-directory. AES-256-CBC is currently the only supported algorithm.

initializationVectorSize
integer
required

The initialization vector size used to encrypt the user-data-directory. Read more about how to use it.