---
docId: doc_d1c3ab477fba46549e4fa69a33d2f25f
title: Start a run
description: Run a suite against one to four versions of an agent in a single launch. It answers right away with the queued launch.
api:
  group: agentes/evals/corridas
  auth: bearer
  operations:
    - operationId: startEvalRun
      method: POST
      path: '/v1/agents/{agentId}/evals/runs'
      postmanName: Start a run
---

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

# Start a run

Test a [suite](/api-reference/evals) against one to four agent versions. Send `suiteId` and `versions`; you will receive `202` with the `launchId` to [check progress](/api-reference/evals/runs/get). One run is created per version.

<Note type="warning">

**Starting a run costs messages.** It uses the agent's real tools and each agent turn is charged as an internal message. Run only when the person asking has seen the cost from the [estimate](/api-reference/evals/runs/estimate). If the response is lost, check [List runs](/api-reference/evals/runs/list) before retrying: the launch may have started.

</Note>

## Example

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

```bash
curl -X POST "https://api.platic.ai/v1/agents/$AGENT_ID/evals/runs" \
  -H "Authorization: Bearer $PLATIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "suiteId": "s8Kd2LmQ",
  "versions": ["draft", "published"]
}'
```

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

```ts
await platic.agents.evals.runs.start("agent_123", { suiteId: "suite_123", versions: ["draft"] });
```

</Ways.Way>
</Ways>

## Path parameters

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

## Request body

```json
{
  "suiteId": "s8Kd2LmQ",
  "versions": ["draft", "published"]
}
```

The same fields as the [estimate](/api-reference/evals/runs/estimate#request-body).

| Field | Type | Description | Required |
|-------|------|-------------|----------|
| `suiteId` | string | The suite. | ✓ |
| `versions` | array | 1 to 4 versions: `draft`, `published` or `vN` (the exact version number, for example `v5`). | ✓ |

## Response

`202` with the launch:

```json
{
  "status": "success",
  "data": {
    "launchId": "lch_2c9f41",
    "suiteId": "s8Kd2LmQ",
    "suiteRevision": 3,
    "suiteHash": "sha256:9b0e…",
    "trigger": "manual",
    "status": "queued",
    "createdAt": "2026-11-01T15:20:04.000Z",
    "progress": { "totalTrials": 12, "finishedTrials": 0 },
    "estimatedMaxMessages": 24,
    "runs": [
      {
        "runId": "run_a1f3",
        "launchId": "lch_2c9f41",
        "suiteId": "s8Kd2LmQ",
        "versionId": "v7",
        "number": 7,
        "requested": ["draft"],
        "trigger": "manual",
        "status": "queued",
        "outcome": null,
        "passed": null,
        "pass1": null,
        "erroredTrials": 0,
        "progress": { "totalTrials": 6, "finishedTrials": 0 },
        "createdAt": "2026-11-01T15:20:04.000Z"
      },
      {
        "runId": "run_b2c4",
        "launchId": "lch_2c9f41",
        "suiteId": "s8Kd2LmQ",
        "versionId": "v5",
        "number": 5,
        "requested": ["published"],
        "trigger": "manual",
        "status": "queued",
        "outcome": null,
        "passed": null,
        "pass1": null,
        "erroredTrials": 0,
        "progress": { "totalTrials": 6, "finishedTrials": 0 },
        "createdAt": "2026-11-01T15:20:04.000Z"
      }
    ]
  }
}
```

## Response fields

| Field | Description |
|-------|-------------|
| `launchId` | The launch. Use it to read it with [Get a launch](/api-reference/evals/runs/get). |
| `suiteId` | The suite. It can be `null`. |
| `suiteRevision` | Which edition of the suite was frozen: the number goes up every time the suite is replaced. It can be `null`. |
| `suiteHash` | Fingerprint of the frozen suite. Two runs with the same `suiteHash` ran exactly the same thing. |
| `trigger` | `manual`, or `on_publish` if it ran on its own [on publish](/api-reference/evals/on-publish/set). |
| `status` | `queued` at the start. Later, `running`, `completed` or `cancelled`. See [Results](/api-reference/evals/results). |
| `createdAt` | Creation date, ISO 8601. |
| `progress` | `totalTrials` and `finishedTrials`, adding up all versions. |
| `estimatedMaxMessages` | The most it can cost, as in the estimate. It can be `null`. |
| `runs` | One run per version, with the fields of [List runs](/api-reference/evals/runs/list#response-fields). |

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | The body is not valid; for example, more than four versions. |
| `404` | `AGENT_NOT_FOUND` | The agent does not exist or belongs to another workspace. |
| `404` | `EVAL_NOT_FOUND` | The suite does not exist in your workspace. |
| `404` | `EVAL_VERSION_NOT_FOUND` | One of the versions does not exist. |
| `409` | `EVAL_SUITE_STALE` | The suite is archived or one of its scenarios no longer exists. |
| `429` | `EVAL_CAPACITY` | The launch goes over the trial limit (64 by default; the estimate warns with `too_many_trials`) or too many evals are running. Choose fewer versions, scenarios or trials, or retry later. |
| `503` | `EVAL_ENGINE_UNAVAILABLE` | The evals service did not answer. Check [List runs](/api-reference/evals/runs/list) before retrying. |

## Notes

- `runs` can come back empty: the launch is already running (and costing), but its runs could not be read yet. Read them with [Get a launch](/api-reference/evals/runs/get). **Do not launch it again with another key.**
- Each version is resolved to its exact `vN` at that moment. If you save or publish later, the run keeps evaluating the same version. If two values in `versions` are the same version, it runs only once.
- It never blocks or changes publishing.
- It requires permission to edit the agent, the same as to [publish](/api-reference/agents/publications/publish).
- Next: [read the launch](/api-reference/evals/runs/get) until it finishes. To stop it, [cancel it](/api-reference/evals/runs/cancel).
