POST
/
api
/
v1
/
scheduled-task
curl --request POST \
  --url https://api.browser-use.com/api/v1/scheduled-task \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "task": "<string>",
  "secrets": {},
  "allowed_domains": [
    "<string>"
  ],
  "save_browser_data": true,
  "structured_output_json": "<string>",
  "llm_model": "gpt-4o",
  "use_adblock": true,
  "use_proxy": true,
  "highlight_elements": true,
  "schedule_type": "interval",
  "interval_minutes": 123,
  "cron_expression": "<string>",
  "start_at": "2023-11-07T05:31:56Z",
  "end_at": "2023-11-07T05:31:56Z"
}'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

schedule_type: Type of schedule to use (interval or cron) interval_minutes: Minutes between runs (required for interval schedule) cron_expression: Cron expression for scheduling (required for cron schedule) start_at: When to start the schedule (optional, defaults to now) end_at: When to end the schedule (optional, defaults to 1 year from now)

Note: Secrets are not yet supported for scheduled tasks.

Response

200
application/json

Successful Response

The response is of type object.