Create Run With Generated Agent
Creates a minimal persistent Web Search Agent and starts a run for it. The response includes web_search_agent_id for later agent and run queries.
Request body
Stable agent name. On this no-agent-id route, an unseen name creates a new agent; an existing name reuses it. Ignored on the /{agent_id}/runs route.
Canonical effort tier names for the research graph.
Whether to stream run events when supported.
User prompt or task instructions for the run.
Origin of public API runs. Public requests are always API-originated.
JSON schema overriding the agent's default structured output for this run.
Previous interaction identifier used to continue a conversation.
Skill override for this run. One-time only, except when this run creates a new agent via agent_name, in which case it becomes the new agent's stored skill.
Response
Successful Response
When the run completed.
When the run was created.
Canonical effort tier names for the research graph.
Run identifier, format "task_run_{uuid}".
Interaction ID.
True while status is 'queued' or 'running'.
Prompt submitted for the run.
When the run started executing.
Lowercase status values used in API responses (distinct from the DB-level TaskRunStatus enum).
Web Search Agent instance this run belongs to.