Tasks
Create Task Run
Initiates a task run.
Returns immediately with a run object in status 'queued'.
Beta features can be enabled by setting the 'parallel-beta' header.
post/v1/tasks/runs
Headers
parallel-betastring nullable
Request body
Example request
{
"processor": "base",
"source_policy": {
"include_domains": [
"wikipedia.org",
"usa.gov",
".edu"
],
"exclude_domains": [
"reddit.com",
"x.com",
".ai"
],
"after_date": "2024-01-01"
},
"advanced_settings": {
"location": "us"
},
"task_spec": {
"output_schema": {
"json_schema": {
"additionalProperties": false,
"properties": {
"gdp": {
"description": "GDP in USD for the year, formatted like '$3.1 trillion (2023)'",
"type": "string"
}
},
"required": [
"gdp"
],
"type": "object"
}
},
"input_schema": {
"json_schema": {
"additionalProperties": false,
"properties": {
"gdp": {
"description": "GDP in USD for the year, formatted like '$3.1 trillion (2023)'",
"type": "string"
}
},
"required": [
"gdp"
],
"type": "object"
}
}
}
}Response
Successful Response
Example response
{
"run_id": "trun_e0083b6aac0544eb8686e8d2a76533d2",
"interaction_id": "trun_e0083b6aac0544eb8686e8d2a76533d2",
"status": "queued",
"warnings": [],
"processor": "base",
"metadata": {},
"created_at": "2025-04-24T18:56:22.513132Z",
"modified_at": "2025-04-24T18:56:22.513132Z"
}