Without session_id, without task: creates a new idle session (e.g. for file uploads).
Without session_id, with task: creates a new session and dispatches the task.
With session_id, with task: dispatches the task to an existing idle session.
With session_id, without task: 422 — task is required when targeting an existing 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.
No sessionId + no task: creates an idle session (useful for uploading files before running a task).
No sessionId + task: creates a new session and immediately runs the task.
sessionId + task: dispatches the task to an existing idle session.
sessionId + no task: returns 422 — a task is required when targeting an existing session.
task
string | null
The natural-language instruction for the agent to execute (e.g. "Go to amazon.com and find the best-rated wireless mouse under $50"). Required when dispatching to an existing session.
model
enum<string>
default:claude-opus-4.7
The model to use. "gemini-3-flash" is fast and cheap, "claude-sonnet-5" is balanced, "claude-opus-4.7" is most capable (default), and "claude-opus-4.8" is the newest Opus-tier model. GPT-5.6 models are Browser Use native models when either direct OpenAI or Amazon Bedrock routing is configured; otherwise they require use_own_key=true. GPT-5.5 becomes native when Bedrock routing is enabled; otherwise it requires use_own_key=true. Other additional provider models (e.g. "gemini-3.5-flash" and "gpt-5.2") require use_own_key=true. See BuModel for details.
Available options:
bu-mini,
bu-max,
bu-ultra,
gemini-3-flash,
claude-opus-4.6,
claude-opus-4.7,
claude-sonnet-5,
claude-opus-4.8,
gpt-5.4-mini,
glm-5.2,
minimax-m3,
grok-4.6,
glm-5.3-flash,
deepseek-v4-flash-vision,
claude-haiku-4.5,
gpt-5.2,
gpt-5-mini,
gpt-5.5,
gpt-5.6-sol,
gpt-5.6-terra,
gpt-5.6-luna,
gemini-3-pro,
gemini-3.1-pro,
gemini-3.5-flash
thinkingLevel
enum<string> | null
Optional model reasoning depth. Omit this field to preserve the model provider default. Supported values depend on the selected model: most supported Claude models and GPT-5.1+ models support disabled/low/medium/high; Gemini Flash models support all four (disabled maps to Gemini's minimal level); Claude Fable 5, earlier GPT-5 models, Gemini 2.5 Pro, o3/o4, and Grok support low/medium/high; Gemini 3.1 Pro supports low/high; GLM supports disabled/high. Unsupported model/level combinations are rejected.
Available options:
disabled,
low,
medium,
high
sessionId
string<uuid> | null
ID of an existing idle session to dispatch the task to. If omitted, a new session is created.
keepAlive
boolean
default:false
If true, the session stays alive in idle state after the task completes instead of automatically stopping. This lets you dispatch follow-up tasks to the same session, preserving browser state and files.
maxCostUsd
numberstring
Maximum total cost in USD allowed for this session. The task will be stopped if this limit is reached. If omitted, a default limit applies (capped by your available balance). When dispatching a follow-up task to an existing session (sessionId is set), supplying this value overrides the session's budget for the upcoming dispatch; otherwise the budget is automatically refreshed to current spend + default.
profileId
string<uuid> | null
ID of a browser profile to load into the session. Profiles persist cookies, local storage, and other browser state across sessions. Create profiles via the Profiles API.
workspaceId
string<uuid> | null
ID of a workspace to attach to the session. Workspaces provide persistent file storage that carries across sessions. Create workspaces via the Workspaces API.
proxyCountryCode
enum<string> | null
default:us
Country code for the browser proxy (e.g. "US", "DE", "JP"). Set to null to disable the proxy. The proxy routes browser traffic through the specified country, useful for accessing geo-restricted content.
Available options:
ad,
ae,
af,
ag,
ai,
al,
am,
an,
ao,
aq,
ar,
as,
at,
au,
aw,
az,
ba,
bb,
bd,
be,
bf,
bg,
bh,
bi,
bj,
bl,
bm,
bn,
bo,
bq,
br,
bs,
bt,
bv,
bw,
by,
bz,
ca,
cc,
cd,
cf,
cg,
ch,
ci,
ck,
cl,
cm,
co,
cr,
cs,
cu,
cv,
cw,
cx,
cy,
cz,
de,
dj,
dk,
dm,
do,
dz,
ec,
ee,
eg,
eh,
er,
es,
et,
fi,
fj,
fk,
fm,
fo,
fr,
ga,
gd,
ge,
gf,
gg,
gh,
gi,
gl,
gm,
gn,
gp,
gq,
gr,
gs,
gt,
gu,
gw,
gy,
hk,
hm,
hn,
hr,
ht,
hu,
id,
ie,
il,
im,
in,
iq,
ir,
is,
it,
je,
jm,
jo,
jp,
ke,
kg,
kh,
ki,
km,
kn,
kp,
kr,
kw,
ky,
kz,
la,
lb,
lc,
li,
lk,
lr,
ls,
lt,
lu,
lv,
ly,
ma,
mc,
md,
me,
mf,
mg,
mh,
mk,
ml,
mm,
mn,
mo,
mp,
mq,
mr,
ms,
mt,
mu,
mv,
mw,
mx,
my,
mz,
na,
nc,
ne,
nf,
ng,
ni,
nl,
no,
np,
nr,
nu,
nz,
om,
pa,
pe,
pf,
pg,
ph,
pk,
pl,
pm,
pn,
pr,
ps,
pt,
pw,
py,
qa,
re,
ro,
rs,
ru,
rw,
sa,
sb,
sc,
sd,
se,
sg,
sh,
si,
sj,
sk,
sl,
sm,
sn,
so,
sr,
ss,
st,
sv,
sx,
sy,
sz,
tc,
td,
tf,
tg,
th,
tj,
tk,
tl,
tm,
tn,
to,
tr,
tt,
tv,
tw,
tz,
ua,
ug,
uk,
us,
uy,
uz,
va,
vc,
ve,
vg,
vi,
vn,
vu,
wf,
ws,
xk,
ye,
yt,
za,
zm,
zw
browserScreenWidth
integer | null
Custom browser screen width in pixels. Must be set together with browserScreenHeight. When omitted, the browser keeps its own default resolution.
Required range: 320 <= x <= 6144
browserScreenHeight
integer | null
Custom browser screen height in pixels. Must be set together with browserScreenWidth. When omitted, the browser keeps its own default resolution.
Required range: 320 <= x <= 3456
outputSchema
Outputschema · object | null
A JSON Schema that the agent's final output must conform to. When set, the agent will return structured data matching this schema in the output field of the response. Example: {"type": "object", "properties": {"price": {"type": "number"}, "title": {"type": "string"}}}.
enableScheduledTasks
boolean
default:false
If true, the agent can create scheduled tasks that run on a recurring basis (e.g. "every Monday morning, check my inbox and summarize new emails"). Scheduled tasks are tied to your project and persist beyond the session. Note: all scheduled tasks are visible project-wide, so avoid enabling this in multi-user setups where task isolation is needed.
sensitiveData
Sensitivedata · object | null
Key-value pairs of sensitive data (e.g. passwords, API keys) that the agent can use via secure placeholders. Keys are exposed to the LLM; values are never shown. The agent uses <secret>key</secret> placeholders in browser_type_text to securely enter values.
Show child attributes
enableRecording
boolean
default:false
If true, records a video of the browser session. The recording URLs will be available in the recordingUrls field of the session response after the task completes.
skills
boolean
default:true
If true, the agent generates and persists reusable skills from completed tasks (saved per-domain in the DB and auto-injected into future runs). Set to false to skip skill generation — useful for privacy-sensitive tasks or to avoid the extra LLM cost.
agentmail
boolean
default:true
If true, provisions a temporary email inbox (via AgentMail) for the session. The email address is available in the agentmailEmail field of the session response. Useful for tasks that require email verification or sign-ups.
codeMode
boolean
default:false
When true, the agent returns structured output with text (summary) and code (validated Python source) fields instead of free-form text.
cacheScript
boolean | null
Controls deterministic script caching. null (default): auto-detected — enabled when the task contains @{{value}} brackets and a workspace is attached. true: force-enable script caching even without brackets (caches the exact task). false: force-disable, even if brackets are present. When active, the first call runs the full agent and saves a reusable script. Subsequent calls with the same task template execute the cached script with $0 LLM cost. Requires workspace_id when enabled. Example: "Get prices from @{{https://example.com}} for @{{electronics}}".
useOwnKey
boolean
default:false
If true, uses your own LLM API key (configured in project settings) instead of Browser Use managed keys. You pay your provider directly for inference; Browser Use charges a reduced orchestration fee (0.2× of provider list prices). If no key is configured for the model's provider, the request is rejected.
autoHeal
boolean
default:true
When cache_script is active, controls whether a lightweight LLM validates the cached script output. If the output looks incorrect (empty, error, wrong structure), the system automatically re-triggers the full agent to generate a new version of the script. Set to false to disable validation and always return the raw script output.
Response
Successful Response
Represents a session and its current state.
Poll this endpoint to track task progress. The status field indicates the session lifecycle stage,
and output contains the agent's structured result once the task completes.
id
string<uuid>
required
Unique session identifier.
status
enum<string>
required
Current session lifecycle status. Progresses through: created (sandbox starting) → idle (ready, waiting for task) → running (task executing) → stopped / timed_out / error. Poll this field to track progress.
Available options:
created,
idle,
running,
stopped,
timed_out,
error
model
enum<string>
required
The model tier used for this session.
Available options:
bu-mini,
bu-max,
bu-ultra,
gemini-3-flash,
claude-opus-4.6,
claude-opus-4.7,
claude-sonnet-5,
claude-opus-4.8,
gpt-5.4-mini,
glm-5.2,
minimax-m3,
grok-4.6,
glm-5.3-flash,
deepseek-v4-flash-vision,
claude-haiku-4.5,
gpt-5.2,
gpt-5-mini,
gpt-5.5,
gpt-5.6-sol,
gpt-5.6-terra,
gpt-5.6-luna,
gemini-3-pro,
gemini-3.1-pro,
gemini-3.5-flash
createdAt
string<date-time>
required
When the session was created.
updatedAt
string<date-time>
required
When the session was last updated.
thinkingLevel
enum<string> | null
Configured model reasoning depth for this session, or null when provider defaults are used.
Available options:
disabled,
low,
medium,
high
title
string | null
Auto-generated short title summarizing the task. Available after the task starts running.
output
any | null
The agent's final output. If codeMode was true, this will be an object with text (summary), code (Python source), and optionally output (execution result). If outputSchema was provided, this will be structured data conforming to that schema. Otherwise it may be a free-form string or null.
outputSchema
Outputschema · object | null
The JSON Schema that was requested for structured output, if any.
stepCount
integer
default:0
Number of steps the agent has executed so far.
lastStepSummary
string | null
Human-readable summary of the most recent agent step (e.g. "Clicking the Submit button"). Useful for showing real-time progress.
isTaskSuccessful
boolean | null
Whether the task completed successfully. true if the agent achieved the goal, false if it failed or gave up, null if the task is still running or no task was dispatched.
liveUrl
string | null
URL to view the live browser session. Available immediately on session creation — can be embedded in an iframe to show the browser in real time.
recordingUrls
string[]
URLs to download session recordings. Only populated on GET /api/v3/sessions/{id}; always [] in list responses.
profileId
string<uuid> | null
ID of the browser profile loaded in this session, if any.
workspaceId
string<uuid> | null
ID of the workspace attached to this session, if any.
proxyCountryCode
enum<string> | null
Country code of the proxy used for this session, or null if no proxy.
Available options:
ad,
ae,
af,
ag,
ai,
al,
am,
an,
ao,
aq,
ar,
as,
at,
au,
aw,
az,
ba,
bb,
bd,
be,
bf,
bg,
bh,
bi,
bj,
bl,
bm,
bn,
bo,
bq,
br,
bs,
bt,
bv,
bw,
by,
bz,
ca,
cc,
cd,
cf,
cg,
ch,
ci,
ck,
cl,
cm,
co,
cr,
cs,
cu,
cv,
cw,
cx,
cy,
cz,
de,
dj,
dk,
dm,
do,
dz,
ec,
ee,
eg,
eh,
er,
es,
et,
fi,
fj,
fk,
fm,
fo,
fr,
ga,
gd,
ge,
gf,
gg,
gh,
gi,
gl,
gm,
gn,
gp,
gq,
gr,
gs,
gt,
gu,
gw,
gy,
hk,
hm,
hn,
hr,
ht,
hu,
id,
ie,
il,
im,
in,
iq,
ir,
is,
it,
je,
jm,
jo,
jp,
ke,
kg,
kh,
ki,
km,
kn,
kp,
kr,
kw,
ky,
kz,
la,
lb,
lc,
li,
lk,
lr,
ls,
lt,
lu,
lv,
ly,
ma,
mc,
md,
me,
mf,
mg,
mh,
mk,
ml,
mm,
mn,
mo,
mp,
mq,
mr,
ms,
mt,
mu,
mv,
mw,
mx,
my,
mz,
na,
nc,
ne,
nf,
ng,
ni,
nl,
no,
np,
nr,
nu,
nz,
om,
pa,
pe,
pf,
pg,
ph,
pk,
pl,
pm,
pn,
pr,
ps,
pt,
pw,
py,
qa,
re,
ro,
rs,
ru,
rw,
sa,
sb,
sc,
sd,
se,
sg,
sh,
si,
sj,
sk,
sl,
sm,
sn,
so,
sr,
ss,
st,
sv,
sx,
sy,
sz,
tc,
td,
tf,
tg,
th,
tj,
tk,
tl,
tm,
tn,
to,
tr,
tt,
tv,
tw,
tz,
ua,
ug,
uk,
us,
uy,
uz,
va,
vc,
ve,
vg,
vi,
vn,
vu,
wf,
ws,
xk,
ye,
yt,
za,
zm,
zw
browserScreenWidth
integer | null
Custom browser screen width set for this session, or null for the default.
browserScreenHeight
integer | null
Custom browser screen height set for this session, or null for the default.
maxCostUsd
string | null
Maximum cost limit in USD set for this session.
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
totalInputTokens
integer
default:0
Total LLM input tokens consumed by this session.
totalOutputTokens
integer
default:0
Total LLM output tokens consumed by this session.
proxyUsedMb
string
default:0
Proxy bandwidth used in megabytes, across the session and its browsers.
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
llmCostUsd
string
default:0
Cost of LLM usage in USD.
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
proxyCostUsd
string
default:0
Cost of proxy bandwidth in USD, across the session and its browsers.
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
browserCostUsd
string
default:0
Cost of browser compute time in USD.
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
totalCostUsd
string
default:0
Total session cost in USD (LLM + proxy + browser).
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
screenshotUrl
string | null
Presigned URL of the latest screenshot (expires after 5 minutes). Only populated on GET /api/v3/sessions/{id}; always null in list responses.
agentmailEmail
string | null
Temporary email address provisioned for this session (via AgentMail). Only present if agentmail was enabled.
integrationsUsed
string[]
List of integration providers used during this session (e.g. ["gmail", "slack", "agentmail"]).
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Browser Use","description":"Browser Use Cloud hosts stealth browsers for AI agents: a custom Chromium you drive over CDP with Playwright, Puppeteer, or the browser-use library. From $0.06 per browser-hour, with residential proxies and CAPTCHA solving. For enterprise we offer cheaper prices; save with a commitment. These docs also cover the Cloud Agent API and the open-source browser-use Python library.","colors":{"primary":"#0F1011","light":"#F7F8F8","dark":"#F7F8F8"},"logo":{"light":"https://mintcdn.com/browseruse-0aece648/lNAyHi2yxyXHwQ6v/logo/light.svg?fit=max\u0026auto=format\u0026n=lNAyHi2yxyXHwQ6v\u0026q=85\u0026s=9ea94023eec71de8832c469f0d35b49e","dark":"https://mintcdn.com/browseruse-0aece648/lNAyHi2yxyXHwQ6v/logo/dark.svg?fit=max\u0026auto=format\u0026n=lNAyHi2yxyXHwQ6v\u0026q=85\u0026s=711fa3bb6b312e888023b697db9112be","href":"/cloud/quickstart"},"favicon":"https://mintcdn.com/browseruse-0aece648/SCqllIu8ldiHkXMM/favicon.svg?fit=max\u0026auto=format\u0026n=SCqllIu8ldiHkXMM\u0026q=85\u0026s=f66b99bbb2c66df4700d1d1dedcb9f02","api":{"playground":{"display":"interactive"},"examples":{"languages":["javascript","curl","python"]}},"appearance":{"default":"dark"},"background":{"color":{"light":"#FFFFFF","dark":"#08090A"}},"navbar":{"links":[{"href":"https://github.com/browser-use/browser-use","label":"GitHub"},{"href":"https://link.browser-use.com/discord","label":"Discord"}],"primary":{"type":"button","label":"Dashboard","href":"https://cloud.browser-use.com"}},"footer":{"socials":{"x":"https://x.com/browser_use","github":"https://github.com/browser-use/browser-use","linkedin":"https://linkedin.com/company/browser-use"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":"css-variables"},"latex":true},"integrations":{"posthog":{"apiKey":"phc_F8JMNjW1i2KbGUTaW1unnDdLSPCoyc52SGRU0JecaUh","apiHost":"https://eu.i.posthog.com"}},"contextual":{"options":["copy","chatgpt","claude","mcp","add-mcp","cursor","vscode"],"display":"header"},"markdown":{"instructions":["Concurrency in one line: new projects get 10 concurrent browsers at $0; a $100 one-time top-up (non-expiring credits, no subscription) unlocks 50 concurrent, so 50 browsers for one hour cost $3 plus traffic; $1,000 / $5,000 / $25,000 total paid unlocks 250 / 500 / 1,000. Details below and at https://docs.browser-use.com/cloud/guides/concurrency.md.","Use https://docs.browser-use.com/llms.txt and its linked .md pages for current documentation. The managed full bundle is https://docs.browser-use.com/.well-known/llms-full.txt and can be cached for up to 24 hours. Do not use the obsolete /cloud/llms*.txt or /open-source/llms*.txt static exports.","Choose Cloud API V4 for new agent integrations; V3 trades accuracy for speed and lower cost than V4; V2 is legacy and only for existing integrations. Keep V3 examples explicitly versioned. The open-source browser-use library and hosted browser-use-sdk have different APIs.","For Cloud API V4 in the US, projects created on or after 16 November 2026 that omit model use BU 4.0 (bu-4.0); omitting modelParams applies High reasoning. In the US web app, users without a saved model choice start on BU 4.0; EU defaults are unchanged.","Older US projects keep GPT-6 Luna (gpt-6-luna) with High reasoning when model and modelParams are omitted. EU defaults are unchanged; Bedrock-only projects retain their compatible provider default. Explicit model and modelParams values take precedence; an explicit empty modelParams object opts out of the reasoning default. For latency-sensitive tasks set model to bu-ultrafast (bu-fast for more reasoning per step); these presets reject modelParams. See https://docs.browser-use.com/cloud/agent/ultrafast.md.","Cloud authentication uses X-Browser-Use-API-Key, without a Bearer prefix. Install or upgrade browser-use-sdk and use its explicit v4 import for V4. Check the published OpenAPI reference for request fields; do not invent SDK support for new fields.","Cloud concurrency and HTTP request rate are separate. Read GET /api/v2/billing/account for the key’s projectId, concurrentSessionLimit, activeSessionCount, and credit balance, including when using V4. Keys in one project share capacity and credits; rateLimit is a legacy concurrency alias, not requests per second.","Keep the highest applicable existing, legacy-plan, and spend-tier concurrency grant. Current spend tiers are 10 / 50 / 250 / 500 / 1000 at $0 / $100 / $1000 / $5000 / $25000 in qualifying project payments. Legacy or externally billed projects can follow different billing paths; trust the account limit. See https://docs.browser-use.com/cloud/guides/concurrency.md.","HTTP rate limits have two layers. Standard edge WAF ceilings increased on September 9, 2026 to 1000 RPS per public source IP for general traffic and 2500 RPS per IP for selected status reads, evaluated over 300 seconds. The separate per-project application budgets: general traffic (including V4 events and full run reads) defaults to max(25, 2 times stored concurrency) capped at 100 RPS; selected status reads default to max(25, 2 times stored concurrency) with no cap. The two are counted independently. Project overrides and account-specific edge rules can differ. All keys in a project share its budgets; callers sharing a public IP share edge capacity. See https://docs.browser-use.com/cloud/guides/concurrency.md.","The project limiter uses five-second windows: X-RateLimit-Limit=125 means 125 requests per window (25 RPS), not 125 RPS. Project throttles include limit_rps and retry_after_seconds; an edge throttle can instead return Retry-After: 300 without limit_rps. Honor the returned Retry-After. Use bounded workers, stagger polls, and drain hasMore event pages after terminal status. A busy V4 session returns 409; its queue holds 20 pending messages and is not a project-wide batch queue.","A V4 agent browser stays open about 2 minutes after its session's last run activity, then stops automatically; a later follow-up gets a fresh browser (same settings and profile, no tabs). Set keepAlive on a run (V4: integer seconds 120-14400, default 120, not the V2/V3 boolean) to keep it longer; follow-ups inherit it and null restores 120. Free-tier and ZDR runs always use 120. Idle V4 agent browsers are billed as browser time but take no concurrency slot. A follow-up that reuses the open browser emits browser.reattached instead of browser.ready. Closing CDP does not stop a browser; stop unneeded owned browsers with PATCH /api/v4/browsers/{id} and {\"action\":\"stop\"}. A client wait timeout does not cancel the server-side run.","Cloud is pay as you go; custom proxies are an enterprise feature enabled by sales (sales@browser-use.com), not by a subscription; do not tell customers to buy a new subscription to use custom proxies or supported provider BYOK. Usage funding and model eligibility still apply. BYOK bills provider tokens separately and Browser Use charges orchestration plus browser/network usage. See https://docs.browser-use.com/cloud/guides/billing.md.","Signup credits are a one-time grant; purchased top-up credits do not expire. Check the API key’s project before diagnosing missing credits. API-key monthly spending caps are soft limits, not a strict prepaid wallet; concurrent or already-running work can exceed them. Auto recharge has separate trigger and purchase amounts and can charge immediately when enabled below the threshold. Use https://browser-use.com/pricing for current rates.","Box and Bux are retired. Do not recommend their SDKs, sandbox quotas, or subscription plans. Use the Cloud Agent or Browser Infrastructure guides.","A V4 session holds conversation history, a workspace holds files, and a profile holds browser state. These IDs and V3/V4 workspace namespaces are not interchangeable. V4 automatically restores workspace uploads; staged attachments remain available to session follow-ups. Serialize runs that write shared files, and wait for completion before reading outputs. See https://docs.browser-use.com/cloud/agent/workspaces.md.","API browser recording defaults to off. Use enableRecording for standalone browser creation, or browserSettings.record for an agent run. Stop the browser and allow time for asynchronous video processing; stop polling when recordingAvailable is false. Live preview is for an active browser. Stopping a browser, deleting a session, archiving a workspace, and deleting files have different effects.","BU 4.0 Mini (bu-4.0-mini) is fast and low cost; BU 4.0 (bu-4.0) offers the best balance; BU 4.0 Pro (bu-4.0-pro) is most capable. Provider: Browser Use. They accept only modelParams.reasoning.effort: low, medium, high, xhigh (default high), with standard processing only and no fast/priority tiers. They always use Browser Use's platform route, never a project's own provider keys. Mini is available in the US and EU; BU 4.0 and Pro are US-only for now. BU 4.0 and Mini are available on the free plan; Pro needs credits. IDs stay pinned, with no silent upgrades; future generations use bu-5.0, bu-5.0-pro, bu-5.0-mini.","Use model-specific reasoning values. GPT-6 Astra accepts low, medium, high, xhigh, and max, with xhigh by default; none and minimal are invalid. Use the public REST schema when installed SDK types lag new fields. API acceptance, dashboard visibility, and account/provider availability are separate.","For open-source browser-use 1.0, result.is_done() means the run completed (status completed); result.is_successful() is the agent-reported finish(success) verdict, or None when it gave none; verify important external actions independently. Cloud timeout, API client timeout, model timeout, and task completion are separate concepts.","Pages under /open-source/legacy/0.x/ document browser-use 0.x (pip install 'browser-use\u003c1'). For new open-source code, use the 1.0 pages under /open-source/ outside legacy/.","For failed requests, use https://docs.browser-use.com/cloud/guides/troubleshooting.md. Inspect the full error and project before retrying or adding credits. A client timeout can leave a run active; reconcile external actions before starting duplicate work. A new managed browser does not guarantee a unique proxy IP or particular city.","V4 secretBindings.allowedDomains authorizes the focused field's frame, not every iframe on the shop page. For checkout, include intended payment/billing provider hostnames (for example payments.bigcommerce.com). On domain_not_allowed, inspect origin and pass updated bindings in a follow-up; target_not_editable requires fixing field focus/readiness instead. See https://docs.browser-use.com/cloud/guides/secrets.md.","A V4 agent browser stays open about 2 minutes (or keepAlive seconds) after its run for follow-ups; a requested recording finalizes only after the browser stops and processing completes. Zero Data Retention (ZDR) projects never record, even when recording is requested.","If you hit an issue you cannot explain, email contact@browser-use.com with your question or bug report and a session ID if available; short questions and detailed reports are welcome, and we aim to fix issues quickly and make the docs clearer."]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"browseruse-0aece648","hasAudioNarration":false,"actualSubdomain":"browseruse-0aece648","customDomains":["docs.browser-use.com"],"gitSource":{"type":"github","owner":"browser-use","repo":"sdk","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":false,"thumbs":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afbd934e205d3711005689c","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"Cloud","count":190},{"language":"default","tag":"Endpoints","count":130},{"language":"default","tag":"API v4","count":59},{"language":"default","tag":"Cloud SDK","count":54},{"language":"default","tag":"API v2","count":44},{"language":"default","tag":"API v3","count":33},{"language":"default","tag":"Sessions","count":31},{"language":"default","tag":"More","count":26},{"language":"default","tag":"Open Source","count":26},{"language":"default","tag":"Pillars","count":25}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n:root{--gray-50: 247 248 248;--gray-100: 240 241 243;--gray-200: 227 229 232;--gray-300: 208 214 224;--gray-400: 138 143 152;--gray-500: 107 111 118;--gray-600: 74 77 83;--gray-700: 52 54 59;--gray-800: 35 37 42;--gray-900: 24 25 27;--gray-950: 15 16 17;--bu-accent: #fe750e;--bu-fg: #0f1011;--bu-text: #3c4149;--bu-muted: #6b6f76;--bu-border: rgba(15, 16, 17, 0.09);--bu-border-strong: rgba(15, 16, 17, 0.18);--bu-surface: #f8f9fa;--bu-hover: rgba(15, 16, 17, 0.045);--bu-sans: \"Inter\", ui-sans-serif, system-ui, -apple-system, sans-serif;--bu-mono: \"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--mint-background: transparent;--mint-foreground: #0f1011;--mint-token-keyword: #5b6068;--mint-token-function: #0f1011;--mint-token-constant: #0f1011;--mint-token-parameter: #3c4149;--mint-token-punctuation: #6b6f76;--mint-token-comment: #6e737b;--mint-token-string: #b93d0a;--mint-token-string-expression: #b93d0a;--mint-token-link: #b93d0a}html.dark{--bu-fg: #f7f8f8;--bu-text: #d0d6e0;--bu-muted: #8a8f98;--bu-border: rgba(255, 255, 255, 0.08);--bu-border-strong: rgba(255, 255, 255, 0.16);--bu-surface: #0f1011;--bu-hover: rgba(255, 255, 255, 0.055);--mint-foreground: #f7f8f8;--mint-token-keyword: #8a8f98;--mint-token-function: #ffffff;--mint-token-constant: #e6e8ea;--mint-token-parameter: #d0d6e0;--mint-token-punctuation: #8a8f98;--mint-token-comment: #7c818a;--mint-token-string: #ff9a52;--mint-token-string-expression: #ff9a52;--mint-token-link: #ff9a52}:is(pre,code)[language=\"shellscript\"],:is(pre,code)[language=\"bash\"],:is(pre,code)[language=\"sh\"],:is(pre,code)[language=\"shell\"],:is(pre,code)[language=\"zsh\"]{--mint-token-string: var(--mint-token-parameter)}html{--sidebar-width: 18rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}body{font-family:var(--bu-sans);font-feature-settings:\"cv01\", \"ss03\"}::selection{background:rgba(254, 117, 14, 0.28)}#page-title{color:var(--bu-fg);font-size:2rem;line-height:1.2;font-weight:590;letter-spacing:-0.02em}#header .breadcrumb-item,#header .breadcrumb-item a,#header .eyebrow{color:var(--bu-muted)!important;font-size:13px;font-weight:450;letter-spacing:0;text-transform:none}#header .breadcrumb-item a:hover{color:var(--bu-fg)!important}@media (max-width: 1023px){#header nav[aria-label=\"Breadcrumb\"],#header .eyebrow{display:none}}#header .prose{color:var(--bu-muted);font-size:1rem;line-height:1.6}.mdx-content{color:var(--bu-text);font-size:15px;line-height:1.6}.mdx-content :is(p,[data-as=\"p\"],li){font-size:15px;line-height:1.6}.mdx-content :is(h1,h2,h3,h4,strong,th){color:var(--bu-fg)}.mdx-content h2{font-size:1.375rem;line-height:1.3;font-weight:590;letter-spacing:-0.012em}.mdx-content h3{font-size:1.0625rem;line-height:1.4;font-weight:590;letter-spacing:-0.006em}.mdx-content h4{font-size:15px;font-weight:590}.mdx-content strong{font-weight:590}.mdx-content a:not(.card):not([class*=\"card\"]):not(.not-prose a){color:var(--bu-fg);font-weight:inherit;border-bottom:0;text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--bu-border-strong);transition:color 120ms ease, text-decoration-color 120ms ease}.mdx-content a:not(.card):not([class*=\"card\"]):not(.not-prose a):hover{color:var(--bu-accent);text-decoration-color:var(--bu-accent)}.mdx-content :not(pre)>code{font-family:var(--bu-mono);font-size:0.86em;font-weight:450;color:var(--bu-fg);background:var(--bu-hover);border:0;border-radius:4px;padding:0.12em 0.32em;word-break:normal;overflow-wrap:normal}.mdx-content :not(pre)>code::before,.mdx-content :not(pre)>code::after{content:none}.mdx-content :is(ul,ol)>li::marker{color:var(--bu-muted)}.code-block,.code-group{border-radius:8px!important;border:1px solid var(--bu-border)!important;background:var(--bu-surface)!important;--tw-ring-color: transparent !important;box-shadow:none!important;padding:0!important}.code-group .code-block{border:0!important;background:transparent!important}.codeblock-dark :is(.text-gray-50,.text-white,.text-gray-300){color:var(--bu-fg)!important}[data-component-part=\"code-block-root\"]{border-radius:0 0 8px 8px!important;background:transparent!important}.code-block>[data-component-part=\"code-block-root\"]{border-radius:8px!important}.code-block pre,.code-block code,.code-group pre,.code-group code{font-family:var(--bu-mono)!important;font-size:13px!important;line-height:22px!important}@media (max-width: 639px){.code-block pre,.code-block code,.code-group pre,.code-group code{font-size:12px!important;line-height:20px!important}}.code-block-fade-overlay{--fade-color-light: #f8f9fa !important;--fade-color-dark: #0f1011 !important}[data-component-part=\"code-group-tab-bar\"]{border-bottom:1px solid var(--bu-border);background:transparent;min-height:40px}[data-component-part=\"code-group-tab-bar\"] [role=\"tab\"]{color:var(--bu-muted)!important;font-size:13px;font-weight:500;margin-top:0!important;margin-bottom:0!important}[data-component-part=\"code-group-tab-bar\"] [role=\"tab\"]:hover,[data-component-part=\"code-group-tab-bar\"] [role=\"tab\"][aria-selected=\"true\"]{color:var(--bu-fg)!important}[data-component-part=\"code-group-tab-bar\"] [role=\"tab\"]>div.absolute{background-color:var(--bu-fg)!important;height:1px;bottom:-5px}[data-component-part=\"code-group-tab-bar\"] [role=\"tab\"]>div:first-child{background:transparent!important;color:inherit!important}#ask-assistant-code-block-button,[data-floating-buttons] [aria-label*=\"ssistant\"]{display:none!important}.code-block-copy-button button,[data-testid=\"copy-code-button\"]{background:transparent!important}.code-block-copy-button svg,[data-testid=\"copy-code-button\"] svg{color:var(--bu-muted)!important}.code-block-copy-button button:hover svg,[data-testid=\"copy-code-button\"]:hover svg{color:var(--bu-fg)!important}.card{border-radius:10px!important;border:1px solid var(--bu-border)!important;background:transparent!important;transition:border-color 150ms ease, background-color 150ms ease}.card:hover{border-color:var(--bu-border-strong)!important;background:var(--bu-surface)!important}[data-component-part=\"card-icon\"]{color:var(--bu-muted)!important}[data-component-part=\"card-icon\"] svg{background-color:var(--bu-muted)!important;width:20px!important;height:20px!important}.card:hover [data-component-part=\"card-icon\"] svg{background-color:var(--bu-fg)!important}[data-component-part=\"card-title\"]{color:var(--bu-fg)!important;font-weight:590!important;letter-spacing:-0.006em;font-size:15px!important}[data-component-part=\"card-content\"]{color:var(--bu-muted)!important;font-size:14px!important;line-height:1.55!important}.callout{border-radius:8px!important;border:1px solid var(--bu-border)!important;background:var(--bu-surface)!important;padding:14px 16px!important}.callout [data-component-part=\"callout-content\"]{color:var(--bu-text)!important;font-size:14px;line-height:1.6}.callout [data-component-part=\"callout-content\"] :is(strong,code,a){color:var(--bu-fg)!important}.callout[data-callout-type=\"warning\"] [data-component-part=\"callout-icon\"]{color:#f5a524}.callout[data-callout-type=\"danger\"] [data-component-part=\"callout-icon\"]{color:#f04438}.callout[data-callout-type=\"tip\"] [data-component-part=\"callout-icon\"],.callout[data-callout-type=\"check\"] [data-component-part=\"callout-icon\"]{color:#3ecf8e}.callout:is([data-callout-type=\"note\"],[data-callout-type=\"info\"]) [data-component-part=\"callout-icon\"]{color:var(--bu-muted)}.mdx-content table{font-size:14px;line-height:1.55;border-collapse:collapse}.mdx-content th{font-size:13px;font-weight:510;color:var(--bu-muted)!important;border-bottom:1px solid var(--bu-border-strong)!important;white-space:nowrap}.mdx-content td{border-bottom:1px solid var(--bu-border)!important;vertical-align:top}.mdx-content td code{white-space:nowrap}.mdx-content td[data-numeric]{font-variant-numeric:tabular-nums;white-space:nowrap}.mdx-content table td{min-width:0}.mdx-content table :is(th,td):not(:first-child){padding-left:12px}.mdx-content [data-component-part=\"scroll-area-viewport\"]:has(table){-webkit-mask-image:linear-gradient(to right, #000 calc(100% - min(var(--scroll-area-overflow-x-end, 0px), 48px)), transparent);mask-image:linear-gradient(to right, #000 calc(100% - min(var(--scroll-area-overflow-x-end, 0px), 48px)), transparent)}:is(#sidebar-content,#mobile-nav) li>:is(a,button)>div:first-child>svg[style*=\"mask\"]{background-color:var(--bu-muted)!important;transition:background-color 120ms ease}:is(#sidebar-content,#mobile-nav) li>:is(a,button):hover>div:first-child>svg[style*=\"mask\"],:is(#sidebar-content,#mobile-nav) li[data-active]>a>div:first-child>svg[style*=\"mask\"],:is(#sidebar-content,#mobile-nav) a[aria-current=\"page\"]>div:first-child>svg[style*=\"mask\"]{background-color:var(--bu-fg)!important}#sidebar-content [data-component-part=\"scroll-area-viewport\"]{padding-right:12px}#sidebar-content li>a{padding-right:8px}#sidebar-content li>:is(a,button){column-gap:10px}#sidebar-content .sidebar-group-header{color:var(--bu-muted)!important;font-size:12px;font-weight:510;letter-spacing:0;text-transform:none}#sidebar-content li>a,#sidebar-content li>button{color:var(--bu-muted);font-size:14px;border-radius:6px;text-shadow:none!important}#sidebar-content li>a:hover,#sidebar-content li>button:hover{color:var(--bu-fg)!important;background:var(--bu-hover)}#sidebar-content li[data-active]>a,#sidebar-content a[aria-current=\"page\"]{position:relative;color:var(--bu-fg)!important;background:var(--bu-hover)!important;font-weight:510}#sidebar-content a[aria-current=\"page\"]::before{content:\"\";position:absolute;left:0;top:50%;width:2px;height:14px;transform:translateY(-50%);border-radius:2px;background:var(--bu-accent)}#sidebar-content .method-nav-pill span{background:transparent!important;color:var(--bu-muted)!important;font-family:var(--bu-mono);font-weight:500}#table-of-contents .relative>span.rounded-full{display:none}#table-of-contents .toc{border-left:1px solid var(--bu-border)}.toc-item a{color:var(--bu-muted)!important;font-size:13px;text-shadow:none!important}.toc-item a:hover{color:var(--bu-fg)!important}.toc-item[data-active]>a{color:var(--bu-fg)!important}.toc-item[data-active-deepest=\"true\"]::before{content:\"\";position:absolute;left:-1px;top:4px;bottom:4px;width:2px;border-radius:2px;background:var(--bu-fg)}#navbar .navbar-link a{border:0!important;background:transparent!important;color:var(--bu-muted)!important;padding:0 10px!important}#navbar .navbar-link a:hover{color:var(--bu-fg)!important}#navbar a[href].link,#search-bar-entry,#theme-preference-menu-trigger{border-radius:8px!important}#navbar a.link{height:32px!important;padding:0 12px!important}#topbar-cta-button a{background:var(--bu-accent)!important;border-radius:8px!important;height:32px!important;opacity:1!important}#topbar-cta-button a:hover{background:#ff8a33!important}#topbar-cta-button a span,#topbar-cta-button a svg{color:#0a0a0a!important;font-weight:500}#header #page-context-menu.ml-auto{align-self:flex-start;margin-top:4px}#page-context-menu button{border-radius:8px;border-color:var(--bu-border)!important}#page-context-menu-button{border-radius:8px 0 0 8px!important}#page-context-menu>button:last-child{border-radius:0 8px 8px 0!important}.chat-assistant-floating-input{display:none!important}#pagination a{border-radius:8px;border-color:var(--bu-border)!important}#pagination a:hover{border-color:var(--bu-border-strong)!important}th{text-align:left}.method-pill{background:var(--bu-hover)!important;color:var(--bu-fg)!important;font-family:var(--bu-mono);font-weight:500!important}.tryit-button{background:var(--bu-fg)!important;color:var(--bu-surface)!important;border-radius:8px!important}.tryit-button svg{background-color:var(--bu-surface)!important}.method-badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:600;font-family:var(--bu-mono);letter-spacing:0.02em;line-height:1.5}.method-get{background-color:rgba(34, 197, 94, 0.12);color:#16a34a}.dark .method-get{background-color:rgba(34, 197, 94, 0.15);color:#4ade80}.method-post{background-color:rgba(59, 130, 246, 0.12);color:#2563eb}.dark .method-post{background-color:rgba(59, 130, 246, 0.15);color:#60a5fa}.method-patch{background-color:rgba(234, 179, 8, 0.12);color:#ca8a04}.dark .method-patch{background-color:rgba(234, 179, 8, 0.15);color:#facc15}.method-delete{background-color:rgba(239, 68, 68, 0.12);color:#dc2626}.dark .method-delete{background-color:rgba(239, 68, 68, 0.15);color:#f87171}[data-radix-popper-content-wrapper] *{outline:none;--tw-ring-color: transparent;--tw-ring-offset-color: transparent;--tw-ring-shadow: 0 0 #0000;--tw-ring-offset-shadow: 0 0 #0000;border-color:transparent;box-shadow:none}[data-radix-popper-content-wrapper] [data-highlighted]{outline:none;border-color:transparent;box-shadow:none}"}],"page":{"pagePath":"cloud/api-v3/sessions/create-session","slug":"/cloud/api-v3/sessions/create-session","pageMetadata":{"title":"Create Session","description":"Create a session and/or dispatch a task.\n\n- Without session_id, without task: creates a new idle session (e.g. for file uploads).\n- Without session_id, with task: creates a new session and dispatches the task.\n- With session_id, with task: dispatches the task to an existing idle session.\n- With session_id, without task: 422 — task is required when targeting an existing session.\n\nIf keep_alive is false (default), the session auto-stops when the task finishes.\nIf keep_alive is true, the session stays idle after the task, ready for follow-ups.","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json post /sessions","href":"/cloud/api-v3/sessions/create-session","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n li: \"li\",\n p: \"p\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a session and/or dispatch a task.\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Without session_id, without task: creates a new idle session (e.g. for file uploads).\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Without session_id, with task: creates a new session and dispatches the task.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"With session_id, with task: dispatches the task to an existing idle session.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"With session_id, without task: 422 — task is required when targeting an existing session.\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"If keep_alive is false (default), the session auto-stops when the task finishes.\\nIf keep_alive is true, the session stays idle after the task, ready for follow-ups.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":"css-variables"},"config":{},"pageMetadata":{"title":"Create Session","description":"Create a session and/or dispatch a task.\n\n- Without session_id, without task: creates a new idle session (e.g. for file uploads).\n- Without session_id, with task: creates a new session and dispatches the task.\n- With session_id, with task: dispatches the task to an existing idle session.\n- With session_id, without task: 422 — task is required when targeting an existing session.\n\nIf keep_alive is false (default), the session auto-stops when the task finishes.\nIf keep_alive is true, the session stays idle after the task, ready for follow-ups.","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json post /sessions","href":"/cloud/api-v3/sessions/create-session","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Sessions"],"summary":"Create Session","description":"Create a session and/or dispatch a task.\n\n- Without session_id, without task: creates a new idle session (e.g. for file uploads).\n- Without session_id, with task: creates a new session and dispatches the task.\n- With session_id, with task: dispatches the task to an existing idle session.\n- With session_id, without task: 422 — task is required when targeting an existing session.\n\nIf keep_alive is false (default), the session auto-stops when the task finishes.\nIf keep_alive is true, the session stays idle after the task, ready for follow-ups.","operationId":"create_session_sessions_post","security":["27b0e82e-e0d2-487c-b4d3-e78bacb08f11"],"requestBody":"8f1c6243-54cc-4b25-8eee-78cf4f0dd503","responses":{"200":"af06f587-25cb-40d5-92fc-77ccb5e52bd7","422":"6a68b8cc-9ab6-438c-a24c-7f732ea29fbf"},"method":"post","type":"path","servers":["eb14bc10-b430-4435-b8b0-7e4c7f459b08"],"path":"/sessions","baseUrlOptions":["https://api.browser-use.com/api/v3"],"title":"Create Session","codeSamples":[],"requestExampleLanguages":["javascript","bash","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"task":{"oneOf":[{"type":"string","title":"Task","description":"The natural-language instruction for the agent to execute (e.g. \"Go to amazon.com and find the best-rated wireless mouse under $50\"). Required when dispatching to an existing session.","uniqueKey":"task.oneOf.0","typeLabel":"string"},{"type":"null","title":"Task","description":"The natural-language instruction for the agent to execute (e.g. \"Go to amazon.com and find the best-rated wireless mouse under $50\"). Required when dispatching to an existing session.","uniqueKey":"task.oneOf.1","typeLabel":"null"}],"uniqueKey":"task","typeLabel":"string | null"},"model":{"type":"string","enum":["bu-mini","bu-max","bu-ultra","gemini-3-flash","claude-opus-4.6","claude-opus-4.7","claude-sonnet-5","claude-opus-4.8","gpt-5.4-mini","glm-5.2","minimax-m3","grok-4.6","glm-5.3-flash","deepseek-v4-flash-vision","claude-haiku-4.5","gpt-5.2","gpt-5-mini","gpt-5.5","gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna","gemini-3-pro","gemini-3.1-pro","gemini-3.5-flash"],"title":"BuModel","description":"The model to use. \"gemini-3-flash\" is fast and cheap, \"claude-sonnet-5\" is balanced, \"claude-opus-4.7\" is most capable (default), and \"claude-opus-4.8\" is the newest Opus-tier model. GPT-5.6 models are Browser Use native models when either direct OpenAI or Amazon Bedrock routing is configured; otherwise they require use_own_key=true. GPT-5.5 becomes native when Bedrock routing is enabled; otherwise it requires use_own_key=true. Other additional provider models (e.g. \"gemini-3.5-flash\" and \"gpt-5.2\") require use_own_key=true. See BuModel for details.","default":"claude-opus-4.7","uniqueKey":"model","typeLabel":"enum\u003cstring>"},"thinkingLevel":{"oneOf":[{"type":"string","title":"ThinkingLevel","description":"Optional model reasoning depth. Omit this field to preserve the model provider default. Supported values depend on the selected model: most supported Claude models and GPT-5.1+ models support disabled/low/medium/high; Gemini Flash models support all four (disabled maps to Gemini's minimal level); Claude Fable 5, earlier GPT-5 models, Gemini 2.5 Pro, o3/o4, and Grok support low/medium/high; Gemini 3.1 Pro supports low/high; GLM supports disabled/high. Unsupported model/level combinations are rejected.","enum":["disabled","low","medium","high"],"uniqueKey":"thinkingLevel.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Optional model reasoning depth. Omit this field to preserve the model provider default. Supported values depend on the selected model: most supported Claude models and GPT-5.1+ models support disabled/low/medium/high; Gemini Flash models support all four (disabled maps to Gemini's minimal level); Claude Fable 5, earlier GPT-5 models, Gemini 2.5 Pro, o3/o4, and Grok support low/medium/high; Gemini 3.1 Pro supports low/high; GLM supports disabled/high. Unsupported model/level combinations are rejected.","uniqueKey":"thinkingLevel.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinkingLevel","typeLabel":"enum\u003cstring> | null"},"sessionId":{"oneOf":[{"type":"string","title":"Sessionid","description":"ID of an existing idle session to dispatch the task to. If omitted, a new session is created.","format":"uuid","uniqueKey":"sessionId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","title":"Sessionid","description":"ID of an existing idle session to dispatch the task to. If omitted, a new session is created.","uniqueKey":"sessionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"sessionId","typeLabel":"string\u003cuuid> | null"},"keepAlive":{"type":"boolean","title":"Keepalive","description":"If true, the session stays alive in idle state after the task completes instead of automatically stopping. This lets you dispatch follow-up tasks to the same session, preserving browser state and files.","default":false,"uniqueKey":"keepAlive","typeLabel":"boolean"},"maxCostUsd":{"oneOf":[{"type":"number","title":"Maxcostusd","description":"Maximum total cost in USD allowed for this session. The task will be stopped if this limit is reached. If omitted, a default limit applies (capped by your available balance). When dispatching a follow-up task to an existing session (`sessionId` is set), supplying this value overrides the session's budget for the upcoming dispatch; otherwise the budget is automatically refreshed to current spend + default.","uniqueKey":"maxCostUsd.oneOf.0","typeLabel":"number"},{"type":"string","title":"Maxcostusd","description":"Maximum total cost in USD allowed for this session. The task will be stopped if this limit is reached. If omitted, a default limit applies (capped by your available balance). When dispatching a follow-up task to an existing session (`sessionId` is set), supplying this value overrides the session's budget for the upcoming dispatch; otherwise the budget is automatically refreshed to current spend + default.","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","uniqueKey":"maxCostUsd.oneOf.1","typeLabel":"string"},{"type":"null","title":"Maxcostusd","description":"Maximum total cost in USD allowed for this session. The task will be stopped if this limit is reached. If omitted, a default limit applies (capped by your available balance). When dispatching a follow-up task to an existing session (`sessionId` is set), supplying this value overrides the session's budget for the upcoming dispatch; otherwise the budget is automatically refreshed to current spend + default.","uniqueKey":"maxCostUsd.oneOf.2","typeLabel":"null"}],"uniqueKey":"maxCostUsd","typeLabel":"number | string | null"},"profileId":{"oneOf":[{"type":"string","title":"Profileid","description":"ID of a browser profile to load into the session. Profiles persist cookies, local storage, and other browser state across sessions. Create profiles via the Profiles API.","format":"uuid","uniqueKey":"profileId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","title":"Profileid","description":"ID of a browser profile to load into the session. Profiles persist cookies, local storage, and other browser state across sessions. Create profiles via the Profiles API.","uniqueKey":"profileId.oneOf.1","typeLabel":"null"}],"uniqueKey":"profileId","typeLabel":"string\u003cuuid> | null"},"workspaceId":{"oneOf":[{"type":"string","title":"Workspaceid","description":"ID of a workspace to attach to the session. Workspaces provide persistent file storage that carries across sessions. Create workspaces via the Workspaces API.","format":"uuid","uniqueKey":"workspaceId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","title":"Workspaceid","description":"ID of a workspace to attach to the session. Workspaces provide persistent file storage that carries across sessions. Create workspaces via the Workspaces API.","uniqueKey":"workspaceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"workspaceId","typeLabel":"string\u003cuuid> | null"},"proxyCountryCode":{"oneOf":[{"type":"string","title":"ProxyCountryCode","description":"Country code for the browser proxy (e.g. \"US\", \"DE\", \"JP\"). Set to null to disable the proxy. The proxy routes browser traffic through the specified country, useful for accessing geo-restricted content.","default":"us","enum":["ad","ae","af","ag","ai","al","am","an","ao","aq","ar","as","at","au","aw","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bl","bm","bn","bo","bq","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","co","cr","cs","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","fi","fj","fk","fm","fo","fr","ga","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mf","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tr","tt","tv","tw","tz","ua","ug","uk","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","xk","ye","yt","za","zm","zw"],"uniqueKey":"proxyCountryCode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Country code for the browser proxy (e.g. \"US\", \"DE\", \"JP\"). Set to null to disable the proxy. The proxy routes browser traffic through the specified country, useful for accessing geo-restricted content.","default":"us","uniqueKey":"proxyCountryCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"proxyCountryCode","typeLabel":"enum\u003cstring> | null"},"browserScreenWidth":{"oneOf":[{"type":"integer","title":"Browserscreenwidth","description":"Custom browser screen width in pixels. Must be set together with browserScreenHeight. When omitted, the browser keeps its own default resolution.","maximum":6144,"minimum":320,"uniqueKey":"browserScreenWidth.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Browserscreenwidth","description":"Custom browser screen width in pixels. Must be set together with browserScreenHeight. When omitted, the browser keeps its own default resolution.","uniqueKey":"browserScreenWidth.oneOf.1","typeLabel":"null"}],"uniqueKey":"browserScreenWidth","typeLabel":"integer | null"},"browserScreenHeight":{"oneOf":[{"type":"integer","title":"Browserscreenheight","description":"Custom browser screen height in pixels. Must be set together with browserScreenWidth. When omitted, the browser keeps its own default resolution.","maximum":3456,"minimum":320,"uniqueKey":"browserScreenHeight.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Browserscreenheight","description":"Custom browser screen height in pixels. Must be set together with browserScreenWidth. When omitted, the browser keeps its own default resolution.","uniqueKey":"browserScreenHeight.oneOf.1","typeLabel":"null"}],"uniqueKey":"browserScreenHeight","typeLabel":"integer | null"},"outputSchema":{"oneOf":[{"type":"object","title":"Outputschema","description":"A JSON Schema that the agent's final output must conform to. When set, the agent will return structured data matching this schema in the `output` field of the response. Example: {\"type\": \"object\", \"properties\": {\"price\": {\"type\": \"number\"}, \"title\": {\"type\": \"string\"}}}.","additionalProperties":true,"uniqueKey":"outputSchema.oneOf.0","typeLabel":"Outputschema · object"},{"type":"null","title":"Outputschema","description":"A JSON Schema that the agent's final output must conform to. When set, the agent will return structured data matching this schema in the `output` field of the response. Example: {\"type\": \"object\", \"properties\": {\"price\": {\"type\": \"number\"}, \"title\": {\"type\": \"string\"}}}.","uniqueKey":"outputSchema.oneOf.1","typeLabel":"null"}],"uniqueKey":"outputSchema","typeLabel":"Outputschema · object | null"},"enableScheduledTasks":{"type":"boolean","title":"Enablescheduledtasks","description":"If true, the agent can create scheduled tasks that run on a recurring basis (e.g. \"every Monday morning, check my inbox and summarize new emails\"). Scheduled tasks are tied to your project and persist beyond the session. Note: all scheduled tasks are visible project-wide, so avoid enabling this in multi-user setups where task isolation is needed.","default":false,"uniqueKey":"enableScheduledTasks","typeLabel":"boolean"},"sensitiveData":{"oneOf":[{"type":"object","title":"Sensitivedata","description":"Key-value pairs of sensitive data (e.g. passwords, API keys) that the agent can use via secure placeholders. Keys are exposed to the LLM; values are never shown. The agent uses `\u003csecret>key\u003c/secret>` placeholders in browser_type_text to securely enter values.","additionalProperties":{"type":"string","uniqueKey":"sensitiveData.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"sensitiveData.oneOf.0","typeLabel":"Sensitivedata · object"},{"type":"null","title":"Sensitivedata","description":"Key-value pairs of sensitive data (e.g. passwords, API keys) that the agent can use via secure placeholders. Keys are exposed to the LLM; values are never shown. The agent uses `\u003csecret>key\u003c/secret>` placeholders in browser_type_text to securely enter values.","uniqueKey":"sensitiveData.oneOf.1","typeLabel":"null"}],"uniqueKey":"sensitiveData","typeLabel":"Sensitivedata · object | null"},"enableRecording":{"type":"boolean","title":"Enablerecording","description":"If true, records a video of the browser session. The recording URLs will be available in the `recordingUrls` field of the session response after the task completes.","default":false,"uniqueKey":"enableRecording","typeLabel":"boolean"},"skills":{"type":"boolean","title":"Skills","description":"If true, the agent generates and persists reusable skills from completed tasks (saved per-domain in the DB and auto-injected into future runs). Set to false to skip skill generation — useful for privacy-sensitive tasks or to avoid the extra LLM cost.","default":true,"uniqueKey":"skills","typeLabel":"boolean"},"agentmail":{"type":"boolean","title":"Agentmail","description":"If true, provisions a temporary email inbox (via AgentMail) for the session. The email address is available in the `agentmailEmail` field of the session response. Useful for tasks that require email verification or sign-ups.","default":true,"uniqueKey":"agentmail","typeLabel":"boolean"},"codeMode":{"type":"boolean","title":"Codemode","description":"When true, the agent returns structured output with `text` (summary) and `code` (validated Python source) fields instead of free-form text.","default":false,"uniqueKey":"codeMode","typeLabel":"boolean"},"cacheScript":{"oneOf":[{"type":"boolean","title":"Cachescript","description":"Controls deterministic script caching. `null` (default): auto-detected — enabled when the task contains `@{{value}}` brackets and a workspace is attached. `true`: force-enable script caching even without brackets (caches the exact task). `false`: force-disable, even if brackets are present. When active, the first call runs the full agent and saves a reusable script. Subsequent calls with the same task template execute the cached script with $0 LLM cost. Requires workspace_id when enabled. Example: \"Get prices from @{{https://example.com}} for @{{electronics}}\".","uniqueKey":"cacheScript.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Cachescript","description":"Controls deterministic script caching. `null` (default): auto-detected — enabled when the task contains `@{{value}}` brackets and a workspace is attached. `true`: force-enable script caching even without brackets (caches the exact task). `false`: force-disable, even if brackets are present. When active, the first call runs the full agent and saves a reusable script. Subsequent calls with the same task template execute the cached script with $0 LLM cost. Requires workspace_id when enabled. Example: \"Get prices from @{{https://example.com}} for @{{electronics}}\".","uniqueKey":"cacheScript.oneOf.1","typeLabel":"null"}],"uniqueKey":"cacheScript","typeLabel":"boolean | null"},"useOwnKey":{"type":"boolean","title":"Useownkey","description":"If true, uses your own LLM API key (configured in project settings) instead of Browser Use managed keys. You pay your provider directly for inference; Browser Use charges a reduced orchestration fee (0.2× of provider list prices). If no key is configured for the model's provider, the request is rejected.","default":false,"uniqueKey":"useOwnKey","typeLabel":"boolean"},"autoHeal":{"type":"boolean","title":"Autoheal","description":"When cache_script is active, controls whether a lightweight LLM validates the cached script output. If the output looks incorrect (empty, error, wrong structure), the system automatically re-triggers the full agent to generate a new version of the script. Set to false to disable validation and always return the raw script output.","default":true,"uniqueKey":"autoHeal","typeLabel":"boolean"}},"type":"object","title":"RunTaskRequest","description":"Create a new session, dispatch a task, or both.\n\n- **No `sessionId` + no `task`**: creates an idle session (useful for uploading files before running a task).\n- **No `sessionId` + `task`**: creates a new session and immediately runs the task.\n- **`sessionId` + `task`**: dispatches the task to an existing idle session.\n- **`sessionId` + no `task`**: returns 422 — a task is required when targeting an existing session.","uniqueKey":"","typeLabel":"RunTaskRequest · object"},"examples":{"Example":{"title":"Example","value":{"task":"\u003cstring>","model":"claude-opus-4.7","sessionId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","keepAlive":false,"maxCostUsd":123,"profileId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","workspaceId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","proxyCountryCode":"us","browserScreenWidth":3232,"browserScreenHeight":1888,"outputSchema":{},"enableScheduledTasks":false,"sensitiveData":{},"enableRecording":false,"skills":true,"agentmail":true,"codeMode":false,"cacheScript":true,"useOwnKey":false,"autoHeal":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"af06f587-25cb-40d5-92fc-77ccb5e52bd7":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Unique session identifier.","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","enum":["created","idle","running","stopped","timed_out","error"],"title":"BuAgentSessionStatus","description":"Current session lifecycle status. Progresses through: `created` (sandbox starting) → `idle` (ready, waiting for task) → `running` (task executing) → `stopped` / `timed_out` / `error`. Poll this field to track progress.","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"model":{"type":"string","enum":["bu-mini","bu-max","bu-ultra","gemini-3-flash","claude-opus-4.6","claude-opus-4.7","claude-sonnet-5","claude-opus-4.8","gpt-5.4-mini","glm-5.2","minimax-m3","grok-4.6","glm-5.3-flash","deepseek-v4-flash-vision","claude-haiku-4.5","gpt-5.2","gpt-5-mini","gpt-5.5","gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna","gemini-3-pro","gemini-3.1-pro","gemini-3.5-flash"],"title":"BuModel","description":"The model tier used for this session.","isRequired":true,"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"createdAt":{"type":"string","format":"date-time","title":"Createdat","description":"When the session was created.","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat","description":"When the session was last updated.","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"thinkingLevel":{"oneOf":[{"type":"string","title":"ThinkingLevel","description":"Configured model reasoning depth for this session, or null when provider defaults are used.","enum":["disabled","low","medium","high"],"uniqueKey":"thinkingLevel.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Configured model reasoning depth for this session, or null when provider defaults are used.","uniqueKey":"thinkingLevel.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinkingLevel","typeLabel":"enum\u003cstring> | null"},"title":{"oneOf":[{"type":"string","title":"Title","description":"Auto-generated short title summarizing the task. Available after the task starts running.","uniqueKey":"title.oneOf.0","typeLabel":"string"},{"type":"null","title":"Title","description":"Auto-generated short title summarizing the task. Available after the task starts running.","uniqueKey":"title.oneOf.1","typeLabel":"null"}],"uniqueKey":"title","typeLabel":"string | null"},"output":{"oneOf":[{"title":"Output","description":"The agent's final output. If `codeMode` was true, this will be an object with `text` (summary), `code` (Python source), and optionally `output` (execution result). If `outputSchema` was provided, this will be structured data conforming to that schema. Otherwise it may be a free-form string or null.","uniqueKey":"output.oneOf.0","typeLabel":"any"},{"type":"null","title":"Output","description":"The agent's final output. If `codeMode` was true, this will be an object with `text` (summary), `code` (Python source), and optionally `output` (execution result). If `outputSchema` was provided, this will be structured data conforming to that schema. Otherwise it may be a free-form string or null.","uniqueKey":"output.oneOf.1","typeLabel":"null"}],"uniqueKey":"output","typeLabel":"any | null"},"outputSchema":{"oneOf":[{"type":"object","title":"Outputschema","description":"The JSON Schema that was requested for structured output, if any.","additionalProperties":true,"uniqueKey":"outputSchema.oneOf.0","typeLabel":"Outputschema · object"},{"type":"null","title":"Outputschema","description":"The JSON Schema that was requested for structured output, if any.","uniqueKey":"outputSchema.oneOf.1","typeLabel":"null"}],"uniqueKey":"outputSchema","typeLabel":"Outputschema · object | null"},"stepCount":{"type":"integer","title":"Stepcount","description":"Number of steps the agent has executed so far.","default":0,"uniqueKey":"stepCount","typeLabel":"integer"},"lastStepSummary":{"oneOf":[{"type":"string","title":"Laststepsummary","description":"Human-readable summary of the most recent agent step (e.g. \"Clicking the Submit button\"). Useful for showing real-time progress.","uniqueKey":"lastStepSummary.oneOf.0","typeLabel":"string"},{"type":"null","title":"Laststepsummary","description":"Human-readable summary of the most recent agent step (e.g. \"Clicking the Submit button\"). Useful for showing real-time progress.","uniqueKey":"lastStepSummary.oneOf.1","typeLabel":"null"}],"uniqueKey":"lastStepSummary","typeLabel":"string | null"},"isTaskSuccessful":{"oneOf":[{"type":"boolean","title":"Istasksuccessful","description":"Whether the task completed successfully. `true` if the agent achieved the goal, `false` if it failed or gave up, `null` if the task is still running or no task was dispatched.","uniqueKey":"isTaskSuccessful.oneOf.0","typeLabel":"boolean"},{"type":"null","title":"Istasksuccessful","description":"Whether the task completed successfully. `true` if the agent achieved the goal, `false` if it failed or gave up, `null` if the task is still running or no task was dispatched.","uniqueKey":"isTaskSuccessful.oneOf.1","typeLabel":"null"}],"uniqueKey":"isTaskSuccessful","typeLabel":"boolean | null"},"liveUrl":{"oneOf":[{"type":"string","title":"Liveurl","description":"URL to view the live browser session. Available immediately on session creation — can be embedded in an iframe to show the browser in real time.","uniqueKey":"liveUrl.oneOf.0","typeLabel":"string"},{"type":"null","title":"Liveurl","description":"URL to view the live browser session. Available immediately on session creation — can be embedded in an iframe to show the browser in real time.","uniqueKey":"liveUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"liveUrl","typeLabel":"string | null"},"recordingUrls":{"items":{"type":"string","uniqueKey":"recordingUrls.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Recordingurls","description":"URLs to download session recordings. Only populated on `GET /api/v3/sessions/{id}`; always `[]` in list responses.","default":[],"uniqueKey":"recordingUrls","typeLabel":"string[]"},"profileId":{"oneOf":[{"type":"string","title":"Profileid","description":"ID of the browser profile loaded in this session, if any.","format":"uuid","uniqueKey":"profileId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","title":"Profileid","description":"ID of the browser profile loaded in this session, if any.","uniqueKey":"profileId.oneOf.1","typeLabel":"null"}],"uniqueKey":"profileId","typeLabel":"string\u003cuuid> | null"},"workspaceId":{"oneOf":[{"type":"string","title":"Workspaceid","description":"ID of the workspace attached to this session, if any.","format":"uuid","uniqueKey":"workspaceId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","title":"Workspaceid","description":"ID of the workspace attached to this session, if any.","uniqueKey":"workspaceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"workspaceId","typeLabel":"string\u003cuuid> | null"},"proxyCountryCode":{"oneOf":[{"type":"string","title":"ProxyCountryCode","description":"Country code of the proxy used for this session, or null if no proxy.","enum":["ad","ae","af","ag","ai","al","am","an","ao","aq","ar","as","at","au","aw","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bl","bm","bn","bo","bq","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","co","cr","cs","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","fi","fj","fk","fm","fo","fr","ga","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mf","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tr","tt","tv","tw","tz","ua","ug","uk","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","xk","ye","yt","za","zm","zw"],"uniqueKey":"proxyCountryCode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Country code of the proxy used for this session, or null if no proxy.","uniqueKey":"proxyCountryCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"proxyCountryCode","typeLabel":"enum\u003cstring> | null"},"browserScreenWidth":{"oneOf":[{"type":"integer","title":"Browserscreenwidth","description":"Custom browser screen width set for this session, or null for the default.","uniqueKey":"browserScreenWidth.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Browserscreenwidth","description":"Custom browser screen width set for this session, or null for the default.","uniqueKey":"browserScreenWidth.oneOf.1","typeLabel":"null"}],"uniqueKey":"browserScreenWidth","typeLabel":"integer | null"},"browserScreenHeight":{"oneOf":[{"type":"integer","title":"Browserscreenheight","description":"Custom browser screen height set for this session, or null for the default.","uniqueKey":"browserScreenHeight.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Browserscreenheight","description":"Custom browser screen height set for this session, or null for the default.","uniqueKey":"browserScreenHeight.oneOf.1","typeLabel":"null"}],"uniqueKey":"browserScreenHeight","typeLabel":"integer | null"},"maxCostUsd":{"oneOf":[{"type":"string","title":"Maxcostusd","description":"Maximum cost limit in USD set for this session.","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","uniqueKey":"maxCostUsd.oneOf.0","typeLabel":"string"},{"type":"null","title":"Maxcostusd","description":"Maximum cost limit in USD set for this session.","uniqueKey":"maxCostUsd.oneOf.1","typeLabel":"null"}],"uniqueKey":"maxCostUsd","typeLabel":"string | null"},"totalInputTokens":{"type":"integer","title":"Totalinputtokens","description":"Total LLM input tokens consumed by this session.","default":0,"uniqueKey":"totalInputTokens","typeLabel":"integer"},"totalOutputTokens":{"type":"integer","title":"Totaloutputtokens","description":"Total LLM output tokens consumed by this session.","default":0,"uniqueKey":"totalOutputTokens","typeLabel":"integer"},"proxyUsedMb":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Proxyusedmb","description":"Proxy bandwidth used in megabytes, across the session and its browsers.","default":"0","uniqueKey":"proxyUsedMb","typeLabel":"string"},"llmCostUsd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Llmcostusd","description":"Cost of LLM usage in USD.","default":"0","uniqueKey":"llmCostUsd","typeLabel":"string"},"proxyCostUsd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Proxycostusd","description":"Cost of proxy bandwidth in USD, across the session and its browsers.","default":"0","uniqueKey":"proxyCostUsd","typeLabel":"string"},"browserCostUsd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Browsercostusd","description":"Cost of browser compute time in USD.","default":"0","uniqueKey":"browserCostUsd","typeLabel":"string"},"totalCostUsd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Totalcostusd","description":"Total session cost in USD (LLM + proxy + browser).","default":"0","uniqueKey":"totalCostUsd","typeLabel":"string"},"screenshotUrl":{"oneOf":[{"type":"string","title":"Screenshoturl","description":"Presigned URL of the latest screenshot (expires after 5 minutes). Only populated on `GET /api/v3/sessions/{id}`; always `null` in list responses.","uniqueKey":"screenshotUrl.oneOf.0","typeLabel":"string"},{"type":"null","title":"Screenshoturl","description":"Presigned URL of the latest screenshot (expires after 5 minutes). Only populated on `GET /api/v3/sessions/{id}`; always `null` in list responses.","uniqueKey":"screenshotUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"screenshotUrl","typeLabel":"string | null"},"agentmailEmail":{"oneOf":[{"type":"string","title":"Agentmailemail","description":"Temporary email address provisioned for this session (via AgentMail). Only present if `agentmail` was enabled.","uniqueKey":"agentmailEmail.oneOf.0","typeLabel":"string"},{"type":"null","title":"Agentmailemail","description":"Temporary email address provisioned for this session (via AgentMail). Only present if `agentmail` was enabled.","uniqueKey":"agentmailEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"agentmailEmail","typeLabel":"string | null"},"integrationsUsed":{"items":{"type":"string","uniqueKey":"integrationsUsed.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Integrationsused","description":"List of integration providers used during this session (e.g. [\"gmail\", \"slack\", \"agentmail\"]).","uniqueKey":"integrationsUsed","typeLabel":"string[]"}},"type":"object","required":["id","status","model","createdAt","updatedAt"],"title":"SessionResponse","description":"Represents a session and its current state.\n\nPoll this endpoint to track task progress. The `status` field indicates the session lifecycle stage,\nand `output` contains the agent's structured result once the task completes.","uniqueKey":"","typeLabel":"SessionResponse · object"},"examples":{"Example":{"title":"Example","value":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"created","model":"bu-mini","createdAt":"2023-11-07T05:31:56Z","updatedAt":"2023-11-07T05:31:56Z","thinkingLevel":"disabled","title":"\u003cstring>","output":"\u003cunknown>","outputSchema":{},"stepCount":0,"lastStepSummary":"\u003cstring>","isTaskSuccessful":true,"liveUrl":"\u003cstring>","recordingUrls":[],"profileId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","workspaceId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","proxyCountryCode":"ad","browserScreenWidth":123,"browserScreenHeight":123,"maxCostUsd":"\u003cstring>","totalInputTokens":0,"totalOutputTokens":0,"proxyUsedMb":"0","llmCostUsd":"0","proxyCostUsd":"0","browserCostUsd":"0","totalCostUsd":"0","screenshotUrl":"\u003cstring>","agentmailEmail":"\u003cstring>","integrationsUsed":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"6a68b8cc-9ab6-438c-a24c-7f732ea29fbf":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"27b0e82e-e0d2-487c-b4d3-e78bacb08f11":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-Browser-Use-API-Key","scopes":[],"schemeName":"APIKeyHeader"}}},"servers":{"eb14bc10-b430-4435-b8b0-7e4c7f459b08":{"url":"https://api.browser-use.com/api/v3","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Browser-Use-API-Key","scopes":[],"schemeName":"APIKeyHeader"},"schema":{"title":"X-Browser-Use-API-Key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyHeader","name":"X-Browser-Use-API-Key"}],"title":"APIKeyHeader"}]},"originalFileLocation":"cloud/openapi/v3.json"},"subdomain":"browseruse-0aece648","siteName":"Browser Use","title":"Create Session - Browser Use","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T06:38:11.748Z","originalFileLocation":"cloud/api-v3/sessions/create-session.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a session and/or dispatch a task. - Without session_id, without task: creates a new idle session (e.g. for file uploads). - Without session_id, with task: creates a new session and dispatches the task. - With session_id, with task: dispatches the task to an existing idle session. - With session_id, without task: 422 — task is required when targeting an existing 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.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Browser Use\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Session - Browser Use\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a session and/or dispatch a task. - Without session_id, without task: creates a new idle session (e.g. for file uploads). - Without session_id, with task: creates a new session and dispatches the task. - With session_id, with task: dispatches the task to an existing idle session. - With session_id, without task: 422 — task is required when targeting an existing 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.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Browser Use\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://browseruse-0aece648.mintlify.site/_mintlify/api/og/v2?division=Sessions\u0026amp;title=Create+Session\u0026amp;description=Create+a+session+and%2For+dispatch+a+task.%0A%0A-+Without+session_id%2C+without+task%3A+creates+a+new+idle+session+%28e.g.+for+file+uploads%29.%0A-+Without+session_id%2C+with+tas\u0026amp;theme=7c03bae5d08ef5f38b021729\u0026amp;signature=9b318789c959d5e0a7615f96c6c5fcf472656d3334d79cfc04ae3e49644628b3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Session - Browser Use\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a session and/or dispatch a task. - Without session_id, without task: creates a new idle session (e.g. for file uploads). - Without session_id, with task: creates a new session and dispatches the task. - With session_id, with task: dispatches the task to an existing idle session. - With session_id, without task: 422 — task is required when targeting an existing 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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://browseruse-0aece648.mintlify.site/_mintlify/api/og/v2?division=Sessions\u0026amp;title=Create+Session\u0026amp;description=Create+a+session+and%2For+dispatch+a+task.%0A%0A-+Without+session_id%2C+without+task%3A+creates+a+new+idle+session+%28e.g.+for+file+uploads%29.%0A-+Without+session_id%2C+with+tas\u0026amp;theme=7c03bae5d08ef5f38b021729\u0026amp;signature=9b318789c959d5e0a7615f96c6c5fcf472656d3334d79cfc04ae3e49644628b3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/browseruse-0aece648/8n47EHeVma6x-0_k/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Browser Use\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F1011\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cloud/api-v3/sessions/create-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.browser-use.com/#organization\",\"name\":\"Browser Use\",\"url\":\"https://docs.browser-use.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/browseruse-0aece648/lNAyHi2yxyXHwQ6v/logo/light.svg?fit=max\u0026auto=format\u0026n=lNAyHi2yxyXHwQ6v\u0026q=85\u0026s=9ea94023eec71de8832c469f0d35b49e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.browser-use.com#website\",\"name\":\"Browser Use\",\"url\":\"https://docs.browser-use.com\",\"publisher\":{\"@id\":\"https://docs.browser-use.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session#webpage\",\"url\":\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session\",\"name\":\"Create Session\",\"description\":\"Create a session and/or dispatch a task. - Without session_id, without task: creates a new idle session (e.g. for file uploads). - Without session_id, with task: creates a new session and dispatches the task. - With session_id, with task: dispatches the task to an existing idle session. - With session_id, without task: 422 — task is required when targeting an existing 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.\",\"dateModified\":\"2026-11-13T06:38:11.748Z\",\"isPartOf\":{\"@id\":\"https://docs.browser-use.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.browser-use.com/cloud/api-v3/sessions/list-sessions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sessions\",\"item\":\"https://docs.browser-use.com/cloud/api-v3/sessions/list-sessions\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Session\",\"item\":\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session#apireference\",\"headline\":\"Create Session\",\"name\":\"Create Session\",\"description\":\"Create a session and/or dispatch a task. - Without session_id, without task: creates a new idle session (e.g. for file uploads). - Without session_id, with task: creates a new session and dispatches the task. - With session_id, with task: dispatches the task to an existing idle session. - With session_id, without task: 422 — task is required when targeting an existing 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.\",\"url\":\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session\",\"mainEntityOfPage\":{\"@id\":\"https://docs.browser-use.com/cloud/api-v3/sessions/create-session#webpage\"},\"dateModified\":\"2026-11-13T06:38:11.748Z\",\"publisher\":{\"@id\":\"https://docs.browser-use.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.browser-use.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Browser Use\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Browser Use\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cloud/api-v3/sessions/create-session.md","siteName":"Browser Use","nav":{"global":null,"products":[{"product":"Cloud","icon":"cloud","color":{"light":"#0F1011","dark":"#F7F8F8"},"tabs":[{"tab":"Cloud SDK","pages":[{"title":"Cloud SDK","href":"/cloud/quickstart"}]},{"tab":"API v4","pages":[{"title":"API v4","href":"/cloud/api-v4-overview"}]},{"tab":"API v3","groups":[{"group":"Get Started","pages":[{"title":"API v3 Reference","sidebarTitle":"API Reference","mode":"wide","icon":"book-open","href":"/cloud/api-reference"}]},{"group":"V3 guides and tutorials","pages":[{"title":"n8n","icon":"workflow","href":"/cloud/tutorials/integrations/n8n"},{"title":"Chat UI","icon":"messages-square","href":"/cloud/tutorials/chat-ui"},{"title":"Grow Therapy provider search","icon":"sprout","href":"/cloud/tutorials/grow-therapy-compare"}]},{"group":"Endpoints","pages":[{"group":"Sessions","pages":[{"title":"List Sessions","description":"List sessions for the authenticated project.\n\nList responses intentionally omit per-session presigned URLs\n(`screenshot_url`, `recording_urls`). Each presign is a synchronous boto3\nSigV4 signing call that holds the GIL and blocks the event loop. With\npage_size up to 100 this CPU-pegs the worker and starves the DB pool,\ncascading into pool exhaustion across the fleet. Clients should fetch\nthese URLs on demand via `GET /api/v3/sessions/{id}`, which signs exactly\none screenshot URL plus any recording URLs for a single session.","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /sessions","href":"/cloud/api-v3/sessions/list-sessions"},{"title":"Create Session","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json post /sessions","href":"/cloud/api-v3/sessions/create-session"},{"title":"Get Session","description":"Get session details. Use this to poll for task completion and output.","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /sessions/{session_id}","href":"/cloud/api-v3/sessions/get-session"},{"title":"Delete Session","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json delete /sessions/{session_id}","href":"/cloud/api-v3/sessions/delete-session"},{"title":"Stop Session","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json post /sessions/{session_id}/stop","href":"/cloud/api-v3/sessions/stop-session"},{"title":"List Session Messages","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /sessions/{session_id}/messages","href":"/cloud/api-v3/sessions/list-session-messages"}]},{"group":"Browsers","pages":[{"title":"List Browser Sessions","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /browsers","href":"/cloud/api-v3/browsers/list-browser-sessions"},{"title":"Create Browser Session","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json post /browsers","href":"/cloud/api-v3/browsers/create-browser-session"},{"title":"Get Browser Session","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /browsers/{session_id}","href":"/cloud/api-v3/browsers/get-browser-session"},{"title":"Update Browser Session","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json patch /browsers/{session_id}","href":"/cloud/api-v3/browsers/update-browser-session"},{"title":"List Browser Session Downloads","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /browsers/{session_id}/downloads","href":"/cloud/api-v3/browsers/list-browser-session-downloads"},{"title":"Get Browser Proxy","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /browsers/{session_id}/proxy","href":"/cloud/api-v3/browsers/get-browser-proxy"},{"title":"Update Browser Proxy","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json patch /browsers/{session_id}/proxy","href":"/cloud/api-v3/browsers/update-browser-proxy"}]},{"group":"Profiles","pages":[{"title":"List Profiles","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /profiles","href":"/cloud/api-v3/profiles/list-profiles"},{"title":"Create Profile","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json post /profiles","href":"/cloud/api-v3/profiles/create-profile"},{"title":"Get Profile","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /profiles/{profile_id}","href":"/cloud/api-v3/profiles/get-profile"},{"title":"Delete Browser Profile","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json delete /profiles/{profile_id}","href":"/cloud/api-v3/profiles/delete-browser-profile"},{"title":"Update Profile","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json patch /profiles/{profile_id}","href":"/cloud/api-v3/profiles/update-profile"}]},{"group":"Workspaces","pages":[{"title":"List Workspaces","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /workspaces","href":"/cloud/api-v3/workspaces/list-workspaces"},{"title":"Create Workspace","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json post /workspaces","href":"/cloud/api-v3/workspaces/create-workspace"},{"title":"Get Workspace","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /workspaces/{workspace_id}","href":"/cloud/api-v3/workspaces/get-workspace"},{"title":"Delete Workspace","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json delete /workspaces/{workspace_id}","href":"/cloud/api-v3/workspaces/delete-workspace"},{"title":"Update Workspace","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json patch /workspaces/{workspace_id}","href":"/cloud/api-v3/workspaces/update-workspace"},{"title":"List Workspace Files","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /workspaces/{workspace_id}/files","href":"/cloud/api-v3/workspaces/list-workspace-files"},{"title":"Delete Workspace File","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json delete /workspaces/{workspace_id}/files","href":"/cloud/api-v3/workspaces/delete-workspace-file"},{"title":"Get Workspace Size","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /workspaces/{workspace_id}/size","href":"/cloud/api-v3/workspaces/get-workspace-size"},{"title":"Upload Workspace Files","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json post /workspaces/{workspace_id}/files/upload","href":"/cloud/api-v3/workspaces/upload-workspace-files"}]},{"group":"Billing","pages":[{"title":"Get Account Billing","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json get /billing/account","href":"/cloud/api-v3/billing/get-account-billing"}]},{"group":"x402","pages":[{"title":"X402 Balance","deprecated":null,"version":null,"openapi":"/cloud/openapi/v3.json post /x402/balance","href":"/cloud/api-v3/x402/x402-balance"}]}]}]},{"tab":"API v2","pages":[{"title":"API v2","href":"/cloud/api-v2-overview"}]}]},{"product":"Open Source","icon":"code","color":{"light":"#0F1011","dark":"#F7F8F8"},"pages":[{"title":"Open Source","href":"/open-source/introduction"}]}]},"basePath":"","title":"Create Session - Browser Use","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-BgGj2PGS.js","utils-BhNOqRKb.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BAgRNUZo.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CGkb0TPw.js","snippetPresets-ChLkL1a6.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-C7x-eUfk.js","ApiExamples-Ef10Jrbx.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DlVCnjU8.js","shallow-BA55zJxQ.js","getApiPlaygroundDisplay-DR09dKtp.js","CodeSnippet-BZ8J8Kll.js","CodeSnippets-CcguVheG.js","getPastedJson-D5UqeqBp.js","icon-DpD0l99C.js","MethodPill-Wg2NXsp_.js","DuplicateIcon-CCSyX8lh.js","createIcon-C4Ukv9HX.js","DynamicMarkdown-RhjEuCHC.js","SectionHeading-DL1MykRq.js","axios-vUo_bRtp.js","Markdown-BwQ4RMdp.js","dist-CiVXVcSh.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-Dic2Jtb2.js"]}