Update Task

Control task execution with stop, pause, resume, or stop task and session actions.

Path parameters

task_idstringRequiredformat: "uuid"

Headers

X-Browser-Use-API-KeystringRequired

Request

This endpoint expects an object.
actionenumRequired
The action to perform on the task
Allowed values:

Response

Successful Response
idstringformat: "uuid"
Unique identifier for the task
sessionIdstringformat: "uuid"
llmstring
The LLM model used for this task represented as a string
taskstring

The task prompt/instruction given to the agent

statusenum
Current status of the task execution
Allowed values:
startedAtstringformat: "date-time"
Naive UTC timestamp when the task was started
isScheduledboolean
Whether this task was created as a scheduled task
stepslist of objects
outputFileslist of objects
finishedAtstring or nullformat: "date-time"

Naive UTC timestamp when the task completed (None if still running)

metadatamap from strings to any or null
Optional additional metadata associated with the task set by the user
outputstring or null

Final output/result of the task

browserUseVersionstring or null

Version of browser-use used for this task (older tasks may not have this set)

isSuccessboolean or null

Whether the task was successful (self-reported by the agent)

Errors