API

BrowserSessionControl

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/browser_sessions/{browser_session_id}/controls/{id} load Control handoff state; an old generation never returns a current connection

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

browser_session_control, err := client.BrowserSessionControl(nil).Load(map[string]any{"browser_session_id": "example", "id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(browser_session_control)

Lua

Construct client as shown in the Lua setup, then call the operations:

local browser_session_control, err = client:BrowserSessionControl():load({ browser_session_id = "example", id = "example_id", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$browser_session_control = $client->BrowserSessionControl()->load(["browser_session_id" => "example", "id" => "example_id", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

browser_session_control = client.BrowserSessionControl().load({"browser_session_id": "example", "id": "example_id", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

browser_session_control = client.BrowserSessionControl.load({ "browser_session_id" => "example", "id" => "example_id", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const browser_session_control = await client.BrowserSessionControl().load({ browser_session_id: "example", id: "example_id", organization_id: "example" })

Fields

Field Type Required Description
browser_session_id string Yes Browser Session Id
completed_at one,string,null No Completed At
completed_generation one,integer,null No Completed Generation
connection one,object,null No Connection
failure_code one,string,null No Failure Code
id string Yes Id
requested_controller string Yes Requested Controller
requested_generation integer Yes Requested Generation
status string Yes Status

load

GET /api/v1/organizations/{organization_id}/browser_sessions/{browser_session_id}/controls/{id}

Operation ID: get_api_v1_organizations_organization_id_browser_sessions_browser_session_id_controls_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
browser_session_id path string Yes
id path string Yes

Responses

200: Control handoff state; an old generation never returns a current connection

application/json

Property Type Required Description
browser_session_id string Yes
completed_at string (date-time) No
completed_generation integer No
connection object No
connection.cdp_url string No
connection.expires_at string (date-time) No
connection.generation integer No
failure_code string No
id string Yes
requested_controller enum: idle, agent, external Yes
requested_generation integer Yes
status enum: pending, running, completed, failed Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway