# Get Run

Check one run: status, timing, task count, and, while it is still running, the step it is on.

`GET https://connect.mindcloud.co/v2/runs/:runId`

Permissions: `log:view`.

## Parameters

### Path

- `runId` (string, required): The run's id, from List Runs.

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

## Example request

```bash
curl --request GET \
  --url 'https://connect.mindcloud.co/v2/runs/Rm4pQ7sJt1Ve' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `id` (string): Unique id of the run.
- `workflowId` (string): The workflow this run belongs to.
- `status` (string): Where the run stands or how it ended: waiting, running, finished, failed, cancelled, interrupted, limitExceeded, or cancelling.
- `version` (string): The workflow version that ran, or "draft".
- `environmentId` (string): The environment the run targeted.
- `environmentName` (string): That environment's name.
- `startedOn` (date): When the run started.
- `finishedOn` (date): When the run finished. Empty while it is still going.
- `durationMs` (number): How long the run took, in milliseconds.
- `operations` (number): How many tasks the run used. This is the number that counts against your limit.
- `errorCount` (number): How many errors the run logged.
- `warningCount` (number): How many warnings the run logged.
- `infoCount` (number): How many info entries the run logged.
- `endUserId` (string): The embedded end user the run belongs to, if any.
- `installationId` (string): The embedded installation the run belongs to, if any.
- `triggerAppSlug` (string): The app that triggered the run.
- `summary` (string): A short summary of what the run did.
- `activeStepId` (string): The last step the run reached: while it runs, the step it is on now; once it ends, it still names the step it was on last, so read status, not this field, to tell whether it is running.
- `activeMessage` (string): Reserved: always null on this route.
