Sessions API
Update a Session
Close a Browserbase session by updating its status to REQUEST_RELEASE, or update other mutable session fields.
POST
Update a Session
Documentation Index
Fetch the complete documentation index at: https://docs.browserbase.com/llms.txt
Use this file to discover all available pages before exploring further.
Closing a session
Use this endpoint to close an active Browserbase session before its timeout. To close the session, sendstatus: "REQUEST_RELEASE" in the request body (projectId is optional). This tells Browserbase to end the session and helps avoid unnecessary usage charges if your work is already complete.
Authorizations
Your Browserbase API Key.
Path Parameters
Body
application/json
Set to REQUEST_RELEASE to request that the session complete. Use before session's timeout to avoid additional charges.
Available options:
REQUEST_RELEASE Response
200 - application/json
The request has succeeded.
The Project ID linked to the Session.
Available options:
PENDING, RUNNING, ERROR, TIMED_OUT, COMPLETED Indicates if the Session was created to be kept alive upon disconnections
The region where the Session is running.
Available options:
us-west-2, us-east-1, eu-central-1, ap-southeast-1 Optional. The Context linked to the Session.
Arbitrary user metadata to attach to the session. To learn more about user metadata, see User Metadata.
Update a Session