Create Session
Create a new session with a new task.
Authentication
X-Browser-Use-API-Keystring
API Key authentication via header
Request
This endpoint expects an object.
profileId
The ID of the profile to use for the session
proxyCountryCode
Country code for proxy location.
startUrl
URL to navigate to when the session starts.
browserScreenWidth
Custom screen width in pixels for the browser.
browserScreenHeight
Custom screen height in pixels for the browser.
persistMemory
If True (default), tasks in this session share memory and history with each other, allowing follow-up tasks to continue from previous context. If False, each task runs as a standalone task without any previous task context.
keepAlive
If True (default), the browser session stays alive after tasks complete, allowing follow-up tasks. If False, the session is closed immediately after task completion. Set to False for simple one-off tasks to reduce session idle time.
customProxy
Custom proxy settings to use for the session. If not provided, our proxies will be used. Custom proxies are only available for Business and Scaleup subscribers.
Response
Successful Response
id
Unique identifier for the session
status
Current status of the session (active/stopped)
Allowed values:
startedAt
Timestamp when the session was created and started
persistMemory
Whether tasks in this session share memory and history with each other
keepAlive
Whether the browser session stays alive after tasks complete
liveUrl
URL where the browser can be viewed live in real-time
finishedAt
Timestamp when the session was stopped (None if still active)
proxyUsedMb
Amount of proxy data used in MB
proxyCost
Cost of proxy usage in USD