API

BrowserSessionMedia

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}/media/{id} load Capture state and retained file metadata

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_media, err := client.BrowserSessionMedia(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_media)

Lua

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

local browser_session_media, err = client:BrowserSessionMedia():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_media = $client->BrowserSessionMedia()->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_media = client.BrowserSessionMedia().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_media = client.BrowserSessionMedia.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_media = await client.BrowserSessionMedia().load({ browser_session_id: "example", id: "example_id", organization_id: "example" })

Fields

Field Type Required Description
browser_session_id string Yes Browser Session Id
capture_omissions one,object,null No Capture Omissions
captured_at one,string,null No Captured At
ended_at one,string,null No Ended At
failure_code one,string,null No Failure Code
files array Yes Files
frames one,integer,null No Frames
id string Yes Id
kind string Yes Kind
partial boolean Yes Retained footage has a capture failure or reported omissions.
retention_expires_at string Yes Retention Expires At
source one,object,null No Screenshot provenance.
status string Yes Status
stop_requested_at one,string,null No Stop Requested At

load

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

Operation ID: get_api_v1_organizations_organization_id_browser_sessions_browser_session_id_media_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: Capture state and retained file metadata

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