API

BrowserSessionRecording

Operations

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

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/browser_sessions/{browser_session_id}/recordings/{id}/stop create Success
POST /api/v1/organizations/{organization_id}/browser_sessions/{browser_session_id}/recordings create Success

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:

created, err := client.BrowserSessionRecording(nil).Create(map[string]any{"browser_session_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local created, err = client:BrowserSessionRecording():create({ browser_session_id = "example", organization_id = "example" })

PHP

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

$created = $client->BrowserSessionRecording()->create(["browser_session_id" => "example", "organization_id" => "example"]);

Python

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

created = client.BrowserSessionRecording().create({ "browser_session_id": "example", "organization_id": "example" })

Ruby

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

created = client.BrowserSessionRecording.create({ "browser_session_id" => "example", "organization_id" => "example" })

TypeScript

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

const created = await client.BrowserSessionRecording().create({ browser_session_id: "example", organization_id: "example" })

Fields

Field Type Required Description
id string No Id
idempotency_key string No Idempotency Key
wait boolean No Only screenshots support wait: true.

create

POST /api/v1/organizations/{organization_id}/browser_sessions/{browser_session_id}/recordings/{id}/stop

Operation ID: post_api_v1_organizations_organization_id_browser_sessions_browser_session_id_recordings_id_stop.

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

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

202: Recording stop requested or already finished

application/json

Property Type Required Description
browser_session_id string Yes
capture_omissions object No
captured_at string (date-time) No
ended_at string (date-time) No
failure_code string No
files array of object Yes
files[].byte_size integer Yes
files[].captured_at string (date-time) Yes
files[].checksum string Yes
files[].content_type enum: image/png, video/webm Yes
files[].download_path string Yes
files[].id string Yes
files[].index integer Yes
files[].playback_url string No Authorized video capability, limited to five minutes and remaining retention. Refresh by reading this capture again.
files[].readable boolean Yes
files[].recording object No
files[].recording.duration_ms integer No
files[].recording.recording_id string No
files[].recording.start_ms integer No
files[].retention_expires_at string (date-time) Yes
frames integer No
id string Yes
kind enum: screenshot, video Yes
partial boolean Yes Retained footage has a capture failure or reported omissions.
retention_expires_at string (date-time) Yes
source object No Screenshot provenance. Dimensions describe retained PNG pixels. URLs are observations before and after capture; concurrent navigation may change the page during that interval.
source.capture_finished_at string (date-time) No
source.capture_started_at string (date-time) No
source.height integer No
source.tab_id string No
source.url string No
source.url_before string No
source.width integer No
status enum: pending, starting, capturing, recording, finalizing, ready, ... Yes
stop_requested_at string (date-time) No
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/organizations/{organization_id}/browser_sessions/{browser_session_id}/recordings

Operation ID: api_v1_recordings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
browser_session_id path string Yes
Idempotency-Key header string No

Request body

application/json

Property Type Required Description
idempotency_key string No
wait boolean No Only screenshots support wait: true. Complete the durable capture within this request; a lost response can be recovered using the same idempotency key.

Responses

200: Success

application/json

The response is object.

202: Recording accepted or replayed

application/json

Property Type Required Description
browser_session_id string Yes
capture_omissions object No
captured_at string (date-time) No
ended_at string (date-time) No
failure_code string No
files array of object Yes
files[].byte_size integer Yes
files[].captured_at string (date-time) Yes
files[].checksum string Yes
files[].content_type enum: image/png, video/webm Yes
files[].download_path string Yes
files[].id string Yes
files[].index integer Yes
files[].playback_url string No Authorized video capability, limited to five minutes and remaining retention. Refresh by reading this capture again.
files[].readable boolean Yes
files[].recording object No
files[].recording.duration_ms integer No
files[].recording.recording_id string No
files[].recording.start_ms integer No
files[].retention_expires_at string (date-time) Yes
frames integer No
id string Yes
kind enum: screenshot, video Yes
partial boolean Yes Retained footage has a capture failure or reported omissions.
retention_expires_at string (date-time) Yes
source object No Screenshot provenance. Dimensions describe retained PNG pixels. URLs are observations before and after capture; concurrent navigation may change the page during that interval.
source.capture_finished_at string (date-time) No
source.capture_started_at string (date-time) No
source.height integer No
source.tab_id string No
source.url string No
source.url_before string No
source.width integer No
status enum: pending, starting, capturing, recording, finalizing, ready, ... Yes
stop_requested_at string (date-time) No
401: Unauthorized
403: Forbidden
404: Not found
409: The idempotency key belongs to a different capture
422: Recording busy or browser capture unavailable
502: Bad gateway