> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cloudraker.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cloudraker.com/_mcp/server.

# Get a run in a space

GET https://api.cloudraker.com/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/developers/spaces)

Reference: https://docs.cloudraker.com/api/cloud-raker-api/spaces/space-get-run

## Authentication

- `Authorization` header (bearer token, required)

## Request

### Path parameters

- `spaceId` (string, required)
- `id` (string, required)

### Query parameters

- `output` (enum, optional, default: urls) — Return parsed source inline for parse/extract runs when the combined source is at most 1 MiB; otherwise retain signed URLs only.
  - Allowed values: `urls`, `inline`
- `include` (string, optional)
- `wait` (integer, optional, default: 0)

## Response

### 200

The run.

- `object or object or object or object or object or object`
  - V1ExtractRun
    - `object` ("extract_run", required)
    - `id` (string, required)
    - `status` (enum, required) — Where the run is in its life. | Status | Meaning | | --- | --- | | `queued` | Accepted, not started | | `processing` | Work in flight | | `needs_input` | Parked for a person — see `tasks[]` | | `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.
      - Allowed values: `queued`, `processing`, `processed`, `failed`, `cancelled`, `expired`, `needs_input`
    - `expiresAt` (string, required, nullable)
    - `statusUrl` (string, required)
    - `files` (list of object, required)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `file` (object, optional)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `error` (object, optional) — Why the run failed. Present whenever `status` is `failed`, and only then. `code` is the stable, snake_case reason (`input_unavailable`, `parse_failed`, …); `message` is the human-readable detail. Per-file and per-step failures are also reported in `files[].error` and, for a pipeline, `steps[].error`.
      - `code` (string, required)
      - `message` (string, required)
    - `metadata` (map from string to any, optional)
    - `tasks` (list of object, optional) — The human steps currently blocking the run. Present while `status` is `needs_input`. Each task has a `url` — a ready-made page you can send a person to — or you can drive it yourself through `GET` and `POST /v1/runs/{id}/task`. E-signature runs never carry `tasks[]`: their signing links are signer-held secrets, so use `envelopeUrl` instead.
      - `id` (string, required)
      - `title` (string, required)
      - `url` (string, required)
    - `config` (object, optional) — The output shape this run actually applied. On an inference run — one sent with neither `schema` nor `action` — this is where you read the schema that was inferred, ready to review and save as an action for the next run.
      - `schema` (map from string to any, required)
    - `output` (object, optional) — The extracted data. Present once `status` is `processed`. `documents[]` always has one entry per input file. For a single-document run, `value`, `citations` and any parsed source fields are lifted to the top as aliases of `documents[0]` so the common case reads without indexing. Parsed source fields are present only when requested with `?output=inline`. The signed URLs remain as a fallback; `markdown` and `json` are omitted when the combined inline source exceeds 1 MiB.
      - `documents` (list of object, required)
        - `fileId` (string, required)
        - `name` (string, required)
        - `status` (string, required)
        - `error` (string, optional)
        - `value` (any, optional)
        - `citations` (map from string to list of object, optional) — Where each extracted value came from, keyed by the field it backs. Keys are the top-level field keys of `value` (`load_number`); for a `rows_per_document` run they are prefixed with the row index, `[0].description`. Each entry names the `fileId` and, when known, the `page` and `bbox` — or a `timecode` for audio — plus the matched `text` and a `confidence` score. An entry with `notFound: true` instead records that the value is not present in the documents at all. Present whenever the run was grounded. Send `citations: true` on the request to ask for it.
          - `fileId` (string, required)
          - `page` (double, optional)
          - `bbox` (object, optional)
            - `x` (double, required)
            - `y` (double, required)
            - `width` (double, required)
            - `height` (double, required)
          - `timecode` (double or string, optional)
          - `text` (string, optional)
          - `confidence` (double, optional)
          - `notFound` (boolean, optional) — The value is not present in the source. The entry names the `fileId` it was checked against but carries no `page`, `bbox`, `timecode` or `text`.
        - `markdownUrl` (string, optional)
        - `jsonUrl` (string, optional)
        - `markdown` (string, optional)
        - `json` (any, optional)
      - `value` (any, optional)
      - `citations` (map from string to list of object, optional) — Where each extracted value came from, keyed by the field it backs. Keys are the top-level field keys of `value` (`load_number`); for a `rows_per_document` run they are prefixed with the row index, `[0].description`. Each entry names the `fileId` and, when known, the `page` and `bbox` — or a `timecode` for audio — plus the matched `text` and a `confidence` score. An entry with `notFound: true` instead records that the value is not present in the documents at all. Present whenever the run was grounded. Send `citations: true` on the request to ask for it.
        - `fileId` (string, required)
        - `page` (double, optional)
        - `bbox` (object, optional)
          - `x` (double, required)
          - `y` (double, required)
          - `width` (double, required)
          - `height` (double, required)
        - `timecode` (double or string, optional)
        - `text` (string, optional)
        - `confidence` (double, optional)
        - `notFound` (boolean, optional) — The value is not present in the source. The entry names the `fileId` it was checked against but carries no `page`, `bbox`, `timecode` or `text`.
      - `citationsOmitted` (boolean, optional) — The citations were dropped because the result exceeded the size budget.
      - `markdownUrl` (string, optional)
      - `jsonUrl` (string, optional)
      - `markdown` (string, optional)
      - `json` (any, optional)
  - V1ParseRun
    - `object` ("parse_run", required)
    - `id` (string, required)
    - `status` (enum, required) — Where the run is in its life. | Status | Meaning | | --- | --- | | `queued` | Accepted, not started | | `processing` | Work in flight | | `needs_input` | Parked for a person — see `tasks[]` | | `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.
      - Allowed values: `queued`, `processing`, `processed`, `failed`, `cancelled`, `expired`, `needs_input`
    - `expiresAt` (string, required, nullable)
    - `statusUrl` (string, required)
    - `files` (list of object, required)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `file` (object, optional)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `error` (object, optional) — Why the run failed. Present whenever `status` is `failed`, and only then. `code` is the stable, snake_case reason (`input_unavailable`, `parse_failed`, …); `message` is the human-readable detail. Per-file and per-step failures are also reported in `files[].error` and, for a pipeline, `steps[].error`.
      - `code` (string, required)
      - `message` (string, required)
    - `metadata` (map from string to any, optional)
    - `tasks` (list of object, optional) — The human steps currently blocking the run. Present while `status` is `needs_input`. Each task has a `url` — a ready-made page you can send a person to — or you can drive it yourself through `GET` and `POST /v1/runs/{id}/task`. E-signature runs never carry `tasks[]`: their signing links are signer-held secrets, so use `envelopeUrl` instead.
      - `id` (string, required)
      - `title` (string, required)
      - `url` (string, required)
    - `output` (object, optional) — The parsed document. Present once `status` is `processed`. Both links are signed and valid for about an hour: `markdownUrl` for the readable form, `jsonUrl` for the structured one. With `?output=inline`, `markdown` and parsed `json` are included too when their combined payload is at most 1 MiB; larger content falls back to the URLs only.
      - `markdownUrl` (string, optional)
      - `jsonUrl` (string, optional)
      - `markdown` (string, optional)
      - `json` (any, optional)
  - V1RedactRun
    - `object` ("redact_run", required)
    - `id` (string, required)
    - `status` (enum, required) — Where the run is in its life. | Status | Meaning | | --- | --- | | `queued` | Accepted, not started | | `processing` | Work in flight | | `needs_input` | Parked for a person — see `tasks[]` | | `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.
      - Allowed values: `queued`, `processing`, `processed`, `failed`, `cancelled`, `expired`, `needs_input`
    - `expiresAt` (string, required, nullable)
    - `statusUrl` (string, required)
    - `files` (list of object, required)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `file` (object, optional)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `error` (object, optional) — Why the run failed. Present whenever `status` is `failed`, and only then. `code` is the stable, snake_case reason (`input_unavailable`, `parse_failed`, …); `message` is the human-readable detail. Per-file and per-step failures are also reported in `files[].error` and, for a pipeline, `steps[].error`.
      - `code` (string, required)
      - `message` (string, required)
    - `metadata` (map from string to any, optional)
    - `tasks` (list of object, optional) — The human steps currently blocking the run. Present while `status` is `needs_input`. Each task has a `url` — a ready-made page you can send a person to — or you can drive it yourself through `GET` and `POST /v1/runs/{id}/task`. E-signature runs never carry `tasks[]`: their signing links are signer-held secrets, so use `envelopeUrl` instead.
      - `id` (string, required)
      - `title` (string, required)
      - `url` (string, required)
    - `output` (object, optional) — The redacted files. Present once `status` is `processed`. `files[]` holds the new documents — `file` is an alias of the first for single-file runs — each with a signed download link. `entities` tallies what was removed per category, and `skipped` counts documents that contained nothing to redact and so produced no new file.
      - `files` (list of object, required)
        - `id` (string, required)
        - `name` (string, required)
        - `url` (string, optional)
      - `file` (object, optional)
        - `id` (string, required)
        - `name` (string, required)
        - `url` (string, optional)
      - `entities` (map from string to double, optional)
      - `skipped` (double, optional)
  - V1FillRun
    - `object` ("fill_run", required)
    - `id` (string, required)
    - `status` (enum, required) — Where the run is in its life. | Status | Meaning | | --- | --- | | `queued` | Accepted, not started | | `processing` | Work in flight | | `needs_input` | Parked for a person — see `tasks[]` | | `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.
      - Allowed values: `queued`, `processing`, `processed`, `failed`, `cancelled`, `expired`, `needs_input`
    - `expiresAt` (string, required, nullable)
    - `statusUrl` (string, required)
    - `files` (list of object, required)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `file` (object, optional)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `error` (object, optional) — Why the run failed. Present whenever `status` is `failed`, and only then. `code` is the stable, snake_case reason (`input_unavailable`, `parse_failed`, …); `message` is the human-readable detail. Per-file and per-step failures are also reported in `files[].error` and, for a pipeline, `steps[].error`.
      - `code` (string, required)
      - `message` (string, required)
    - `metadata` (map from string to any, optional)
    - `tasks` (list of object, optional) — The human steps currently blocking the run. Present while `status` is `needs_input`. Each task has a `url` — a ready-made page you can send a person to — or you can drive it yourself through `GET` and `POST /v1/runs/{id}/task`. E-signature runs never carry `tasks[]`: their signing links are signer-held secrets, so use `envelopeUrl` instead.
      - `id` (string, required)
      - `title` (string, required)
      - `url` (string, required)
    - `output` (object, optional) — The completed form. Present once `status` is `processed`. `file` is the filled PDF with a signed download link; `fields` reports the values that were written into it, keyed by field name.
      - `files` (list of object, required)
        - `id` (string, required)
        - `name` (string, required)
        - `url` (string, optional)
      - `file` (object, optional)
        - `id` (string, required)
        - `name` (string, required)
        - `url` (string, optional)
      - `fields` (map from string to any, optional)
  - V1SignRun
    - `object` ("sign_run", required)
    - `id` (string, required)
    - `status` (enum, required) — Where the run is in its life. | Status | Meaning | | --- | --- | | `queued` | Accepted, not started | | `processing` | Work in flight | | `needs_input` | Parked for a person — see `tasks[]` | | `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.
      - Allowed values: `queued`, `processing`, `processed`, `failed`, `cancelled`, `expired`, `needs_input`
    - `expiresAt` (string, required, nullable)
    - `statusUrl` (string, required)
    - `files` (list of object, required)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `envelopeUrl` (string, required)
    - `file` (object, optional)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `error` (object, optional) — Why the run failed. Present whenever `status` is `failed`, and only then. `code` is the stable, snake_case reason (`input_unavailable`, `parse_failed`, …); `message` is the human-readable detail. Per-file and per-step failures are also reported in `files[].error` and, for a pipeline, `steps[].error`.
      - `code` (string, required)
      - `message` (string, required)
    - `metadata` (map from string to any, optional)
    - `tasks` (list of object, optional) — The human steps currently blocking the run. Present while `status` is `needs_input`. Each task has a `url` — a ready-made page you can send a person to — or you can drive it yourself through `GET` and `POST /v1/runs/{id}/task`. E-signature runs never carry `tasks[]`: their signing links are signer-held secrets, so use `envelopeUrl` instead.
      - `id` (string, required)
      - `title` (string, required)
      - `url` (string, required)
    - `output` (object, optional) — The signed document. Present once every signer has completed. `file` is the sealed PDF, `signers[]` records who signed and when, and `auditUrl` points at the machine-readable audit trail.
      - `files` (list of object, required)
        - `id` (string, required)
        - `name` (string, required)
        - `url` (string, optional)
      - `file` (object, optional)
        - `id` (string, required)
        - `name` (string, required)
        - `url` (string, optional)
      - `envelopeId` (string, optional)
      - `signers` (list of object, optional)
        - `name` (string, required)
        - `email` (string, required)
        - `signedAt` (string, optional)
      - `auditUrl` (string, optional)
  - V1PipelineRun
    - `object` ("pipeline_run", required)
    - `id` (string, required)
    - `status` (enum, required) — Where the run is in its life. | Status | Meaning | | --- | --- | | `queued` | Accepted, not started | | `processing` | Work in flight | | `needs_input` | Parked for a person — see `tasks[]` | | `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.
      - Allowed values: `queued`, `processing`, `processed`, `failed`, `cancelled`, `expired`, `needs_input`
    - `expiresAt` (string, required, nullable)
    - `statusUrl` (string, required)
    - `files` (list of object, required)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `steps` (list of object, required)
      - `id` (string, required, nullable)
      - `capability` (enum, required)
        - Allowed values: `extract`, `parse`, `redact`, `fill`, `sign`, `action`
      - `status` (enum, required) — Where the run is in its life. | Status | Meaning | | --- | --- | | `queued` | Accepted, not started | | `processing` | Work in flight | | `needs_input` | Parked for a person — see `tasks[]` | | `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.
        - Allowed values: `queued`, `processing`, `processed`, `failed`, `cancelled`, `expired`, `needs_input`
      - `error` (string, optional)
      - `output` (any, optional)
    - `file` (object, optional)
      - `id` (string, required)
      - `name` (string, required)
      - `status` (string, required)
      - `error` (string, optional)
    - `error` (object, optional) — Why the run failed. Present whenever `status` is `failed`, and only then. `code` is the stable, snake_case reason (`input_unavailable`, `parse_failed`, …); `message` is the human-readable detail. Per-file and per-step failures are also reported in `files[].error` and, for a pipeline, `steps[].error`.
      - `code` (string, required)
      - `message` (string, required)
    - `metadata` (map from string to any, optional)
    - `tasks` (list of object, optional) — The human steps currently blocking the run. Present while `status` is `needs_input`. Each task has a `url` — a ready-made page you can send a person to — or you can drive it yourself through `GET` and `POST /v1/runs/{id}/task`. E-signature runs never carry `tasks[]`: their signing links are signer-held secrets, so use `envelopeUrl` instead.
      - `id` (string, required)
      - `title` (string, required)
      - `url` (string, required)

## Examples

**Response**

```json
{
  "object": "string",
  "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": {},
  "tasks": [
    {
      "id": "string",
      "title": "string",
      "url": "string"
    }
  ],
  "config": {
    "schema": {}
  },
  "output": {
    "citations": {},
    "citationsOmitted": true,
    "markdownUrl": "string",
    "jsonUrl": "string",
    "markdown": "string",
    "documents": [
      {
        "fileId": "string",
        "name": "string",
        "status": "string",
        "error": "string",
        "citations": {},
        "markdownUrl": "string",
        "jsonUrl": "string",
        "markdown": "string"
      }
    ]
  }
}
```

**SDK Code**

```typescript
import { CloudRakerClient } from "@cloudraker/api";

async function main() {
    const client = new CloudRakerClient({
        token: "YOUR_TOKEN_HERE",
    });
    await client.spaces.spaceGetRun({
        spaceId: "spaceId",
        id: "id",
    });
}
main();

```

```python
from cloudraker import CloudRaker

client = CloudRaker(
    token="YOUR_TOKEN_HERE",
)

client.spaces.space_get_run(
    space_id="spaceId",
    id="id",
)

```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cloudraker.com/v1/spaces/spaceId/runs/id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.cloudraker.com/v1/spaces/spaceId/runs/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.cloudraker.com/v1/spaces/spaceId/runs/id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.cloudraker.com/v1/spaces/spaceId/runs/id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/v1/spaces/spaceId/runs/id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/v1/spaces/spaceId/runs/id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```