# List Run Steps

See which steps a run executed and whether each one succeeded, without downloading any payloads. Every step comes back in one answer: the list is not paged, and limit is accepted and ignored.

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

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

## Response fields

- `stepInstanceId` (string): Unique id of this step execution. Use it to fetch the step's payloads with Get a Run Step.
- `stepId` (string): The step in the workflow definition.
- `actionId` (string): The action the step ran.
- `success` (boolean): True if the step succeeded.
- `ran` (boolean): True if the step executed. An If/Else branch the run did not take shows only when the other branch of the same If/Else ran: its first step appears with ran false and success null. A branch with no steps shows the same way as a placeholder with stepId null and a stepInstanceId starting with "stub-", which has no payloads. When neither branch ran a step, neither shows.
- `path` (string): Where the step sits inside loops and branches.

## Errors

- 404 Run or output not found (NOT_FOUND, RUN_OUTPUT_NOT_FOUND): `RUN_OUTPUT_NOT_FOUND` "Run output for "Rm4pQ7sJt1Ve" is not available. The run may still be starting or its output may have expired."
- 409 Run output unavailable: `RUN_OUTPUT_UNAVAILABLE` "The final output for run "Rm4pQ7sJt1Ve" is not available."
- 413 Run output too large: `RUN_OUTPUT_TOO_LARGE` "Run output for "Rm4pQ7sJt1Ve" is too large to serve through this endpoint."
- 502 Run output could not be loaded: `RUN_OUTPUT_UNAVAILABLE` "Run output for "Rm4pQ7sJt1Ve" could not be loaded."
