cURL
curl --request POST \ --url https://api.anchorbrowser.io/v1/task/run/{taskName} \ --header 'Content-Type: application/json' \ --header 'anchor-api-key: <api-key>' \ --data '{}'
{ "data": { "success": true, "async": true, "message": "<string>", "taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "executionTime": 123, "output": "<string>", "error": "<string>", "executionResultId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }
Executes a task by its name, always using the latest version. This is a convenience endpoint for running tasks without needing to know the task ID.
API key passed in the header
The name of the task to run
"web-scraper"
Whether to run the task asynchronously
Override browser configuration for this execution
Show child attributes
Environment variables for task execution (keys must start with ANCHOR_)
Task executed successfully
Was this page helpful?