---
docId: doc_25fd34cc552440d9843214763e76c588
title: List runs
description: An agent's runs, one per version, newest first. It includes the ones that ran on their own on publish.
api:
  group: agentes/evals/corridas
  auth: bearer
  operations:
    - operationId: listEvalRuns
      method: GET
      path: '/v1/agents/{agentId}/evals/runs'
      postmanName: List runs
      query:
        - key: versionId
          value: published
          description: draft, published o vN.
        - key: suiteId
          value: ''
          description: Solo las corridas de esta suite.
        - key: limit
          value: '20'
          description: De 1 a 100.
        - key: pageToken
          value: ''
          description: El nextPageToken de la página anterior.
---

<script>
  import { Ways } from '$lib/components';
</script>

# List runs

Find an agent’s [runs](/api-reference/evals) to review their results. Use `launchId` to open a run’s trials. The list shows one entry per evaluated version, newest first, including tests started automatically on publish (`trigger: "on_publish"`).

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl "https://api.platic.ai/v1/agents/$AGENT_ID/evals/runs?versionId=published&limit=20" \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.agents.evals.runs.list("agent_123");
```

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `agentId` | string | Agent ID | ✓ |

## Query parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `versionId` | string | Only the runs of that version: `draft`, `published` or `vN`. `draft` and `published` resolve to the version they are now. | — |
| `suiteId` | string | Only the runs of that suite. | — |
| `limit` | number | From 1 to 100. Default: `20`. | — |
| `pageToken` | string | The previous page's `nextPageToken`. | — |

## Response

```json
{
  "status": "success",
  "data": [
    {
      "runId": "run_a1f3",
      "launchId": "lch_2c9f41",
      "suiteId": "s8Kd2LmQ",
      "versionId": "v7",
      "number": 7,
      "requested": ["draft"],
      "trigger": "manual",
      "status": "completed",
      "outcome": "passed",
      "passed": true,
      "pass1": 1,
      "erroredTrials": 0,
      "progress": { "totalTrials": 6, "finishedTrials": 6 },
      "createdAt": "2026-11-01T15:20:04.000Z"
    }
  ],
  "nextPageToken": null
}
```

## Response fields

| Field | Description |
|-------|-------------|
| `runId` | The run. |
| `launchId` | The launch it belongs to. Use it to open its trials in [Get a launch](/api-reference/evals/runs/get). It can be `null`. |
| `suiteId` | The suite that ran. It can be `null`. |
| `versionId`, `number` | The exact version it evaluated. `number` can be `null`. |
| `requested` | What was requested (`draft`, `published` or `vN`). If two values were the same version, it has both. |
| `trigger` | `manual`, or `on_publish` if it ran on its own [on publish](/api-reference/evals/on-publish/set). |
| `status` | `queued`, `running`, `completed` or `cancelled`. |
| `outcome` | `passed`, `failed` or `inconclusive`; `null` until it finishes. See [Results](/api-reference/evals/results#a-runs-outcome). |
| `passed` | The same as a boolean: `true` if `outcome` is `passed`, `false` if it is `failed`, `null` otherwise. |
| `pass1` | Fraction of valid trials that passed (not counting those with `error` or `cancelled`). `null` until there is a result. |
| `erroredTrials` | Trials that ended in a technical error. They do not count as failures. |
| `progress` | `totalTrials` and `finishedTrials` of this run. |
| `createdAt` | Creation date, ISO 8601. |
| `nextPageToken` | Send it as `pageToken` to get the next page; `null` when there are no more results. |

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | A parameter is not valid; for example, a `versionId` that is not `draft`, `published` or `vN`. |
| `404` | `AGENT_NOT_FOUND` | The agent does not exist or belongs to another workspace. |

## Notes

- It is the only evals list that paginates: profiles, scenarios and suites come complete.
- Read access to the agent is enough.
