> ## Documentation Index
> Fetch the complete documentation index at: https://docs.platform.toloka.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# client.runs.get()

> Get a pipeline run.

Return run status, item counts, and any error. Poll until `status` is `succeeded` or `failed`. A canceled run reports `failed` with `Run canceled`.

## Signature

Method signature on `client.runs`:

```ts theme={null}
get(args: {
  runId: string;
}): Promise<RunJob>;
```

## Parameters

**runId** `string` *required*

Pipeline run ID with prefix `plr.`.

## Returns

`Promise<RunJob>`

A pipeline run job. Poll until status is succeeded or failed.

**id** `RunId` *required*

Pipeline run ID with prefix `plr.`.

**datasetId** `DatasetId` *required*

Dataset ID with prefix `ds.`.

**status** `"pending" | "running" | "succeeded" | "failed"` *required*

Run state: `pending` before deployment, `running` while processing, `succeeded` when processing ends, or `failed` if deployment fails; individual item failures are counted in `result`.

**createdAt** `string` *required*

Time the run was created, as an ISO 8601 timestamp.

**error** `string | null` *required*

Deployment failure message, or null when the run deployed successfully.

**result** `RunStats` *required*

Counts of items and their current outcomes.

**Fields**

**total** `number` *required*

Total number of items in this run.

**completed** `number` *required*

Number of items that completed successfully.

**failed** `number` *required*

Number of items that failed.

**canceled** `number` *required*

Number of items that were canceled.

**paused** `number` *required*

Number of items currently paused.

## Errors

HTTP errors throw [`PotatoApiError`](https://docs.platform.toloka.ai/docs/sdk/errors). The endpoint documents these error responses:

| Status | Description |
| - | - |
| 404 | Run not found |
| 429 | Rate limit exceeded |

HTTP endpoint: [`GET /runs/{runId}`](https://docs.platform.toloka.ai/docs/api-reference/runs/get-pipeline-run).

```ts get() theme={null}
import { createClient } from "@toloka-platform/sdk";

const client = createClient({
  baseUrl: "https://platform.toloka.ai",
  apiKey: process.env.TOLOKA_API_KEY!,
});

const run = await client.runs.get({
  runId: "plr.019a0000-0000-7000-8000-000000000001"
});
console.log(run);
```

```json get() theme={null}
{
  "id": "plr.019a0000-0000-7000-8000-000000000001",
  "datasetId": "ds.019a0000-0000-7000-8000-000000000001",
  "status": "pending",
  "createdAt": "2026-01-01T00:00:00Z",
  "error": null,
  "result": {
    "total": 0,
    "completed": 0,
    "failed": 0,
    "canceled": 0,
    "paused": 0
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.