---
title: "List action runs in a space"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List action runs in a space

Path: CloudRaker Workspace API › Space Runs

`GET /spaces/{spaceId}/runs`

Lists the space's action runs, newest first. Requires `space:read` (denied → 404, which also hides the space's existence). Query: `limit` (1–100), `starting_after` (a run id, cursor pagination) and `file_id` (only the runs that read this input file). Returns 200 `{ data: ActionRun[], has_more: boolean }` — keep paging with `starting_after` set to the last returned id while `has_more` is true. Callers who lack `space:contribute` get capability fields (download and storage references, plus the `artifacts` array) redacted from each run.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`listSpaceRuns.path.spaceId`; string, required)

## Query parameters

- `limit` (`listSpaceRuns.query.limit`; integer, optional) — Page size, 1–100.
  - min 1; max 100; default `20`
- `starting_after` (`listSpaceRuns.query.starting_after`; string, optional) — Cursor: the `id` of the last run on the previous page.
  - minLength 1
- `file_id` (`listSpaceRuns.query.file_id`; string, optional) — Only the runs that read this input file.
  - minLength 1

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/spaces/<spaceId>/runs' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces/<spaceId>/runs';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/spaces/<spaceId>/runs"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

One page of runs, newest first.

#### Example

```json
{
  "data": [
    {
      "id": "run_01J…",
      "spaceId": "string",
      "actionSlug": "extract-structured",
      "actionVersion": -9007199254740991,
      "installedActionId": "string",
      "configRevision": -9007199254740991,
      "configOverridden": true,
      "config": {
        "property1": null,
        "property2": null
      },
      "playbookRunId": "string",
      "apiRunId": "string",
      "status": "running",
      "error": "string",
      "output": {},
      "artifacts": [
        {
          "id": "string",
          "kind": "link",
          "title": "string",
          "url": "string",
          "open": "tab"
        }
      ],
      "awaitingInput": [
        {
          "id": "string",
          "title": "string",
          "url": "string",
          "resolved": true
        }
      ],
      "documents": [
        {
          "fileId": "string",
          "name": "string",
          "contentType": "string"
        }
      ],
      "outputs": [
        {
          "fileId": "string",
          "kind": "string",
          "key": "string",
          "size": 0
        }
      ],
      "timeoutSeconds": -9007199254740991,
      "lastEventAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "finishedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "has_more": true
}
```

- `data` (`listSpaceRuns.response.200.data`; array<object>, required)
  - `id` (`listSpaceRuns.response.200.data.id`; string, required)
    - example `"run_01J…"`
  - `spaceId` (`listSpaceRuns.response.200.data.spaceId`; string, required)
  - `actionSlug` (`listSpaceRuns.response.200.data.actionSlug`; string, required)
    - example `"extract-structured"`
  - `actionVersion` (`listSpaceRuns.response.200.data.actionVersion`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `installedActionId` (`listSpaceRuns.response.200.data.installedActionId`; string, required)
  - `configRevision` (`listSpaceRuns.response.200.data.configRevision`; any of, required) — The revision of the saved config the run used. Null on a run created before revisions existed.
    - any of: `integer`, `null`
  - `configOverridden` (`listSpaceRuns.response.200.data.configOverridden`; boolean, required) — True when inline config changed the saved config for this run.
  - `playbookRunId` (`listSpaceRuns.response.200.data.playbookRunId`; string | null, required)
  - `status` (`listSpaceRuns.response.200.data.status`; string, required)
    - one of `"running"`, `"awaiting_input"`, `"done"`, `"failed"`
  - `error` (`listSpaceRuns.response.200.data.error`; string | null, required)
  - `output` (`listSpaceRuns.response.200.data.output`; any of, required) — The action’s JSON output, when it has one.
    - any of: `Option 1`, `null`
  - `artifacts` (`listSpaceRuns.response.200.data.artifacts`; array<object>, required) — Rendered links. Redacted for callers without `space:contribute`.
    - `id` (`listSpaceRuns.response.200.data.artifacts.id`; string, required)
    - `kind` (`listSpaceRuns.response.200.data.artifacts.kind`; string, required)
    - `title` (`listSpaceRuns.response.200.data.artifacts.title`; string, required)
    - `url` (`listSpaceRuns.response.200.data.artifacts.url`; string, required)
    - `open` (`listSpaceRuns.response.200.data.artifacts.open`; string, required)
      - one of `"tab"`, `"embed"`
  - `awaitingInput` (`listSpaceRuns.response.200.data.awaitingInput`; array<object>, required) — Open human steps while the run is `awaiting_input`.
    - `id` (`listSpaceRuns.response.200.data.awaitingInput.id`; string, required)
    - `title` (`listSpaceRuns.response.200.data.awaitingInput.title`; string, required)
    - `url` (`listSpaceRuns.response.200.data.awaitingInput.url`; string, required)
    - `resolved` (`listSpaceRuns.response.200.data.awaitingInput.resolved`; boolean, required)
  - `documents` (`listSpaceRuns.response.200.data.documents`; array<object>, required)
    - `fileId` (`listSpaceRuns.response.200.data.documents.fileId`; string, required)
    - `name` (`listSpaceRuns.response.200.data.documents.name`; string, required)
    - `contentType` (`listSpaceRuns.response.200.data.documents.contentType`; string | null, required)
  - `outputs` (`listSpaceRuns.response.200.data.outputs`; array<object>, required) — Downloadable byproducts; stream each with the run-output route.
    - `fileId` (`listSpaceRuns.response.200.data.outputs.fileId`; string, required)
    - `kind` (`listSpaceRuns.response.200.data.outputs.kind`; string, required)
    - `key` (`listSpaceRuns.response.200.data.outputs.key`; string, required)
    - `size` (`listSpaceRuns.response.200.data.outputs.size`; number, required)
  - `timeoutSeconds` (`listSpaceRuns.response.200.data.timeoutSeconds`; integer, required)
    - min -9007199254740991; max 9007199254740991
  - `lastEventAt` (`listSpaceRuns.response.200.data.lastEventAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `createdAt` (`listSpaceRuns.response.200.data.createdAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `createdBy` (`listSpaceRuns.response.200.data.createdBy`; string | null, required)
  - `finishedAt` (`listSpaceRuns.response.200.data.finishedAt`; any of, required)
    - any of: `string`, `null`
  - `config` (`listSpaceRuns.response.200.data.config`; map<unknown>, optional) — The exact config used by this run, including inline overrides. Returned on the run detail read only.
  - `apiRunId` (`listSpaceRuns.response.200.data.apiRunId`; string, optional) — The id of the `/v1` run that started this run, for example `exr_…`. Absent when the run started another way.
- `has_more` (`listSpaceRuns.response.200.has_more`; boolean, required)


Source: https://docs.cloudraker.com/workspace/api/space-runs/list-space-runs/index.md
