---
title: "List a space’s runs"
---

> 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 a space’s runs

Path: CloudRaker Paperwork API › Spaces

`GET /v1/spaces/{spaceId}/runs`

Lists the runs created in this space, newest first — the same listing (and the same `object`, `status`, `metadata.<key>` filters and cursor paging) as `GET /v1/runs`, narrowed to one space.

**Learn more:** [Spaces](https://docs.cloudraker.com/paperwork/developers/spaces)

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Query parameters

- `object` (`spaceListRuns.query.object`; string, optional) — Only runs of this kind — `extract_run`, `parse_run`, `redact_run`, `fill_run`, `sign_run`, `classify_run`, `split_run` or `pipeline_run`.
  - one of `"extract_run"`, `"parse_run"`, `"redact_run"`, `"fill_run"`, `"sign_run"`, `"classify_run"`, `"split_run"`, `"pipeline_run"`
- `status` (`spaceListRuns.query.status`; string, optional) — Only runs in this state.
  - one of `"processing"`, `"processed"`, `"failed"`, `"cancelled"`, `"expired"`, `"needs_input"`
- `limit` (`spaceListRuns.query.limit`; integer, optional) — How many runs to return, 1–50.
  - min 1; max 50; default `20`
- `cursor` (`spaceListRuns.query.cursor`; string, optional) — The `cursor` from the previous page. Opaque — pass it back unchanged.
  - minLength 1

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/v1/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/v1/spaces/<spaceId>/runs"

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

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

print(response.text)
```

## Responses

### 200

The runs.

#### Example

```json
{
  "object": "list",
  "data": [
    {
      "object": "extract_run",
      "id": "string",
      "status": "queued",
      "createdAt": "string",
      "expiresAt": "string",
      "statusUrl": "string",
      "metadata": {
        "property1": null,
        "property2": null
      },
      "kept": {
        "spaceId": "string",
        "keptAt": "string"
      }
    }
  ],
  "has_more": true,
  "cursor": "string"
}
```

- `object` (`spaceListRuns.response.200.object`; string, required)
- `data` (`spaceListRuns.response.200.data`; array<object>, required)
  - `object` (`spaceListRuns.response.200.data.object`; string, required)
    - one of `"extract_run"`, `"parse_run"`, `"redact_run"`, `"fill_run"`, `"sign_run"`, `"classify_run"`, `"split_run"`, `"pipeline_run"`
  - `id` (`spaceListRuns.response.200.data.id`; string, required)
  - `status` (`spaceListRuns.response.200.data.status`; string, required) — Where the run is in its life. | Status | Meaning | | --- | --- | | `queued` | Accepted, not started | | `processing` | Work in flight | | `needs_input` | Waiting for an external action, such as an e-signature | | `processed` | Finished; `output` is populated | | `failed` | Finished unsuccessfully | | `cancelled` | Stopped on request | | `expired` | TTL elapsed and the data was purged | The last four are terminal.
    - one of `"queued"`, `"processing"`, `"processed"`, `"failed"`, `"cancelled"`, `"expired"`, `"needs_input"`
  - `createdAt` (`spaceListRuns.response.200.data.createdAt`; string, required)
  - `expiresAt` (`spaceListRuns.response.200.data.expiresAt`; string | null, required)
  - `statusUrl` (`spaceListRuns.response.200.data.statusUrl`; string, required)
  - `metadata` (`spaceListRuns.response.200.data.metadata`; map<unknown>, optional)
  - `kept` (`spaceListRuns.response.200.data.kept`; object, optional)
    - `spaceId` (`spaceListRuns.response.200.data.kept.spaceId`; string, required)
    - `keptAt` (`spaceListRuns.response.200.data.kept.keptAt`; string, required)
- `has_more` (`spaceListRuns.response.200.has_more`; boolean, required)
- `cursor` (`spaceListRuns.response.200.cursor`; string, optional)

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`spaceListRuns.response.400.success`; boolean, required)
  - one of `false`
- `error` (`spaceListRuns.response.400.error`; array<unknown>, required)
- `data` (`spaceListRuns.response.400.data`; unknown, required)

### 404

Unknown, archived or expired space.

### 429

Rate limited. The `/v1` API allows at least **67 requests per minute per organization** (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the `Retry-After` interval and retry — the error is `retryable`.

#### Example

```json
{
  "code": "rate_limited",
  "message": "string",
  "retryable": true,
  "requestId": "string",
  "docUrl": "string"
}
```

- `code` (`spaceListRuns.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`spaceListRuns.response.429.message`; string, required)
- `retryable` (`spaceListRuns.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`spaceListRuns.response.429.requestId`; string, required)
- `docUrl` (`spaceListRuns.response.429.docUrl`; string, optional)


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