Skip to main content
PUT
/
v1
/
browsers
/
{id}
/
contexts
Create Context
curl --request PUT \
  --url https://api.example.com/v1/browsers/{id}/contexts/
{
  "ctx_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.rustybrowser.com/llms.txt

Use this file to discover all available pages before exploring further.

Description

Creates a new isolated browser context within an existing session. Contexts are similar to incognito windows — they share the browser process but have separate cookies, storage, and sessions. Useful for running multiple independent tabs or user sessions in parallel within a single browser.

Authentication

Authorization: Bearer YOUR_API_KEY
Self-hosted open source deployments do not require authentication.

Path Parameters

id
string
required
The browser ID returned from Create Session.

Request Body

No request body required.

Response

ctx_id
string
The ID of the newly created context. Pass this as :ctx_id when targeting context-specific operations.

Example

curl -X PUT https://your-host/browsers/exc-b9534e98-c3ce-4d1b-9671-b563ac66adc3/contexts/