Create Session
Run a task in a session.
- Without session_id: creates a new session, starts a sandbox, and dispatches the task.
- With session_id: dispatches the task to an existing idle session.
If keep_alive is false (default), the session auto-stops when the task finishes.
If keep_alive is true, the session stays idle after the task, ready for follow-ups.
Authentication
X-Browser-Use-API-Keystring
API Key authentication via header
Request
This endpoint expects an object.
task
model
Allowed values:
sessionId
keepAlive
maxCostUsd
profileId
proxyCountryCode
outputSchema
Response
Successful Response
id
status
model
Allowed values:
createdAt
updatedAt
title
liveUrl
profileId
proxyCountryCode
maxCostUsd
totalInputTokens
totalOutputTokens
proxyUsedMb
llmCostUsd
proxyCostUsd
totalCostUsd