Skip to main content
GET
/
v1
/
tasks
/
runs
/
{run_id}
/
input
Retrieve Task Run Input
import requests

url = "https://api.parallel.ai/v1/tasks/runs/{run_id}/input"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "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>"
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

run_id
string
required

Response

Successful Response

Request to run a task.

processor
string
required

Processor to use for the task.

input
required

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

Example:

"What was the GDP of France in 2023?"

metadata
Metadata · object

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

source_policy
SourcePolicy · object

Optional source policy governing preferred and disallowed domains in web search results.

task_spec
TaskSpec · object

Task specification. If unspecified, defaults to auto output schema.