Skip to main content
GET
/
v1beta
/
tasks
/
groups
/
{taskgroup_id}
/
runs
Python
from parallel import Parallel

client = Parallel(api_key="API Key")

task_group_runs = client.beta.task_group.get_runs("taskgroup_id")
for run in task_group_runs:
    print(run)
{
  "type": "<string>",
  "event_id": "<string>",
  "run": {
    "run_id": "<string>",
    "status": "queued",
    "is_active": true,
    "processor": "<string>",
    "created_at": "2025-04-24T18:56:22.513132Z",
    "modified_at": "2025-04-24T18:56:22.513132Z",
    "warnings": [],
    "error": {
      "ref_id": "<string>",
      "message": "<string>",
      "detail": {}
    },
    "metadata": {},
    "taskgroup_id": "<string>"
  },
  "input": {
    "processor": "<string>",
    "input": "What was the GDP of France in 2023?",
    "metadata": {},
    "source_policy": {
      "include_domains": [
        "<string>"
      ],
      "exclude_domains": [
        "<string>"
      ]
    },
    "task_spec": {
      "output_schema": {
        "json_schema": {},
        "type": "json"
      },
      "input_schema": "<string>"
    },
    "mcp_servers": [
      {
        "url": "<string>",
        "name": "<string>",
        "type": "url",
        "headers": {},
        "allowed_tools": [
          "<string>"
        ]
      }
    ],
    "enable_events": true,
    "webhook": {
      "url": "<string>",
      "event_types": []
    }
  },
  "output": {
    "basis": [
      {
        "field": "<string>",
        "reasoning": "<string>",
        "citations": [],
        "confidence": "low"
      }
    ],
    "type": "<string>",
    "content": "<string>",
    "beta_fields": {}
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

taskgroup_id
string
required

Query Parameters

last_event_id
string | null
status
enum<string> | null
Available options:
queued,
action_required,
running,
completed,
failed,
cancelling,
cancelled
include_input
boolean
default:false
include_output
boolean
default:false

Response

Successful Response

Event when a task run transitions to a non-active status.

May indicate completion, cancellation, or failure.

type
string
required

Event type; always 'task_run.state'.

Allowed value: "task_run.state"
event_id
string | null
required

Cursor to resume the event stream. Always empty for non Task Group runs.

run
TaskRun · object
required

Task run object.

input
BetaTaskRunInput · object

Input to the run; included only if requested.

output
TaskRunTextOutput · object

Output from the run; included only if requested and if status == completed.