For the complete documentation index, see llms.txt. This page is also available as Markdown.

Browser Sessions

List browser sessions, optionally filtered

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
repositoryIdentifierstringOptional

Filter by repository identifier (e.g., owner/repo)

prNumbernumberOptional

Filter by pull request number

environmentIdstringOptional

Filter by environment id

statusstring · enumOptional

Filter by session status

Possible values:
Responses
200

List of browser sessions

No content

get/sfp/api/browser-sessions

No content

Start a recorded browser session for a PR's assigned review environment

post

Resolves the active review-environment assignment for the PR, then dispatches the record flow. Works for pool review-environment sandboxes (which are not named environments). Use POST /environments/:id/browser/record to record against a named environment instead.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
repositoryIdentifierstringRequired

Repository identifier (owner/repo, or org/project/repo for ADO)

prNumbernumberRequired

Pull request number that has an active review-environment assignment

domainstringOptional

Review-environment domain (for multi-domain assignments)

modestringOptional

Session mode

Default: record
retUrlstringOptional

Return URL to open in the recorded Salesforce session

Responses
201

Browser session provisioning

No content

post/sfp/api/browser-sessions/record-for-pr

No content

Get a browser session by id

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Browser session id

Responses
200

Browser session details

No content

get/sfp/api/browser-sessions/{id}

No content

Delete a browser session

delete

Stops the remote Browserbase session if it is still running, then removes the session record.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Browser session id

Responses
200

Session deleted

No content

delete/sfp/api/browser-sessions/{id}

No content

Update a browser session (internal worker write-back)

patch

Application-token only. Used by the Hatchet worker to write session faces (provider session id, live view URL, status) back to the server. Not a user-facing endpoint.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Browser session id

Body
providerSessionIdstringOptional

Provider (Browserbase) session id

projectIdstringOptional

Provider project id

liveViewUrlstringOptional

Live view URL for the running session

instanceUrlstringOptional

Salesforce instance URL

salesforceUsernamestringOptional

Salesforce username

statusstring · enumOptional

Session status

Possible values:
errorstringOptional

Error message if the session failed

startedAtstringOptional

Session start time (ISO 8601)

expiresAtstringOptional

Session expiry time (ISO 8601)

Responses
200

Updated browser session

No content

patch/sfp/api/browser-sessions/{id}

No content

List replay pages for a recorded session

get

Proxies the Browserbase replays listing for the session. Resolved by session id — no environment id required, so it works for pool review environments and the in-app inspect view.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Browser session id

Responses
200

Replay pages

No content

get/sfp/api/browser-sessions/{id}/replays

No content

Get a replay page playlist (m3u8) for a recorded session

get

Proxies the Browserbase replay page and returns its HLS playlist with segment URLs rewritten to the same-origin segment proxy.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Browser session id

pageIdstringRequired

Replay page id

Responses
200

HLS playlist (application/vnd.apple.mpegurl)

No content

get/sfp/api/browser-sessions/{id}/replays/{pageId}

No content

Stream a recorded replay segment

get

Fetches a single HLS segment (or init segment) from the Browserbase CDN server-side and streams it, so the recording stays behind the server auth instead of exposing tokened CDN URLs.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Browser session id

pageIdanyRequired

Replay page id

Query parameters
ustringRequired

Opaque (base64url) reference to the CDN segment, as emitted in the proxied playlist

Responses
200

Binary media segment

No content

get/sfp/api/browser-sessions/{id}/replays/{pageId}/segment

No content

Extend a browser session

post

Bumps expires_at by the requested minutes, capped so total lifetime never exceeds 60 minutes.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Browser session id

Body
minutesnumberOptional

Minutes to extend the session by

Default: 15
Responses
200

Extended browser session

No content

post/sfp/api/browser-sessions/{id}/extend

No content

Stop a running browser session

post

Ends the remote Browserbase session and marks the session ended, keeping the record so its recording can be replayed. Use DELETE to discard the record instead.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Browser session id

Responses
200

Session stopped (ended)

No content

post/sfp/api/browser-sessions/{id}/stop

No content

Start a recorded Browserbase session for an environment

post

Provisions a browser session and dispatches the record-browser-session flow to Hatchet. Owner/application only — a recorded session auto-authenticates into the org, matching the owner-gated frontdoor for named environments.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
envIdstringRequired

Environment id

Body
modestringOptional

Session mode

Default: recordExample: record
retUrlstringOptional

Return URL to open in the recorded Salesforce session

prNumbernumberOptional

Pull request number this session is bound to

Responses
201

Browser session provisioning

No content

post/sfp/api/environments/{envId}/browser/record

No content

List replay pages for a recorded session

get

Proxies the Browserbase replays listing for the session.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
sessionIdstringRequired

Browser session id

envIdanyRequired

Environment id

Responses
200

Replay pages

No content

get/sfp/api/environments/{envId}/browser/replay/{sessionId}

No content

Get a replay page playlist (m3u8) for a recorded session

get

Proxies the Browserbase replay page and returns its HLS playlist.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
sessionIdstringRequired

Browser session id

pageIdstringRequired

Replay page id

envIdanyRequired

Environment id

Responses
200

HLS playlist (application/vnd.apple.mpegurl)

No content

get/sfp/api/environments/{envId}/browser/replay/{sessionId}/{pageId}

No content

Last updated

Was this helpful?