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": {
        "additionalProperties": false,
        "properties": {
          "gdp": {
            "description": "GDP in USD for the year, formatted like '$3.1 trillion (2023)'",
            "type": "string"
          }
        },
        "required": [
          "gdp"
        ],
        "type": "object"
      },
      "type": "json"
    },
    "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"
      },
      "type": "json"
    }
  },
  "input": "France (2023)",
  "processor": "<string>",
  "metadata": {}
}

Authorizations

x-api-key
string
header
required

Path Parameters

run_id
string
required

Response

200
application/json
Successful Response

Request to run a task.

input
required

Input to the task, either text or a JSON object.

Example:

"France (2023)"

processor
string
required

Processor to use for the task.

task_spec
object | null

Task specification.

metadata
object | null

User-provided metadata stored with the run. Keys and values must be strings with a maximum length of 16 and 512 characters respectively.