Authorizations
Headers
Body
Task run input with additional beta fields.
Input to the task, either text or a JSON object.
"What was the GDP of France in 2023?"
"{\"country\": \"France\", \"year\": 2023}"
Processor to use for the task.
"base"
Task specification. If unspecified, defaults to auto output schema. Specification for a task.
Auto output schemas can be specified by setting output_schema={"type":"auto"}
. Not
specifying a TaskSpec is the same as setting an auto output schema.
For convenience bare strings are also accepted as input or output schemas.
User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.
Optional source policy governing preferred and disallowed domains in web search results. Source policy for web search results.
This policy governs which sources are allowed/disallowed in results.
Optional list of MCP servers to use for the run.
To enable this feature in your requests, specify events-sse-2025-07-24
as one of the values in parallel-beta
header (for API calls) or betas
param (for the SDKs).
Controls tracking of task run execution progress. When set to true, progress events are recorded and can be accessed via the Task Run events endpoint. When false, no progress events are tracked. Note that progress tracking cannot be enabled after a run has been created. The flag is set to true by default for premium processors (pro and above).
To enable this feature in your requests, specify events-sse-2025-07-24
as one of the values in parallel-beta
header (for API calls) or betas
param (for the SDKs).
Callback URL (webhook endpoint) that will receive an HTTP POST when the run completes.
This feature is not available via the Python SDK. To enable this feature in your API requests, specify the parallel-beta
header with webhook-2025-08-12
value.
Webhooks for Task Runs.
Response
Successful Response
Status of a task run.
ID of the task run.
"trun_e0083b6aac0544eb8686e8d2a76533d2"
Status of the run.
queued
, action_required
, running
, completed
, failed
, cancelling
, cancelled
"queued"
"action_required"
"running"
"completed"
"failed"
"cancelling"
"cancelled"
Whether the run is currently active, i.e. status is one of {'cancelling', 'queued', 'running'}.
Processor used for the run.
"base"
Timestamp of the creation of the task, as an RFC 3339 string.
"2025-04-24T18:56:22.513132Z"
Timestamp of the last modification to the task, as an RFC 3339 string.
"2025-04-24T18:56:22.513132Z"
Warnings for the run, if any.
[]
Error for the run, present only if status is 'failed'. An error message.
User-provided metadata stored with the run.
{}
ID of the taskgroup to which the run belongs.