Skip to main content
Start a one-off browser task with run_task, then use the run methods with the run_id it returns. The run methods work for task runs (tsk_…) and agent runs (wr_…) alike. Every method here also accepts request_options (Python) or a final requestOptions argument (TypeScript) to override the timeout, retries or headers for one call; see request options.

Run a task

run_task

Run a task
Parameters Returns TaskRunResponse · TypeScript Promise<TaskRunResponse>
Example

Inspect and manage runs

get_run

Get run information (task run, workflow run)
Parameters Returns GetRunResponse · TypeScript Promise<GetRunResponse> Example

get_runs_v2

List runs
Parameters Returns list[TaskRunListItem] · TypeScript Promise<TaskRunListItem[]>
Example

get_run_timeline

Get timeline for a run (workflow run or task_v2 run)
Parameters Returns list[WorkflowRunTimeline] · TypeScript Promise<WorkflowRunTimeline[]>
Example

cancel_run

Cancel a run (task or workflow)
Parameters Returns Any \| None · TypeScript Promise<unknown> Example

bulk_cancel_runs

Cancel multiple runs (tasks or workflows) in a single request
Parameters Returns BulkCancelRunsResponse · TypeScript Promise<BulkCancelRunsResponse>
Example

retry_run_webhook

Retry sending the webhook for a run
Parameters Returns RunWebhookReplayResponse · TypeScript Promise<RunWebhookReplayResponse>
Example