---
title: "Create Run"
method: POST
path: "/v1/task-agents/{agent_id}/runs"
tags: ["Web Search Agents (public)"]
deprecated: true
---

# Create Run

`POST /v1/task-agents/{agent_id}/runs`

> **Deprecated.**

Create a research run for a Web Search Agent instance.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- WebSearchAgentRunCreateRequestPublicV1
  - `effort` 'low' | 'medium' | 'high' | 'x-high' | '5x-high' | 'max' — Canonical effort tier names for the research graph.
  - `enable_events` boolean — Whether to stream run events when supported.
  - `input` string, required — User prompt or task instructions for the run.
  - `input_data` union — Existing records to ENRICH: a list of partial rows, or a single object, mirroring output_schema's shape.
    - object[]
    - object
  - `output_schema` object, nullable — JSON schema overriding the agent's default structured output for this run.
  - `previous_interaction_id` string, nullable — Previous interaction identifier used to continue a conversation.
  - `sources` AgentSourcesPublicV1
    - `allow` WebSearchAgentSourceCreateRequestPublicV1[] — Source groups the agent is allowed to use.
      - `domains` string[], required — Domains included in this source group.
      - `order` integer — Zero-based source group position.
      - `title` string, required — Source group title.
    - `avoid` string, nullable — Free-text guidance describing sources or domains to avoid.
    - `block` WebSearchAgentSourceCreateRequestPublicV1[] — Source groups the agent should not use.
      - `domains` string[], required — Domains included in this source group.
      - `order` integer — Zero-based source group position.
      - `title` string, required — Source group title.
    - `prioritize` string, nullable — Free-text guidance describing sources or domains to prioritize.

## Response `202`

Successful Response

- TaskRunResponsePublicV1
  - `completed_at` string, date-time, nullable — When the run completed.
  - `created_at` string, date-time, required — When the run was created.
  - `effort` 'low' | 'medium' | 'high' | 'x-high' | '5x-high' | 'max', required — Canonical effort tier names for the research graph.
  - `error` TaskRunErrorPublicV1
    - `message` string, required — Human-readable error description.
    - `ref_id` string, required — Reference ID (equals the run id).
  - `id` string, required — Run identifier, format "task_run_{uuid}".
  - `interaction_id` string, required — Interaction ID.
  - `is_active` boolean, required — True while status is 'queued' or 'running'.
  - `prompt` string, nullable — Prompt submitted for the run.
  - `started_at` string, date-time, nullable — When the run started executing.
  - `status` 'queued' | 'running' | 'completed' | 'failed' | 'cancelled', required — Lowercase status values used in API responses (distinct from the DB-level TaskRunStatus enum).
  - `web_search_agent_id` string, required — Web Search Agent instance this run belongs to.

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-17** `22c2a2291146` — 1 warning, 1 info
  - added the new `5x-high` enum value to the `effort` response property for the response status `202`
  - added the new `5x-high` enum value to the request property `effort/anyOf[subschema #1: Effort]/`
- **2026-07-20** `d4e4f170f4f4` — 1 breaking, 1 warning, 6 info
  - removed `#/components/schemas/AgentSources` from the `sources` request property `anyOf` list
  - removed the optional property `workspace_id` from the response with the `202` status
  - api operation id `create_run_api_v2_public_web_search_agents__agent_id__runs_post` removed and replaced with `create_run_public_v1_api_v1_public_web_search_agents__agent_id__runs_post`
  - endpoint deprecated
  - …4 more
- **2026-07-12** `e8a97dc9fce2` — 1 breaking, 5 warning, 15 info
  - for the `path` request parameter `agent_id`, the type/format was changed from `string`/`` to `string`/`uuid`
  - deleted the `cookie` request parameter `token`
  - added the new `high` enum value to the `effort` response property for the response status `202`
  - added the new `low` enum value to the `effort` response property for the response status `202`
  - …17 more
- **2026-07-07** `ebe52c375b71` — 1 breaking
  - the `web_search_agent_id/anyOf[subschema #1]/` response's property type/format changed from `string`/`uuid` to `string`/`` for status `202`
- **2026-06-18** `2562e655b8f2` — 1 info
  - added the new optional request property `sources`

[Full history](https://skmtc.dev/nimbleway/apis/api-gateway/changes/v1/task-agents/:agent_id/runs/post.md)

---

[API](https://skmtc.dev/nimbleway/apis/api-gateway.md) · [All operations](https://skmtc.dev/nimbleway/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nimbleway/api-gateway/revisions/d1947ec7af21/schema)
