Tasks (Legacy)

Run Task by Name (Legacy)

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.

If you are using the new Task Builder, see the Tasks V2 endpoints in this API reference.

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