---
title: "Download a run output file"
---

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

# Download a run output file

Path: CloudRaker Workspace API › Space Runs

`GET /spaces/{spaceId}/runs/{runId}/outputs/{fileId}`

Streams the raw bytes of a stored run byproduct — pass a `fileId` from the run's `outputs[]`. Requires `space:read` (denied → 404); a missing, unknown, or cross-space output also 404s. This is a binary byte stream, not JSON; its `content-type`, status, and headers are preserved.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The output file bytes.

#### Example

```text
string
```


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