# List Runs

See every time a workflow ran. Filter by status, environment, version, or date to find the runs you care about.

`GET https://connect.mindcloud.co/v2/workflows/:workflowId/runs`

Permissions: `log:view`.

## Parameters

### Path

- `workflowId` (string, required): The workflow's id, from List Workflows.

### 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/workflows/Wq3kZ8pLx2Nb/runs' \
  --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.
