Create Agent Run
Start an agent run. The run executes asynchronously: the response returns immediately with status queued, then poll GET .../runs/{run_id} until completed and fetch the output from GET .../runs/{run_id}/result — or set enable_events: true and follow GET .../runs/{run_id}/events for live progress.
To enrich existing records instead of researching from scratch, pass them in input_data; this requires an output_schema (on the request or the agent).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Web Search Agent ID, format wsa_<uuid>.
Body
User prompt or task instructions for the run.
"Find the 10 fastest growing AI startups in Europe and their latest funding rounds."
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.
Effort level overriding the agent default for this run.
low, medium, high, x-high, max Whether to stream run events when supported.
- Input Data · object[]
- Input Data · object
JSON Schema overriding the agent's default structured output for this run. Root must be an object with non-empty properties or an array of objects. Hard limits: nesting depth ≤ 5, ≤ 100 properties, ≤ 500 enum values, no unsupported keywords (format, pattern, min/max*, root anyOf, standalone null). Invalid schemas return 422.
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.
Source guidance overriding the agent default.
Only settable when this run creates a new agent (via agent_name, or when no agent is resolved), in which case it becomes the new agent's stored use_case. For a run against an existing agent, this must match the agent's own use_case - passing the same value is accepted as a no-op, a different value is rejected.
research, enrichment, dataset_building Response
Successful Response
When the run was created.
Effort level used for the run.
low, medium, high, x-high, max "high"
Run identifier, format "task_run_{uuid}".
"task_run_c0ffee00-0000-4000-8000-000000000000"
Interaction ID.
True while status is 'queued' or 'running'.
Current run status.
queued, running, completed, failed, cancelled "queued"
Web Search Agent instance this run belongs to.
"wsa_2af5b0e2-58b8-4b60-a1a4-9e57e4d33f00"
When the run completed.
Error details when the run failed.
Prompt submitted for the run.
When the run started executing.