Run Task
Requires an active subscription. Returns the task ID that can be used to track progress.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
task: What should the agent do. You can try it out at https://cloud.browser-use.com/
secrets: Dictionary of secrets to be used by the agent. Secrets are safely encrypted before storing in the database.
allowed_domains: List of domains that the agent is allowed to visit. If not set, the agent will be allowed to visit all domains (not recommended if you are using secrets).
save_browser_data: If set to True, the browser cookies and other data will be saved. Cookies are safely encrypted before storing in the database.
structured_output_json: If set, the agent will use this JSON schema as the output model (see example here: https://docs.browser-use.com/cloud/implementation#structured-output-example).
use_adblock: If set to True, the agent will use an adblocker.
use_proxy: If set to True, the agent will use a (mobile) proxy. Note that proxy is required for captcha solving, so if you disable proxy, you will not be able to solve captchas.
highlight_elements: If set to True, the agent will highlight the elements on the page.
Response
Successful Response
The response is of type object
.