GET
/
v1
/
tasks
/
runs
/
{run_id}
/
input
curl --request GET \
  --url https://api.parallel.ai/v1/tasks/runs/{run_id}/input \
  --header 'x-api-key: <api-key>'
{
  "task_spec": {
    "output_schema": {
      "json_schema": {
        "type": "object",
        "properties": {
          "gdp": {
            "type": "string",
            "description": "GDP in USD for the year, formatted like '$3.1 trillion (2023)'"
          }
        },
        "required": [
          "gdp"
        ],
        "additionalProperties": false
      },
      "type": "json"
    },
    "input_schema": {
      "json_schema": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string"
          },
          "year": {
            "type": "integer"
          }
        },
        "required": [
          "country",
          "year"
        ],
        "additionalProperties": false
      },
      "type": "json"
    }
  },
  "input": {
    "country": "France",
    "year": 2023
  },
  "processor": "core",
  "metadata": {
    "my_key": "my_value"
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

run_id
string
required

Response

200
application/json

Successful Response

Request to run a task.