Skip to main content
POST
/
v1
/
browsing
/
tasks
Agent Run Endpoint
curl --request POST \
  --url https://api.yutori.com/v1/browsing/tasks \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "task": "<string>",
  "start_url": "<string>",
  "max_steps": 50,
  "agent": "yutori_navigator",
  "require_auth": false,
  "task_spec": {
    "output_schema": {
      "json_schema": {},
      "type": "json"
    }
  },
  "webhook_url": "<string>"
}
'
{
  "task_id": "<string>",
  "view_url": "<string>",
  "status": "queued",
  "result": "<string>",
  "paused": true,
  "structured_result": {},
  "webhook_url": "<string>"
}
curl --request POST \
  --url https://api.yutori.com/v1/browsing/tasks \
  --header 'X-API-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "task": "Give me a list of all employees (names and titles) of Yutori.",
    "start_url": "https://yutori.com",
    "max_steps": 20,
    "agent": "yutori_navigator",
    "webhook_url": "https://example.com/webhook",
    "task_spec": {
      "output_schema": {
        "type": "json",
        "json_schema": {
          "type": "object",
          "properties": {
            "employees": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Full name of the employee"
                  },
                  "title": {
                    "type": "string",
                    "description": "Job title of the employee"
                  }
                },
                "required": ["name", "title"]
              }
            }
          },
          "required": ["employees"]
        }
      }
    }
  }'

Authorizations

x-api-key
string
header
required

Body

application/json
task
string
required

Primary instruction passed to the agent

start_url
string
required

URL to open before running the task

max_steps
integer | null

Maximum number of steps the agent can take

Required range: 1 <= x <= 100
agent
enum<string> | null
default:yutori_navigator

Which agent to use for the browsing task. Options: yutori_navigator (default), anthropic_computer_use

Available options:
yutori_navigator,
anthropic_computer_use
require_auth
boolean
default:false

Hint that this task is likely to involve authentication (e.g. logging in or entering passwords). When true, the system will prefer an auth-optimized browser provider when available.

task_spec
TaskSpec · object

Optional task specification including input and/or output JSON schemas

webhook_url
string | null

Optional webhook URL to receive the agent.run result via a 'scout_webhook' subscription for the calling user.

Response

Successful Response

task_id
string
required

Unique identifier for this browsing task

view_url
string
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed
result
string | null
paused
boolean | null
structured_result
Structured Result · object

If an output schema was provided, the result formatted as JSON matching that schema

webhook_url
string | null

Echoes the webhook URL configured for this agent.run request, if provided.