Update Task
Control task execution with stop, pause, resume, or stop task and session actions.
Path parameters
task_id
Headers
X-Browser-Use-API-Key
Request
This endpoint expects an object.
action
The action to perform on the task
Allowed values:
Response
Successful Response
id
Unique identifier for the task
sessionId
llm
The LLM model used for this task represented as a string
task
The task prompt/instruction given to the agent
status
Current status of the task execution
Allowed values:
startedAt
Naive UTC timestamp when the task was started
isScheduled
Whether this task was created as a scheduled task
steps
outputFiles
finishedAt
Naive UTC timestamp when the task completed (None if still running)
metadata
Optional additional metadata associated with the task set by the user
output
Final output/result of the task
browserUseVersion
Version of browser-use used for this task (older tasks may not have this set)
isSuccess
Whether the task was successful (self-reported by the agent)