# List Run Operations

See every record a run created or updated, and every error or warning it hit. Filter by actionStatus to pull just the failures.

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

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/operations' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `id` (string): Unique id of the operation.
- `workflowLogId` (string): The run this operation happened in.
- `stepId` (string): The workflow step that performed it.
- `stepInstanceId` (string): The exact step execution that performed it.
- `actionId` (string): The action that ran.
- `appId` (string): The app that action belongs to.
- `model` (string): The kind of record that was touched.
- `operation` (string): What happened to the record: create, update, and so on.
- `actionStatus` (string): How it went, for example error.
- `primaryKey` (string): The touched record's primary key in the target system.
- `message` (string): What the platform logged about it.
- `createdOn` (date): When it happened.

## Errors

- 409 Operations still being saved: `CONFLICT` / `RUN_OPERATIONS_NOT_READY` "Operations for run "Rm4pQ7sJt1Ve" are still being saved. Try again in a minute."
- 413 Run has too many operations: `PAYLOAD_TOO_LARGE` / `RUN_OPERATIONS_TOO_LARGE` "Run "Rm4pQ7sJt1Ve" has more operations than this endpoint serves (5000). Contact MindCloud support for its full operation list."
- 503 Operations temporarily unavailable: `UNAVAILABLE` / `RUN_OPERATIONS_UNAVAILABLE` "Operations for run "Rm4pQ7sJt1Ve" are temporarily unavailable. Try again later."
