Tasks

Run Task

Executes a task in a browser session. The task can be run with a specific version or the latest version. Optionally, you can provide an existing session ID or let the system create a new one.

post/v1/task/run

Request body

taskIdstring uuid required

Task identifier

versionstring

Version to run (draft, latest, or version number)

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