v50

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-011235801.3 MB
Web Search Agents (public)

Create Agent

Create a Web Search Agent instance.

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

post/v1/task-agents

Request body

agent_namestring nullable

Stable agent name.

descriptionstring nullable

Agent description shown to users.

display_namestring nullable

Human-friendly agent name shown to users.

domain_expertisestring nullable

Domain expertise or operating context for the agent.

effort'low' | 'medium' | 'high' | 'x-high' | 'max'

Canonical effort tier names for the research graph.

goalsstring[]

Ordered goals for the agent to follow.

iconstring nullable

Icon identifier used when presenting the agent.

is_activeboolean

Whether the agent can be used to start new runs.

output_schemaobject nullable

JSON schema describing the structured output the agent should produce.

suggested_questionsstring[]

Suggested prompts users can run with this agent.

templatestring 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'

Response

Successful Response

agent_namestring nullable

Stable agent name.

created_atstring date-time required

When the agent was created.

descriptionstring required

Agent description shown to users.

display_namestring required

Human-friendly agent name shown to users.

domain_expertisestring required

Domain expertise or operating context for the agent.

effort'low' | 'medium' | 'high' | 'x-high' | 'max' required

Canonical effort tier names for the research graph.

iconstring required

Icon identifier used when presenting the agent.

idstring required

Unique web search agent identifier (wsa_<uuid>).

is_activeboolean required

Whether the agent can be used to start new runs.

output_schemaobject nullable required

JSON schema describing the structured output the agent should produce.

updated_atstring date-time required

When the agent was last updated.

use_case'research' | 'enrichment' | 'dataset_building' required