Python
from parallel import Parallel
client = Parallel()
task_run = client.task_run.retrieve("run_id")
print(task_run.status)import Parallel from "parallel-web";
const client = new Parallel();
const taskRun = await client.taskRun.retrieve('run_id');
console.log(taskRun.status);curl --request GET \
--url https://api.parallel.ai/v1/tasks/groups/{taskgroup_id}/runs/{run_id} \
--header 'x-api-key: <api-key>'{
"run_id": "trun_9907962f83aa4d9d98fd7f4bf745d654",
"interaction_id": "trun_9907962f83aa4d9d98fd7f4bf745d654",
"status": "running",
"is_active": true,
"processor": "core",
"metadata": {
"my_key": "my_value"
},
"created_at": "2025-04-23T20:21:48.037943Z",
"modified_at": "2025-04-23T20:21:48.037943Z"
}{
"type": "error",
"error": {
"ref_id": "fcb2b4f3-c75e-4186-87bc-caa1a8381331",
"message": "Unauthorized: invalid or missing credentials"
}
}{
"type": "error",
"error": {
"ref_id": "fcb2b4f3-c75e-4186-87bc-caa1a8381331",
"message": "Run id not found"
}
}{
"type": "error",
"error": {
"ref_id": "fcb2b4f3-c75e-4186-87bc-caa1a8381331",
"message": "Request validation error"
}
}Tasks
Retrieve Task Group Run
Retrieves run status by run_id.
This endpoint is equivalent to fetching run status directly using the
retrieve() method or the tasks/runs GET endpoint.
The run result is available from the /result endpoint.
GET
/
v1
/
tasks
/
groups
/
{taskgroup_id}
/
runs
/
{run_id}
Python
from parallel import Parallel
client = Parallel()
task_run = client.task_run.retrieve("run_id")
print(task_run.status)import Parallel from "parallel-web";
const client = new Parallel();
const taskRun = await client.taskRun.retrieve('run_id');
console.log(taskRun.status);curl --request GET \
--url https://api.parallel.ai/v1/tasks/groups/{taskgroup_id}/runs/{run_id} \
--header 'x-api-key: <api-key>'{
"run_id": "trun_9907962f83aa4d9d98fd7f4bf745d654",
"interaction_id": "trun_9907962f83aa4d9d98fd7f4bf745d654",
"status": "running",
"is_active": true,
"processor": "core",
"metadata": {
"my_key": "my_value"
},
"created_at": "2025-04-23T20:21:48.037943Z",
"modified_at": "2025-04-23T20:21:48.037943Z"
}{
"type": "error",
"error": {
"ref_id": "fcb2b4f3-c75e-4186-87bc-caa1a8381331",
"message": "Unauthorized: invalid or missing credentials"
}
}{
"type": "error",
"error": {
"ref_id": "fcb2b4f3-c75e-4186-87bc-caa1a8381331",
"message": "Run id not found"
}
}{
"type": "error",
"error": {
"ref_id": "fcb2b4f3-c75e-4186-87bc-caa1a8381331",
"message": "Request validation error"
}
}Response
Successful Response
Status of a task run.