Tasks

Retrieve Task Run Result

Changed on

Retrieves a run result by run_id, blocking until the run is completed.

get/v1/tasks/runs/{run_id}/result

Request

  • Base URL
    https://api.parallel.ai
  • Auth
    API key in header x-api-key

Path parameters

run_idstring required

Query parameters

timeoutinteger

Headers

parallel-betastring nullable

Response

Successful Response

Example response

{
  "run": {
    "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"
  },
  "output": {
    "basis": [
      {
        "confidence": "low"
      }
    ]
  }
}

Changes

    • info

      api tag Tasks added

    • info

      api tag Tasks v1 removed

    • info

      added the new optional header request parameter parallel-beta

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      response property output/oneOf[subschema #1: TaskRunTextOutput]/beta_fields deprecated

    • info

      response property output/oneOf[subschema #2: TaskRunJsonOutput]/beta_fields deprecated

    • info

      added the required property / to the response with the status