Tasks

Starts asynchronous generation of a new task from a natural-language prompt. Poll GET /v2/tasks/{taskId}/generation-status until the status is ready.

post/v2/tasks/generate

Request

  • Base URL
    https://api.anchorbrowser.io
  • Auth
    API key in header anchor-api-key

Request body

taskNamestring required

Name of the task

taskPromptstring required

Natural-language description of what the task should do, used for AI generation. Make it as detailed as possible with all the logic and steps needed to complete the task.

asyncboolean

Whether to generate the task asynchronously

descriptionstring

Description of the task

application_idstring uuid

Optional application (connection) ID to associate with the task

identity_idstring

Optional identity ID to use during task generation

output_file_onlyboolean

Whether task runs should return only the bundled session downloads file

human_interventionboolean

Allow human intervention during task execution

browser_session_idstring

Existing finished browser session id to generate the workflow from

task_browser_default_configurationobject

Optional default browser/session configuration when running this task

Response

Task generation started

idstring required

The ID of the created task (use with generation-status and run endpoints)

status'generating' required

Whether the task is still generating, ready to run, or failed

taskIdstring

The ID of the task being generated

taskVersionIdstring

The ID of the task version being generated

projectIdstring

The ID of the underlying generation project

Changes

    • breaking

      added the new required request property //

    • breaking

      added the new required request property //

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      removed the enum value date of the request property //

    • breaking

      removed the enum value date of the request property //

    • warning

      removed the request property //

    • warning

      removed the request property //

    • warning

      removed the request property

    • warning

      removed the request property //

    • warning

      removed the request property //

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      added the new optional request property

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property became optional

    • info

      the request property default value changed from false to true

    • info

      the request property default value changed from false to true

    • info

      added the new file enum value to the request property //

    • info

      added the new file enum value to the request property //

    • info

      added the new secret enum value to the request property //

    • info

      added the new secret enum value to the request property //

    • info

      the request property's minLength was decreased from 1 to 0

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      endpoint added