Cancel Legacy Agent Task
POST/agents/browser-use/:agentId/tasks/:id/cancel
Cancel Legacy Agent Task: POST /agents/browser-use/{agentId}/tasks/{id}/cancel/. See the Developer guides for workflow examples and error recovery.
Request
Responses
- 200
- 400
- 403
- 404
- 409
- 500
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.
Invalid request body or query parameters. Field errors may be returned as arrays.
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.
Missing/invalid API key, insufficient scope, account eligibility, or communication policy denial.
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.
Resource not found or not accessible to this API key.
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.
Unexpected failure; JSON includes detail and an error_id for support.
Response Headers
Server-generated synchronous HTTP correlation; no worker lineage implied.