---
title: "Get a run result"
---

> 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 result

Path: CloudRaker Workspace API › Space Runs

`GET /spaces/{spaceId}/runs/{runId}/result`

Fetches the durable, grounded result of a terminal extract-structured run: one entry per source document with extracted `data`, per-field `evidence` (source citations), envelope (`unit`, `fieldKeys`, `schema`) and per-document status. Requires `space:read` (denied → 404, which also hides the space's existence). Returns 404 while the run is still `running` or when no result exists. Response status and headers are preserved.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`getSpaceRunResult.path.spaceId`; string, required)
- `runId` (`getSpaceRunResult.path.runId`; string, required)

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The durable, grounded run result.

#### Example

```json
{
  "version": -9007199254740991,
  "runId": "string",
  "actionSlug": "string",
  "unit": "per_document",
  "fieldKeys": [
    "string"
  ],
  "schema": {
    "property1": null,
    "property2": null
  },
  "docs": [
    {
      "id": "string",
      "name": "string",
      "contentType": "string",
      "status": "done",
      "error": "string",
      "data": {
        "property1": null,
        "property2": null
      },
      "evidence": {
        "property1": [
          {
            "property1": null,
            "property2": null
          }
        ],
        "property2": [
          {
            "property1": null,
            "property2": null
          }
        ]
      },
      "rows": [
        {
          "data": {
            "property1": null,
            "property2": null
          },
          "evidence": {
            "property1": [
              {}
            ],
            "property2": [
              {}
            ]
          }
        }
      ],
      "edited": true
    }
  ],
  "evidenceOmitted": true,
  "dataOmitted": true,
  "createdAt": "2019-08-24T14:15:22Z",
  "finishedAt": "2019-08-24T14:15:22Z"
}
```

- `version` (`getSpaceRunResult.response.200.version`; integer, required)
  - min -9007199254740991; max 9007199254740991
- `runId` (`getSpaceRunResult.response.200.runId`; string, required)
- `actionSlug` (`getSpaceRunResult.response.200.actionSlug`; string, required)
- `unit` (`getSpaceRunResult.response.200.unit`; string, required)
  - one of `"per_document"`, `"across_documents"`, `"rows_per_document"`
- `fieldKeys` (`getSpaceRunResult.response.200.fieldKeys`; array<string>, required) — The schema's fields in the order their author set, which is the order to display them in. `data` and `schema.properties` are returned in this order too. A nested object and an array's item schema carry their own order in `x-order`.
- `schema` (`getSpaceRunResult.response.200.schema`; any of, required) — The applied (or inferred) extraction schema, its properties in the authored order. Each object level also carries that order in `x-order`.
  - any of: `map<unknown>`, `null`
- `docs` (`getSpaceRunResult.response.200.docs`; array<object>, required)
  - `id` (`getSpaceRunResult.response.200.docs.id`; string, required) — The source fileId, or `merged` for across_documents.
  - `name` (`getSpaceRunResult.response.200.docs.name`; string, required)
  - `contentType` (`getSpaceRunResult.response.200.docs.contentType`; string | null, required)
  - `status` (`getSpaceRunResult.response.200.docs.status`; string, required)
    - one of `"done"`, `"failed"`
  - `error` (`getSpaceRunResult.response.200.docs.error`; string, optional)
  - `data` (`getSpaceRunResult.response.200.docs.data`; map<unknown>, optional)
  - `evidence` (`getSpaceRunResult.response.200.docs.evidence`; map<array<map<unknown>>>, optional) — Field key → citations backing that value.
  - `rows` (`getSpaceRunResult.response.200.docs.rows`; array<object>, optional) — Present for a `rows_per_document` run.
    - `data` (`getSpaceRunResult.response.200.docs.rows.data`; map<unknown>, required)
    - `evidence` (`getSpaceRunResult.response.200.docs.rows.evidence`; map<array<map<unknown>>>, optional)
  - `edited` (`getSpaceRunResult.response.200.docs.edited`; boolean, optional) — A human has edited this document.
- `createdAt` (`getSpaceRunResult.response.200.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))$`
- `finishedAt` (`getSpaceRunResult.response.200.finishedAt`; any of, required)
  - any of: `string`, `null`
- `evidenceOmitted` (`getSpaceRunResult.response.200.evidenceOmitted`; boolean, optional) — The size guard dropped the citations.
- `dataOmitted` (`getSpaceRunResult.response.200.dataOmitted`; boolean, optional) — The size guard dropped the values too.


Source: https://docs.cloudraker.com/workspace/api/space-runs/get-space-run-result/index.md
