Tasks Runs Input Get
Retrieves the input of a run by run_id.
GET
/
v1
/
tasks
/
runs
/
{run_id}
/
input
Copy
curl --request GET \
--url https://api.parallel.ai/v1/tasks/runs/{run_id}/input \
--header 'x-api-key: <api-key>'
Copy
{
"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
Path Parameters
Response
200
application/json
Successful Response
Request to run a task.
Copy
curl --request GET \
--url https://api.parallel.ai/v1/tasks/runs/{run_id}/input \
--header 'x-api-key: <api-key>'
Copy
{
"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"
}
}
Assistant
Responses are generated using AI and may contain mistakes.