---
title: "Create Agent"
method: POST
path: "/v1/task-agents"
tags: ["Web Search Agents (public)"]
---

# Create Agent

`POST /v1/task-agents`

Create a Web Search Agent instance.

``account_id`` is JWT-derived and never read from the request body.

## Request body

- WebSearchAgentCreateRequest
  - `agent_name` string, nullable
  - `description` string, nullable
  - `display_name` string, nullable
  - `domain_expertise` string, nullable
  - `effort` 'low' | 'medium' | 'high' | 'x-high' | 'max' — Canonical effort tier names for the research graph.
  - `goals` string[]
  - `icon` string, nullable
  - `is_active` boolean
  - `output_schema` object, nullable
  - `sources` AgentSources — Source preferences for a web search agent instance.
    - `allow` WebSearchAgentSourceCreateRequest[]
      - `domains` string[], required
      - `order` integer
      - `title` string, required
    - `avoid` string, nullable
    - `block` WebSearchAgentSourceCreateRequest[]
      - `domains` string[], required
      - `order` integer
      - `title` string, required
    - `prioritize` string, nullable
  - `suggested_questions` string[]
  - `template` string, nullable — Template name to materialize this instance from. When set, the scalar fields and child rows are copied from the template.
  - `use_case` 'research' | 'enrichment' | 'dataset_building'
  - `workspace_id` string, uuid, nullable

## Response `201`

Successful Response

- WebSearchExtractTemplateResponse
  - `account_id` string, nullable
  - `agent_name` string, nullable
  - `created_at` string, date-time, required
  - `description` string, required
  - `display_name` string, required
  - `domain_expertise` string, required
  - `effort` 'low' | 'medium' | 'high' | 'x-high' | 'max', required — Canonical effort tier names for the research graph.
  - `goals` WebSearchAgentGoalResponse[], required
    - `goal` string, required
    - `id` string, required
    - `order` integer, required
  - `icon` string, required
  - `id` string, required
  - `is_active` boolean, required
  - `output_schema` object, nullable, required
  - `sources` AgentSourcesResponse, required — Response variant of AgentSources — preserves per-row id on allow rows.
    - `allow` WebSearchAgentSourceResponse[]
      - `domains` string[], required
      - `id` string, required
      - `order` integer, required
      - `title` string, required
    - `avoid` string, nullable
    - `block` SourceGroupResponse[]
      - `domains` string[], required
      - `order` integer, required
      - `title` string, required
    - `prioritize` string, nullable
  - `suggested_questions` WebSearchAgentSuggestedQuestionResponse[], required
    - `id` string, required
    - `order` integer, required
    - `question` string, required
  - `updated_at` string, date-time, required
  - `use_case` 'research' | 'enrichment' | 'dataset_building', required
  - `workspace_id` string, uuid, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-12** `e8a97dc9fce2` — 2 breaking, 7 warning, 14 info
  - removed `#/components/schemas/AgentUseCase` from the `use_case` request property `anyOf` list
  - request property `effort` was restricted to a list of enum values
  - deleted the `cookie` request parameter `token`
  - removed the optional property `workspace_name` from the response with the `201` status
  - …19 more
- **2026-06-18** `2562e655b8f2` — 2 breaking, 8 info
  - the `sources` request property type/format changed from `array`/`` to `object`/``
  - the `sources` response's property type/format changed from `array`/`` to `object`/`` for status `201`
  - added the new optional request property `sources/allow`
  - added the new optional request property `sources/avoid`
  - …6 more
- **2026-06-10** `421a9851d61b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nimbleway/apis/api-gateway/changes/v1/task-agents/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/e8a97dc9fce2/schema)
