Skip to main content
Extend a live browser session’s timeout. Sessions are created with a timeout of at most 240 minutes (4 hours) and can be extended, one call at a time, up to a total lifetime of 360 minutes (6 hours) counted from when the session started.
The TypeScript SDK gains extendBrowserSession in its next release. Until then, call the REST endpoint directly from TypeScript.

Parameters

Returns

The updated BrowserSessionResponse. timeout is the session’s new total budget in minutes, counted from started_at. If you asked for more than the remaining headroom, the session is extended by what remained and warning explains the difference.
Extension is additive. Each call adds to the session’s budget, so a retried request adds again; read timeout from the response rather than assuming your arithmetic. A session whose budget is already 360 minutes returns a 409 rather than a no-op.

Errors


Request options

Override timeout, retries, or headers for this call by passing request_options (Python) or a second options argument (TypeScript).