Tasks

Run Task by Name

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.

post/v1/task/run/{taskName}

Path parameters

taskNamestring required
Example:web-scraper

The name of the task to run

Request body

sessionIdstring uuid

Optional existing browser session ID to use for task execution

asyncboolean

Whether to run the task asynchronously

inputsobject

Environment variables for task execution (keys must start with ANCHOR_)

cleanupSessionsboolean

Whether to cleanup browser sessions after task execution. Defaults to true.

Response

Task executed successfully

Changes