cURL
curl --request POST \ --url https://api.anchorbrowser.io/v2/tasks/{taskId}/run \ --header 'Content-Type: application/json' \ --header 'anchor-api-key: <api-key>' \ --data ' { "input_params": { "File Name": "invoice-2026-02.pdf", "Operation": "extract_text" } } '
{ "run_id": "<string>", "status": "queued", "result": {}, "error": "<string>", "session_id": "<string>" }
Triggers execution of a task by ID using the V2 tasks API.
API key passed in the header
The ID of the task to run
Key-value pairs of input parameters for the task
Show child attributes
Optional identity ID to use for the task
Optional session ID to run the task in
Whether to clean up sessions after execution
Task run started successfully
The ID of the task run
Current task run status
queued
running
success
failure
timeout
cancelled
Task output when available
Error message when the run fails
Session ID used for this task run
Was this page helpful?