# Read a run with its evidence and usage.

> `evidence` is what Koidog verified: commits on the branch, every check command the node ran with its exit code, whether the branch was pushed, the pull request.
> https://koi.dog/docs/api/runs/get-run/

`GET /api/v1/runs/{id}` · Scope: `read`

A run's `outcome` is `success` only on that evidence. No query parameters.

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The run's id. |

## Response.

200 OK: a `Run`. The example has placeholder values.

## Request.

```sh
curl "https://app.koi.dog/api/v1/runs/$ID" \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch(`https://app.koi.dog/api/v1/runs/${process.env.ID}`, {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    f"https://app.koi.dog/api/v1/runs/{os.environ['ID']}",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "id": "string",
  "agentId": "string",
  "taskId": "string",
  "nodeId": "string",
  "attempt": 0,
  "startedAt": "string",
  …
}
```
