---
title: "Get a run 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.

# Get a run in a space

Path: CloudRaker Paperwork API › Spaces

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

Returns a run created in this space. Identical to `GET /v1/runs/{id}`, except that a run belonging to another space — or to no space — answers `404`.

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

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`spaceGetRun.path.spaceId`; string, required)
- `id` (`spaceGetRun.path.id`; string, required)

## Query parameters

- `output` (`spaceGetRun.query.output`; string, optional) — Return parsed source inline for parse/extract runs when the combined source is at most 1 MiB; otherwise retain signed URLs only.
  - one of `"urls"`, `"inline"`; default `"urls"`
- `include` (`spaceGetRun.query.include`; string, optional)
- `wait` (`spaceGetRun.query.wait`; integer, optional)
  - min 0; max 120; default `0`

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The run.

#### Example

```json
{
  "object": "extract_run",
  "id": "string",
  "status": "queued",
  "expiresAt": "string",
  "statusUrl": "string",
  "files": [
    {
      "id": "string",
      "name": "string",
      "status": "string",
      "error": "string"
    }
  ],
  "file": {
    "id": "string",
    "name": "string",
    "status": "string",
    "error": "string"
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "metadata": {
    "property1": null,
    "property2": null
  },
  "config": {
    "schema": {
      "property1": null,
      "property2": null
    },
    "revision": 1,
    "overridden": true
  },
  "output": {
    "value": null,
    "citations": {
      "property1": [
        {
          "fileId": "string",
          "page": 0,
          "bbox": {
            "x": 0,
            "y": 0,
            "width": 0,
            "height": 0
          },
          "timecodeStart": 0,
          "timecodeEnd": 0,
          "timecode": 0,
          "text": "string",
          "confidence": 0,
          "uncited": true,
          "notFound": true
        }
      ],
      "property2": [
        {
          "fileId": "string",
          "page": 0,
          "bbox": {
            "x": 0,
            "y": 0,
            "width": 0,
            "height": 0
          },
          "timecodeStart": 0,
          "timecodeEnd": 0,
          "timecode": 0,
          "text": "string",
          "confidence": 0,
          "uncited": true,
          "notFound": true
        }
      ]
    },
    "citationsOmitted": true,
    "markdownUrl": "string",
    "jsonUrl": "string",
    "markdown": "string",
    "json": null,
    "documents": [
      {
        "fileId": "string",
        "name": "string",
        "status": "string",
        "error": "string",
        "value": null,
        "citations": {
          "property1": [
            {
              "fileId": "string",
              "page": 0,
              "bbox": {},
              "timecodeStart": 0,
              "timecodeEnd": 0,
              "timecode": 0,
              "text": "string",
              "confidence": 0,
              "uncited": true,
              "notFound": true
            }
          ],
          "property2": [
            {
              "fileId": "string",
              "page": 0,
              "bbox": {},
              "timecodeStart": 0,
              "timecodeEnd": 0,
              "timecode": 0,
              "text": "string",
              "confidence": 0,
              "uncited": true,
              "notFound": true
            }
          ]
        },
        "markdownUrl": "string",
        "jsonUrl": "string",
        "markdown": "string",
        "json": null
      }
    ]
  }
}
```

Any of:

- `V1ExtractRun`
- `V1ParseRun`
- `V1RedactRun`
- `V1FillRun`
- `V1SignRun`
- `V1PipelineRun`

### 400

Validation Error

#### Example

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

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

### 404

Unknown run, or a run outside this 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` (`spaceGetRun.response.429.code`; string, required)
  - one of `"rate_limited"`
- `message` (`spaceGetRun.response.429.message`; string, required)
- `retryable` (`spaceGetRun.response.429.retryable`; boolean, required)
  - one of `true`
- `requestId` (`spaceGetRun.response.429.requestId`; string, required)
- `docUrl` (`spaceGetRun.response.429.docUrl`; string, optional)


Source: https://docs.cloudraker.com/paperwork/api/spaces/space-get-run/index.md
